Skip to content

Commit

Permalink
Fix integration tests (#282)
Browse files Browse the repository at this point in the history
* Update bot.ts
* Update github-positive-scenario.spec.ts
  • Loading branch information
mordamax authored Apr 18, 2024
1 parent 9acb211 commit ed85f69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
17 changes: 3 additions & 14 deletions src/test/github-positive-scenario.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,13 @@ const commandsDataProvider: CommandDataProviderItem[] = [
},
{
suitName: "[bench-bot] command",
commandLine: "testbot bench polkadot-pallet --runtime=kusama --pallet=pallet_referenda",
commandLine: "testbot bench polkadot-pallet --runtime=westend --pallet=pallet_referenda",
taskId: 3,
expected: {
startMessage:
'Preparing command ""$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=runtime --runtime=kusama --target_dir=polkadot --pallet=pallet_referenda". This comment will be updated later.',
'Preparing command ""$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=pallet --runtime=westend --target_dir=polkadot --pallet=pallet_referenda". This comment will be updated later.',
finishMessage:
'@somedev123 Command `"$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=runtime --runtime=kusama --target_dir=polkadot --pallet=pallet_referenda` has finished.',
},
},
{
suitName: "[try-runtime] command",
commandLine: "testbot try-runtime -v RUST_LOG=remote-ext=debug,runtime=trace --chain=kusama",
taskId: 4,
expected: {
startMessage:
'Preparing command ""$PIPELINE_SCRIPTS_DIR/commands/try-runtime/try-runtime.sh" --chain=kusama --target_path=. --chain_node=polkadot',
finishMessage:
'@somedev123 Command `"$PIPELINE_SCRIPTS_DIR/commands/try-runtime/try-runtime.sh" --chain=kusama --target_path=. --chain_node=polkadot` has finished. Result: https://example.com/foo/bar/-/jobs/6 has finished. If any artifacts were generated, you can download them from https://example.com/foo/bar/-/jobs/6/artifacts/download.',
'@somedev123 Command `"$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=pallet --runtime=westend --target_dir=polkadot --pallet=pallet_referenda` has finished.',
},
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/test/setup/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function getBotEnv(
DATA_PATH: path.join(process.cwd(), "data"),

PIPELINE_SCRIPTS_REPOSITORY: "https://github.com/paritytech/command-bot-scripts",
PIPELINE_SCRIPTS_REF: "monorepo",
PIPELINE_SCRIPTS_REF: "main",

PRIVATE_KEY_BASE64: readFileSync(path.join(process.cwd(), "src", "test", "testing-app.txt"), "base64"),

Expand Down

0 comments on commit ed85f69

Please sign in to comment.