diff options
Diffstat (limited to 'apex/tests/smoke_tests')
-rwxr-xr-x | apex/tests/smoke_tests/execute_smoke_tests.sh | 3 | ||||
-rw-r--r-- | apex/tests/smoke_tests/execute_tests.yml | 11 | ||||
-rw-r--r-- | apex/tests/smoke_tests/prepare_undercloud.yml | 9 | ||||
-rw-r--r-- | apex/tests/smoke_tests/smoke_tests.yml | 3 |
4 files changed, 26 insertions, 0 deletions
diff --git a/apex/tests/smoke_tests/execute_smoke_tests.sh b/apex/tests/smoke_tests/execute_smoke_tests.sh new file mode 100755 index 00000000..27f95251 --- /dev/null +++ b/apex/tests/smoke_tests/execute_smoke_tests.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +python ~/snaps/snaps/test_runner.py -e ~stack/overcloudrc -n external -c -a -i -f -k -l INFO &> ~stack/smoke-tests.out
\ No newline at end of file diff --git a/apex/tests/smoke_tests/execute_tests.yml b/apex/tests/smoke_tests/execute_tests.yml new file mode 100644 index 00000000..5042d230 --- /dev/null +++ b/apex/tests/smoke_tests/execute_tests.yml @@ -0,0 +1,11 @@ +--- +- hosts: all + become: yes + become_method: sudo + become_user: root + + tasks: + - name: Copy execute_smoke_tests.sh + copy: src=execute_smoke_tests.sh dest=~/execute_smoke_tests.sh mode=0755 + - name: Execute Tests + command: sh ~/execute_smoke_tests.sh | tee ~/unit_tests.out
\ No newline at end of file diff --git a/apex/tests/smoke_tests/prepare_undercloud.yml b/apex/tests/smoke_tests/prepare_undercloud.yml new file mode 100644 index 00000000..7ad769c0 --- /dev/null +++ b/apex/tests/smoke_tests/prepare_undercloud.yml @@ -0,0 +1,9 @@ +--- +- hosts: all + become: yes + become_method: sudo + become_user: root + + tasks: + - git: repo=https://gerrit.opnfv.org/gerrit/snaps dest=~/snaps + - command: pip install -e ~/snaps/ diff --git a/apex/tests/smoke_tests/smoke_tests.yml b/apex/tests/smoke_tests/smoke_tests.yml new file mode 100644 index 00000000..b67c194f --- /dev/null +++ b/apex/tests/smoke_tests/smoke_tests.yml @@ -0,0 +1,3 @@ +--- +- include: prepare_undercloud.yml +- include: execute_tests.yml
\ No newline at end of file |