Skip to content

Commit 4aa4fd9

Browse files
committed
4860 - Fixing st2-self-check script
1 parent 4724d59 commit 4aa4fd9

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

packs/tests/actions/chains/test_run_pack_tests_tool.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ chain:
1919
ST2_AUTH_TOKEN: "{{token}}"
2020
cmd: "st2 pack install {{ pack_to_install_1 }}"
2121
timeout: "{{test_timeout}}"
22-
on-success: test_installed_pack_1_version
22+
on-success: check_installed_pack_1_version
2323
on-failure: error_handler
2424

2525
-
26-
name: test_installed_pack_1_version
27-
ref: tests.test_installed_pack_version
26+
name: check_installed_pack_1_version
27+
ref: tests.check_installed_pack_version
2828
params:
2929
installed_pack: "{{ pack_to_install_1 }}"
3030
on-success: install_pack_2
@@ -41,12 +41,12 @@ chain:
4141
ST2_AUTH_TOKEN: "{{token}}"
4242
cmd: "st2 pack install {{ pack_to_install_2_with_version }}"
4343
timeout: "{{test_timeout}}"
44-
on-success: test_installed_pack_2_version
44+
on-success: check_installed_pack_2_version
4545
on-failure: error_handler
4646

4747
-
48-
name: test_installed_pack_2_version
49-
ref: tests.test_installed_pack_version
48+
name: check_installed_pack_2_version
49+
ref: tests.check_installed_pack_version
5050
params:
5151
installed_pack: "{{ pack_to_install_2_with_version }}"
5252
on-success: run_pack_tests_without_creating_virtualenv

packs/tests/actions/test_installed_pack_version.py renamed to packs/tests/actions/check_installed_pack_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from st2common.util.pack_management import get_repo_url
1919

2020

21-
class TesetInstalledPackVersionAction(Action):
21+
class CheckInstalledPackVersionAction(Action):
2222
def run(self, installed_pack, **kwargs):
2323
"""
2424
:param installed_pack: Installed pack name with version

packs/tests/actions/test_installed_pack_version.yaml renamed to packs/tests/actions/check_installed_pack_version.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
name: "test_installed_pack_version"
2+
name: "check_installed_pack_version"
33
runner_type: "python-script"
4-
description: "Test installed pack version."
4+
description: "Compares the 'installed_pack' name and version to the version of the currently installed pack. NOTE: This is specifically NOT named test_xxx because we do not want it run by the st2-self-check script."
55
pack: tests
66
enabled: true
7-
entry_point: "test_installed_pack_version.py"
7+
entry_point: "check_installed_pack_version.py"
88
parameters:
99
installed_pack:
1010
type: "string"
11-
description: "Name of pack to check"
11+
description: "Expected name and version of pack, '=' delimited. Example 'st2=1.2.0'"
1212
required: true
1313
# NOTE: Those arguments are unused, temporary workaround for regression
1414
# introduced in #176

0 commit comments

Comments
 (0)