Skip to content

Commit

Permalink
adding separate validators json file for docker tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cristure committed Oct 25, 2024
1 parent 17a08cf commit 8359cbb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ COPY . .
RUN python -m multiversx_sdk_cli.cli localnet setup --configfile=/usr/src/app/multiversx_sdk_cli/tests/testdata/localnet_with_resolution_remote.toml

# Step 10: Specify the entrypoint to run the application
ENTRYPOINT ["python", "-m", "multiversx_sdk_cli.cli"]
CMD ["python", "-m", "multiversx_sdk_cli.cli"]
2 changes: 1 addition & 1 deletion multiversx_sdk_cli/tests/test_cli_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def poll_endpoint():

@pytest.mark.require_localnet
def test_stake(poll_endpoint):
validators_json = testdata_path / "validators.json"
validators_json = testdata_path / "validators_docker.json"

# Stake with recall nonce
return_code = main([
Expand Down
13 changes: 13 additions & 0 deletions multiversx_sdk_cli/tests/testdata/validators_docker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"validators": [
{
"pemFile": "/usr/src/app/localnet/validator00/config/walletKey.pem"
},
{
"pemFile": "/usr/src/app/localnet/validator00/config/walletKey.pem"
},
{
"pemFile": "/usr/src/app/localnet/validator00/config/walletKey.pem"
}
]
}

0 comments on commit 8359cbb

Please sign in to comment.