diff --git a/.github/workflows/local.yaml b/.github/workflows/local.yaml index 5d841a0..a3cdc35 100644 --- a/.github/workflows/local.yaml +++ b/.github/workflows/local.yaml @@ -31,7 +31,7 @@ jobs: kurtosis clean -a echo "Processing para chain: $para_chain, relay chain: $relay_chain" # Call Python script with para_chain and relay_chain as arguments - python ./testdata/generate_json.py --relay "$relay_chain" --para "$para_chain" --network "local" + python ./testdata/generate_json.py --relay "$relay_chain" --para "$para_chain" --network "localnet" kurtosis run . --args-file ./testdata/updated_config.json --enclave polkadot || failed_chains+=("$para_chain") done < ./testdata/chain_value.csv if [ ${#failed_chains[@]} -gt 0 ]; then diff --git a/testdata/generate_json.py b/testdata/generate_json.py index eeab96e..d2e34de 100644 --- a/testdata/generate_json.py +++ b/testdata/generate_json.py @@ -15,7 +15,7 @@ def update_config(original_config, relay_chain, para_chain, network): config_data["relaychain"]["name"] = relay_chain.lower() else: # Update the original JSON data - config_data["chain_type"] = "local" + config_data["chain_type"] = "localnet" config_data["relaychain"]["name"] = "rococo-local" for para in config_data["parachains"]: @@ -39,7 +39,7 @@ def main(): parser.add_argument('--network', type=str, help='test environment') args = parser.parse_args() - update_config("./local.json", args.relay, args.para, args.network) + update_config("./config.json", args.relay, args.para, args.network) if __name__ == "__main__": main() \ No newline at end of file