-
Notifications
You must be signed in to change notification settings - Fork 283
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(test-geth-ledger): add test for test-geth-ledger #2588
Conversation
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.
@rwat17 In addition to my above comment, could you please
- Rename the .json file so that it is an exact match to the
.sol
file but with a different extenssion. - Obtain the JSON file by compiling it with the solidity VSCode extension which adds the
contractName
attribute (among other things) automatically as useful metadata that we sometimes use programmatically in test cases for reducing the number of magic strings the tests are depending on to function.
As an example of such .json file please take a look at this one: packages/cactus-plugin-htlc-eth-besu-erc20/src/main/solidity/contracts/HashedTimeLockContract.json
For the specific VSCode extension IDs please see the recommended extensions file under .vscode/extensions.json
in there you'll see "juanblanco.solidity"
...s/cactus-test-geth-ledger/src/test/typescript/solidity/simple-token-contract/SimpleToken.sol
Outdated
Show resolved
Hide resolved
b58032d
to
6ef8f7f
Compare
packages/cactus-test-geth-ledger/src/main/typescript/geth-test-ledger.ts
Outdated
Show resolved
Hide resolved
packages/cactus-test-geth-ledger/src/test/typescript/integration/contractData.json
Outdated
Show resolved
Hide resolved
6ef8f7f
to
e9d6694
Compare
packages/cactus-test-geth-ledger/src/main/typescript/geth-test-ledger.ts
Outdated
Show resolved
Hide resolved
packages/cactus-test-geth-ledger/src/test/typescript/integration/geth-test-ledger.test.ts
Outdated
Show resolved
Hide resolved
e9d6694
to
696621b
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.
@rwat17 Please take a look at my commit and squash it so that there's (in the end) only one commit in the PR (after the parent PR has been merged)
Then pass it back for review!
4facda4
to
e9d6694
Compare
Signed-off-by: Michal Bajer <[email protected]>
Signed-off-by: Michal Bajer <[email protected]>
-add tests for geth-test-ledger -fix small errors in GethTestLedger class Closes: hyperledger-cacti#2579 Depends on: hyperledger-cacti#2577 Signed-off-by: Tomasz Awramski <[email protected]
e9d6694
to
e1b93b3
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.
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.
@rwat17 Please
- Fix the DCO check
- Fix the dependency declaration syntax (the robot is pretty simple minded unfortunately and won't understand
Depends on: #2577
onlyDepends on #2577
(notice the colon difference) - this is important so that we don't accidentally merge the PR before the parent have been merged - Fix the
build-dev
check - When everything else is ready and the parent PR(s) have been merged please do the usual rebase + squash onto upstream/main
Marking it as a change request so we don't accidentally merge while the dependencies are not met. (once done with the chores above just pass it back for review)
I'm guessing this one has gone stale too since @rwat17 moved on, closing for now. We can re-open it anytime as usual. |
- Add test suite for geth-test-ledger package. - Add new test suit to CI - It was initially proposed in hyperledger-cacti#2588, I've added some cleanups and improvements. Closes: hyperledger-cacti#2579 Co-authored-by: Tomasz Awramski <[email protected] Signed-off-by: Michal Bajer <[email protected]>
- Add test suite for geth-test-ledger package. - Add new test suit to CI - It was initially proposed in hyperledger-cacti#2588, I've added some cleanups and improvements. Closes: hyperledger-cacti#2579 Co-authored-by: Tomasz Awramski <[email protected]> Signed-off-by: Michal Bajer <[email protected]>
- Add test suite for geth-test-ledger package. - Add new test suit to CI - It was initially proposed in hyperledger-cacti#2588, I've added some cleanups and improvements. Closes: hyperledger-cacti#2579 Co-authored-by: Tomasz Awramski <[email protected]> Signed-off-by: Michal Bajer <[email protected]>
- Add test suite for geth-test-ledger package. - Add new test suit to CI - It was initially proposed in hyperledger-cacti#2588, I've added some cleanups and improvements. Closes: hyperledger-cacti#2579 Co-authored-by: Tomasz Awramski <[email protected]> Signed-off-by: Michal Bajer <[email protected]>
- Add test suite for geth-test-ledger package. - Add new test suit to CI - It was initially proposed in hyperledger-cacti#2588, I've added some cleanups and improvements. - Run codegen, update missing deps, sort package.json, fix type in socketio-test-setup-helpers, to fix some CI. Closes: hyperledger-cacti#2579 Co-authored-by: Tomasz Awramski <[email protected]> Signed-off-by: Michal Bajer <[email protected]>
- Add test suite for geth-test-ledger package. - Add new test suit to CI - It was initially proposed in hyperledger-cacti#2588, I've added some cleanups and improvements. - Run codegen, update missing deps, sort package.json, fix type in socketio-test-setup-helpers, to fix some CI. Closes: hyperledger-cacti#2579 Co-authored-by: Tomasz Awramski <[email protected]> Signed-off-by: Michal Bajer <[email protected]>
- Add test suite for geth-test-ledger package. - Add new test suit to CI - It was initially proposed in #2588, I've added some cleanups and improvements. - Run codegen, update missing deps, sort package.json, fix type in socketio-test-setup-helpers, to fix some CI. Closes: #2579 Co-authored-by: Tomasz Awramski <[email protected]> Signed-off-by: Michal Bajer <[email protected]>
- Add test suite for geth-test-ledger package. - Add new test suit to CI - It was initially proposed in hyperledger-cacti#2588, I've added some cleanups and improvements. - Run codegen, update missing deps, sort package.json, fix type in socketio-test-setup-helpers, to fix some CI. Closes: hyperledger-cacti#2579 Co-authored-by: Tomasz Awramski <[email protected]> Signed-off-by: Michal Bajer <[email protected]>
Closes: #2579
Depends on: #2577