blob: e0f78230787a7af48b4c9adc6023bc30ddb8d627 [file] [log] [blame]
Tatyana Leontovich063d0ff2017-09-05 18:11:55 +03001{# Collection of sl tests macroses shared across different deployments #}
2
3{% set SL_TEST_BRANCH = os_env('SL_TEST_BRANCH','master') %}
4{% set SL_TEST_REPO = os_env('SL_TEST_REPO','https://github.com/dkalashnik/stacklight-pytest') %}
5{% set SL_TEST_TO_RUN = os_env('set SL_TEST_TO_RUN','stacklight_tests/tests/prometheus/test_smoke.py') %}
6
7{%- macro MACRO_CLONE_SL_TESTS() %}
8{############################################################}
9- description: Clone repo and install tests on cfg node
10 cmd: |
11 set -e;
12 git clone -b {{ SL_TEST_BRANCH }} {{ SL_TEST_REPO }} /root/stacklight-pytest;
13 cd /root/stacklight-pytest;
14 python setup.py sdist;
15 pip install dist/stacklight_tests-1.0.tar.gz --process-dependency-links
16 node_name: {{ HOSTNAME_CFG01 }}
17 retry: {count: 1, delay: 1}
18 skip_fail: false
19{%- endmacro %}
20
21
22{%- macro MACRO_CONFIGURE_TESTS() %}
23{#######################################################}
24- description: Configure tests
25 cmd: |
26 set -e;
27 stl-tests gen-config-mk;
28 cp /usr/local/lib/python2.7/dist-packages/stacklight_tests/fixtures/config.yaml /root/stacklight-pytest/stacklight_tests/fixtures/config.yaml;
29 node_name: {{ HOSTNAME_CFG01 }}
30 retry: {count: 1, delay: 1}
31 skip_fail: false
32{%- endmacro %}
33
34