-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test Utils] Minor developer experience test improvements (#574)
Minor testing development environment improvements while going through the code: - More comments - Added `.env.dev` for sourcing - Added an E2E test so `make test_e2e_params` is idempotent - Added additional warning messages when running a local stress test - Added a makefile catch all Co-authored-by: Redouane Lakrache <[email protected]>
- Loading branch information
Showing
9 changed files
with
167 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This file contains environment variables that are used in the development environment. | ||
# It is a copy of what's in the Makefile but makes local development easier through | ||
# a simple `source .env.dev` command. | ||
|
||
POKTROLLD_HOME=./localnet/poktrolld | ||
# The pocket node (validator in the localnet context) | ||
POCKET_NODE=tcp://127.0.0.1:36657 | ||
# TestNet RPC endpoint for validator maintained by Grove. Needs to be updated if there's another "primary" testnet. | ||
TESTNET_RPC=https://testnet-validated-validator-rpc.poktroll.com/ | ||
APPGATE_SERVER=http://localhost:42069 | ||
GATEWAY_URL=http://localhost:42079 | ||
POCKET_ADDR_PREFIX=pokt | ||
CHAIN_ID=poktroll | ||
|
||
# The domain ending in ".town" is staging, ".city" is production | ||
GROVE_GATEWAY_STAGING_ETH_MAINNET=https://eth-mainnet.rpc.grove.town | ||
# The "protocol" field here instructs the Grove gateway which network to use | ||
JSON_RPC_DATA_ETH_BLOCK_HEIGHT='{"protocol": "shannon-testnet","jsonrpc":"2.0","id":"0","method":"eth_blockNumber", "params": []}' | ||
|
||
# On-chain module account addresses. Search for `func TestModuleAddress` in the | ||
# codebase to get an understanding of how we got these values. | ||
APPLICATION_MODULE_ADDRESS=pokt1rl3gjgzexmplmds3tq3r3yk84zlwdl6djzgsvm | ||
SUPPLIER_MODULE_ADDRESS=pokt1j40dzzmn6cn9kxku7a5tjnud6hv37vesr5ccaa | ||
GATEWAY_MODULE_ADDRESS=pokt1f6j7u6875p2cvyrgjr0d2uecyzah0kget9vlpl | ||
SERVICE_MODULE_ADDRESS=pokt1nhmtqf4gcmpxu0p6e53hpgtwj0llmsqpxtumcf | ||
GOV_ADDRESS=pokt10d07y265gmmuvt4z0w9aw880jnsr700j8yv32t | ||
# PNF acts on behalf of the DAO and who AUTHZ must delegate to | ||
PNF_ADDRESS=pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ jobs: | |
run: make go_lint | ||
|
||
- name: Test | ||
run: make go_test | ||
run: make test_all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
# This file is used to configure the load test for non-ephemeral chains. | ||
# The load test uses the provided gateways and the staked suppliers to send relays. | ||
|
||
# This file is used to configure the load test for non-ephemeral chains. | ||
# It is intended to target a remote environment, such as a devnet or testnet. | ||
is_ephemeral_chain: false | ||
|
||
# testnet_node is the URL of the node that the load test will use to query the | ||
# chain and submit transactions. | ||
testnet_node: https://testnet-validated-validator-rpc.poktroll.com | ||
|
||
# The service ID to request relays from. | ||
service_id: "0021" | ||
|
||
# The address of the account that will be used to fund the the application accounts | ||
# so that they can stake on the network. | ||
funding_account_address: pokt14eh973xt99s7edugnyvd5d5u50d6j0hysw2vsm # address for pnf account | ||
|
||
# In non-ephemeral chains, the gateways are identified by their address. | ||
gateways: | ||
# address is the bech32 pokt address of the gateway. | ||
- address: pokt16sty9mjdh4u2fwgj8ptufg42cysvh6gsyx6wfp | ||
# The url used to send relays to the gateway on. | ||
exposed_url: http://localhost:84 | ||
exposed_url: http://localhost:84 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,52 @@ | ||
# List of pre-provisioned suppliers used for load testing | ||
# The number of pre-provisioned **LocalNet** actors are managed in | ||
# localnet_config.yaml by the respective actors `count` property. | ||
# NB: The number of pre-provisioned **LocalNet** actors are managed in | ||
# 'localnet_config.yaml' by the respective actors `count` property. | ||
is_ephemeral_chain: true | ||
|
||
# The service ID to use for the load test. | ||
service_id: anvil | ||
|
||
# The address of the account that will be used to fund the the application, | ||
# gateway and supplier accounts so that they can stake on the network. | ||
funding_account_address: pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw # address for pnf account | ||
|
||
# List of pre-provisioned suppliers used for load testing. | ||
# Thse suppliers will be progressively staked during the load test, according | ||
# These suppliers will be progressively staked during the load test, according | ||
# to the test plan that is being executed. | ||
suppliers: | ||
# The supplier address that is available in the load test's environment keyring, | ||
# used to identify the supplier and sign relays and transactions with. | ||
# It must be the address corresponding to the provided signing_key_name in the | ||
# `relay_miner_config.yaml` file. | ||
|
||
# RelayMiner 1; http://localhost:10350/r/relayminer1/overview | ||
- address: pokt19a3t4yunp0dlpfjrp7qwnzwlrzd5fzs2gjaaaj | ||
# The advertised URL used by the supplier when it submits a stake message on-chain. | ||
# The advertised URL used by the supplier when it submits a stake message on-chain. | ||
exposed_url: http://relayminer1:8545 | ||
|
||
# RelayMiner 2; http://localhost:10350/r/relayminer2/overview | ||
- address: pokt1re27pw4llwnatx4sq7rlggqzcm6j3f39epq2wa | ||
exposed_url: http://relayminer2:8545 | ||
|
||
# RelayMiner 3; http://localhost:10350/r/relayminer3/overview | ||
- address: pokt1j6dun0x8eyq5mmsmq83zs3c2utt85q8478c89u | ||
exposed_url: http://relayminer3:8545 | ||
|
||
# List of pre-provisioned gateways used for load testing. | ||
# These gateways will be progressively staked and delegated to during the load test. | ||
gateways: | ||
# The gateway address that is available in the load test's environment keyring, | ||
# used to identify the gateway and sign relays and transactions with. | ||
# It must be the address corresponding to the provided signing_key_name in the | ||
# `appgate_server_config.yaml` file. | ||
|
||
# Gateway 1; http://localhost:10350/r/gateway1/overview | ||
- address: pokt15vzxjqklzjtlz7lahe8z2dfe9nm5vxwwmscne4 | ||
# The url used to send relays to the gateway on. | ||
exposed_url: http://localhost:42079 | ||
exposed_url: http://localhost:42079 # The url used to send relays to the gateway on. | ||
|
||
# Gateway 2; http://localhost:10350/r/gateway2/overview | ||
- address: pokt15w3fhfyc0lttv7r585e2ncpf6t2kl9uh8rsnyz | ||
exposed_url: http://localhost:42080 | ||
|
||
# Gateway 3; http://localhost:10350/r/gateway3/overview | ||
- address: pokt1zhmkkd0rh788mc9prfq0m2h88t9ge0j83gnxya | ||
exposed_url: http://localhost:42081 | ||
exposed_url: http://localhost:42081 |
Oops, something went wrong.