Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
141 lines (140 sloc) 4.22 KB
---
version: '1.0'
input:
- host
- env
- protocol
tasks:
init:
action: core.noop
next:
- when: <% succeeded() %>
publish:
- st2_cli_args: token=<% ctx().env.get(ST2_AUTH_TOKEN) %> protocol=<% ctx().protocol %>
do:
- test_quickstart
- test_quickstart_key
- test_quickstart_rules
- test_quickstart_packs
test_quickstart:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_quickstart <% ctx().st2_cli_args %>
timeout: 180
test_quickstart_key:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_quickstart_key <% ctx().st2_cli_args %>
test_quickstart_rules:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_quickstart_rules <% ctx().st2_cli_args %>
timeout: 600
test_quickstart_packs:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_packs_pack <% ctx().st2_cli_args %>
timeout: 600
next:
- when: <% succeeded() %>
do:
- test_quickstart_local_script
- test_quickstart_remote_script
- test_quickstart_passive_sensor
- test_quickstart_polling_sensor
test_quickstart_local_script:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_quickstart_local_script_actions <% ctx().st2_cli_args %>
timeout: 600
test_quickstart_remote_script:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_quickstart_remote_script_actions <% ctx().st2_cli_args %>
timeout: 600
test_quickstart_passive_sensor:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_quickstart_passive_sensor <% ctx().st2_cli_args %>
timeout: 600
test_quickstart_polling_sensor:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_quickstart_polling_sensor <% ctx().st2_cli_args %>
timeout: 600
next:
- when: <% succeeded() %>
do:
- test_quickstart_python
- test_quickstart_trace
- test_quickstart_run_pack_tests_tool
test_quickstart_python:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_quickstart_python_actions <% ctx().st2_cli_args %>
timeout: 600
test_quickstart_trace:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_quickstart_trace <% ctx().st2_cli_args %>
timeout: 600
test_quickstart_run_pack_tests_tool:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 action get tests.test_run_pack_tests_tool ; if [ $? -eq 0 ]; then st2 run tests.test_run_pack_tests_tool <% ctx().st2_cli_args %>; else echo 'run_pack_tests_tool tests not available'; fi
timeout: 600
next:
- when: <% succeeded() %>
do:
- test_quickstart_pack_install_tool
test_quickstart_pack_install_tool:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 action get tests.test_pack_install_tool ; if [ $? -eq 0 ]; then st2 run tests.test_pack_install_tool <% ctx().st2_cli_args %>; else echo 'pack_install_tool tests not available'; fi
timeout: 600
next:
- when: <% succeeded() %>
do:
- test_quickstart_key_triggers
test_quickstart_key_triggers:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_key_triggers <% ctx().st2_cli_args %>
timeout: 600
next:
- when: <% succeeded() %>
do:
- test_quickstart_timer_rules
test_quickstart_timer_rules:
action: core.remote
input:
hosts: <% ctx().host %>
env: <% ctx().env %>
cmd: st2 run tests.test_timer_rule <% ctx().st2_cli_args %>
timeout: 600