From 1c5dfb3b649847fd90a0dfbdda8b2d541a2b29cd Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Tue, 16 Feb 2021 23:19:41 +0100 Subject: [PATCH] Add a test which verifies new CLI get multi commands work. --- .../tests/actions/chains/test_quickstart.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/packs/tests/actions/chains/test_quickstart.yaml b/packs/tests/actions/chains/test_quickstart.yaml index 2471c1b..263fa05 100644 --- a/packs/tests/actions/chains/test_quickstart.yaml +++ b/packs/tests/actions/chains/test_quickstart.yaml @@ -55,6 +55,28 @@ chain: ST2_API_URL: "{{protocol}}://{{hostname}}:9101" ST2_AUTH_TOKEN: "{{token}}" cmd: st2 execution list -n 1 + on-success: test_execution_list_json + - + name: test_execution_list_json + ref: core.local + params: + env: + ST2_BASE_URL: "{{protocol}}://{{hostname}}" + ST2_AUTH_URL: "{{protocol}}://{{hostname}}:9100" + ST2_API_URL: "{{protocol}}://{{hostname}}:9101" + ST2_AUTH_TOKEN: "{{token}}" + cmd: st2 execution list -n 2 -j + on-success: test_execution_get_multi + - + name: test_execution_get_multi + ref: core.local + params: + env: + ST2_BASE_URL: "{{protocol}}://{{hostname}}" + ST2_AUTH_URL: "{{protocol}}://{{hostname}}:9100" + ST2_API_URL: "{{protocol}}://{{hostname}}:9101" + ST2_AUTH_TOKEN: "{{token}}" + cmd: "st2 execution get {{test_execution_list.stdout[0].id}} {{test_execution_list.stdout[1].id}}" on-success: test_sensor_list - name: test_sensor_list