From 7a7e7de03e17b3ebdb156f6a7580737858e47810 Mon Sep 17 00:00:00 2001 From: Dominique Date: Wed, 5 Jul 2023 16:30:46 +0200 Subject: [PATCH] fix: rename wsurl endpoints to asset hub (#1301) --- scripts/README.md | 4 ++-- scripts/config.ts | 14 +++++++------- scripts/runHistoricalE2eTests.ts | 4 ++-- scripts/runLatestE2eTests.ts | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/README.md b/scripts/README.md index e1702447f..864409a13 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -14,7 +14,7 @@ This script calls the local historical e2e tests helper library in order to test ### Flags -`--chain`: This sets the specific chain to run the script against. Acceptable values are `['polkadot', 'westend', 'kusama', 'asset-hub-kusama', 'asset-hub-polkadot']`. If no chain is selected it will default to run the e2e-tests against all chains. +`--chain`: This sets the specific chain to run the script against. Acceptable values are `['polkadot', 'westend', 'kusama', 'kusama-asset-hub', 'polkadot-asset-hub']`. If no chain is selected it will default to run the e2e-tests against all chains. `--local`: This sets the websocket url for the e2e test. Its to be used along with `--chain`. If `--chain` is not present it will throw an error. @@ -36,7 +36,7 @@ This script calls the local latest e2e tests helper library in order to test the ### Flags -`--chain`: This sets the specific chain to run the script against. Acceptable values are `['polkadot', 'asset-hub-polkadot']`. If no chain is selected it will default to run the e2e-tests against all chains. +`--chain`: This sets the specific chain to run the script against. Acceptable values are `['polkadot', 'polkadot-asset-hub']`. If no chain is selected it will default to run the e2e-tests against all chains. `--local`: This sets the websocket url for the e2e test. Its to be used along with `--chain`. If `--chain` is not present it will throw an error. diff --git a/scripts/config.ts b/scripts/config.ts index 27beed691..db58ecee7 100644 --- a/scripts/config.ts +++ b/scripts/config.ts @@ -66,16 +66,16 @@ export const historicalE2eConfig: Record = { }, SasStartOpts: defaultSasStartOpts, }, - 'asset-hub-kusama': { - wsUrl: 'wss://statemine-rpc.polkadot.io', + 'kusama-asset-hub': { + wsUrl: 'wss://kusama-asset-hub-rpc.polkadot.io', e2eStartOpts: { ...defaultJestOpts, args: ['start:historical-e2e-tests', '--chain', 'asset-hub-kusama'], }, SasStartOpts: defaultSasStartOpts, }, - 'asset-hub-polkadot': { - wsUrl: 'wss://statemint-rpc.polkadot.io', + 'polkadot-asset-hub': { + wsUrl: 'wss://polkadot-asset-hub-rpc.polkadot.io', e2eStartOpts: { ...defaultJestOpts, args: ['start:historical-e2e-tests', '--chain', 'asset-hub-polkadot'], @@ -105,14 +105,14 @@ export const latestE2eConfig: Record = { args: ['start:latest-e2e-tests', '--chain', 'polkadot'], }, }, - 'asset-hub-polkadot': { - wsUrl: 'wss://statemint-rpc.polkadot.io', + 'polkadot-asset-hub': { + wsUrl: 'wss://polkadot-asset-hub-rpc.polkadot.io', SasStartOpts: defaultSasStartOpts, e2eStartOpts: { proc: 'latest-e2e', resolver: 'Finished with a status code of 0', resolverFailed: 'Finished with a status code of 1', - args: ['start:latest-e2e-tests', '--chain', 'asset-hub-polkadot'], + args: ['start:latest-e2e-tests', '--chain', 'assetHubPolkadot'], }, }, westend: { diff --git a/scripts/runHistoricalE2eTests.ts b/scripts/runHistoricalE2eTests.ts index 5586d0a09..b79183b32 100644 --- a/scripts/runHistoricalE2eTests.ts +++ b/scripts/runHistoricalE2eTests.ts @@ -108,8 +108,8 @@ parser.add_argument('--chain', { 'polkadot', 'kusama', 'westend', - 'asset-hub-kusama', - 'asset-hub-polkadot', + 'kusama-asset-hub', + 'polkadot-asset-hub', ], }); parser.add_argument('--log-level', { diff --git a/scripts/runLatestE2eTests.ts b/scripts/runLatestE2eTests.ts index 5e92350a6..83f738dc1 100644 --- a/scripts/runLatestE2eTests.ts +++ b/scripts/runLatestE2eTests.ts @@ -83,7 +83,7 @@ parser.add_argument('--local', { nargs: '?', }); parser.add_argument('--chain', { - choices: ['polkadot', 'kusama', 'westend', 'asset-hub-polkadot'], + choices: ['polkadot', 'kusama', 'westend', 'polkadot-asset-hub'], }); parser.add_argument('--log-level', { choices: ['error', 'warn', 'info', 'http', 'verbose', 'debug', 'silly'],