Skip to content

Commit

Permalink
fix: Adjusted README and added additional params to start-all-tests
Browse files Browse the repository at this point in the history
Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech>
  • Loading branch information
ivaylogarnev-limechain committed Feb 20, 2025
1 parent 12d8656 commit 8417e4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tck/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ task run-specific-test \
OPERATOR_ACCOUNT_ID=your-account-id \
OPERATOR_ACCOUNT_PRIVATE_KEY=your-private-key \
MIRROR_NODE_REST_URL=https://testnet.mirrornode.hedera.com \
MIRROR_NODE_REST_JAVA_URL=https://testnet.mirrornode.hedera.com \
# Run specific test
TEST=AccountCreate
```
Expand Down
4 changes: 4 additions & 0 deletions tck/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,17 @@ tasks:
NETWORK: '{{.NETWORK | default "local"}}'
OPERATOR_ACCOUNT_ID: "{{.OPERATOR_ACCOUNT_ID}}"
OPERATOR_ACCOUNT_PRIVATE_KEY: "{{.OPERATOR_ACCOUNT_PRIVATE_KEY}}"
MIRROR_NODE_REST_URL: "{{.MIRROR_NODE_REST_URL}}"
MIRROR_NODE_REST_JAVA_URL: "{{.MIRROR_NODE_REST_JAVA_URL}}"
cmds:
- echo "Starting Docker Compose services..."
- |
export TEST={{.TEST | default "ALL"}}
export NETWORK={{.NETWORK | default "local"}}
export OPERATOR_ACCOUNT_ID={{.OPERATOR_ACCOUNT_ID}}
export OPERATOR_ACCOUNT_PRIVATE_KEY="{{.OPERATOR_ACCOUNT_PRIVATE_KEY}}"
export MIRROR_NODE_REST_URL="{{.MIRROR_NODE_REST_URL}}"
export MIRROR_NODE_REST_JAVA_URL="{{.MIRROR_NODE_REST_JAVA_URL}}"
if [ "$NETWORK" = "testnet" ]; then
if [ -z "$OPERATOR_ACCOUNT_ID" ] || [ -z "$OPERATOR_ACCOUNT_PRIVATE_KEY" ]; then
echo "Error: OPERATOR_ACCOUNT_ID and OPERATOR_ACCOUNT_PRIVATE_KEY must be provided for testnet."
Expand Down

0 comments on commit 8417e4f

Please sign in to comment.