-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(connector-fabric): jestify all remaining test cases #3582
test(connector-fabric): jestify all remaining test cases #3582
Conversation
a7bd488
to
38fa38b
Compare
38fa38b
to
36698d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrianbatuto Looking good at first (quick) look, but please:
- fix the failing CI checks - the jobs that used to have a single test case for them that is now a Jest test case can be deleted because all the jest test cases are getting picked up automatically by the fabric-0 job IIRC
- Try to encode a little more information in the commit message. The combined paths of the test cases won't fit in the commit message of course but you could use a more qualified plugin name ('connector-fabric') and also say that it's "all the remaining" tests being jestified
36698d6
to
bef47be
Compare
bef47be
to
8fdd724
Compare
Hi peter, I removed the unnecessary CI checks except one which has to do with add-orgs.test.ts. I didn't include this in my changes because the test is currently being skipped. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrianbatuto The commit subject is still the same. Please see my point 2) from earlier.
d5fb550
to
321eb4e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrianbatuto Please fix the merge conflicts and then pass it back for review
321eb4e
to
4fb2289
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks great, I've just left one small comment
...or-fabric/src/test/typescript/integration/fabric-v2-2-x/deploy-cc-from-golang-source.test.ts
Outdated
Show resolved
Hide resolved
4fb2289
to
aee067a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrianbatuto: Hopefully the last change request: There is one fabric test that is still not migrated to jest from what I can tell: packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v2-2-x/add-orgs.test.ts
@petermetz I opted not to migrate this test to jest since this test is being skipped at the moment. Should I also include this in my PR? |
@adrianbatuto Yeah, if it's being skipped it means right now it's broken, but even then, let's just migrate it over and we can fix the test itself later. Just make sure that the test runs (doesn't have to succeed, but it has to compile and run OK even if it fails the assertions at some point). |
Got it. |
aee067a
to
eb1613e
Compare
eb1613e
to
ed138ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrianbatuto LGTM, thank you for the updates!
Primary Changes ---------------- 1. Jestified remaining tests for the connector-fabric plugin, excluding add-orgs.test.ts (currently skipped). 2. Removed the tests from taprc and jest.config.js Fixes hyperledger-cacti#3547 Signed-off-by: adrianbatuto <[email protected]>
ed138ee
to
12121c7
Compare
Commit to be reviewed
test(connector-fabric): jestify all remaining test cases
Fixes #3547
Pull Request Requirements
upstream/main
branch and squashed into single commit to help maintainers review it more efficient and to avoid spaghetti git commit graphs that obfuscate which commit did exactly what change, when and, why.-s
flag when usinggit commit
command. You may refer to this link for more information.Character Limit
A Must Read for Beginners
For rebasing and squashing, here's a must read guide for beginners.