Skip to content

Commit

Permalink
fix: rename wsurl endpoints to asset hub (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Imod7 committed Jul 5, 2023
1 parent 86edf0b commit 7a7e7de
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.

Expand Down
14 changes: 7 additions & 7 deletions scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ export const historicalE2eConfig: Record<string, IChainConfigE2E> = {
},
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'],
Expand Down Expand Up @@ -105,14 +105,14 @@ export const latestE2eConfig: Record<string, IChainConfigE2E> = {
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: {
Expand Down
4 changes: 2 additions & 2 deletions scripts/runHistoricalE2eTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down
2 changes: 1 addition & 1 deletion scripts/runLatestE2eTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 7a7e7de

Please sign in to comment.