Fixed smoke tests that broke during a refactor of the snaps-provisioning project. 49/23949/1
authorspisarski <s.pisarski@cablelabs.com>
Thu, 3 Nov 2016 17:09:47 +0000 (11:09 -0600)
committerspisarski <s.pisarski@cablelabs.com>
Thu, 3 Nov 2016 17:09:47 +0000 (11:09 -0600)
Change-Id: I8a7ee68690156fd12f36baaf72774e2eb711312c
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
ci/run_smoke_tests.sh
tests/smoke_tests/execute_smoke_tests.sh
tests/smoke_tests/execute_tests.yml
tests/smoke_tests/prepare_undercloud.yml

index b059952..8985ed8 100755 (executable)
@@ -2,4 +2,7 @@
 
 source ../lib/utility-functions.sh
 
+export ANSIBLE_HOST_KEY_CHECKING=False
+
+echo 'See ~stack/smoke-tests.out on the undercloud for result log'
 ansible-playbook -i "$(get_undercloud_ip)," ../tests/smoke_tests/smoke_tests.yml
index 6f9e17f..5ebbf3a 100755 (executable)
@@ -1,6 +1,3 @@
 #!/usr/bin/env bash
 
-cd ~/provisioning/python
-export PYTHONPATH=$PYTHONPATH:$(pwd)
-
-python unit_test_suite.py -e ~stack/overcloudrc -n external -l INFO
\ No newline at end of file
+python ~/snaps/snaps/unit_test_suite.py -e ~stack/overcloudrc -n external -l INFO &> ~stack/snoke-tests.out
\ No newline at end of file
index e232656..5042d23 100644 (file)
@@ -1,6 +1,8 @@
 ---
 - hosts: all
-  sudo: yes
+  become: yes
+  become_method: sudo
+  become_user: root
 
   tasks:
    - name: Copy execute_smoke_tests.sh
index d4e318a..69343ff 100644 (file)
@@ -1,16 +1,9 @@
 ---
 - hosts: all
-  sudo: yes
+  become: yes
+  become_method: sudo
+  become_user: root
 
   tasks:
-   - yum: name=libffi
-   - yum: name=libffi-devel
-   - pip: name=python-keystoneclient
-   - pip: name=python-glanceclient
-   - pip: name=python-neutronclient
-   - pip: name=python-novaclient
-   - pip: name=scp
-   - pip: name=PyYAML
-   - pip: name=ansible==2.1.0
-
-   - git: repo=https://gerrit.cablelabs.com/snaps-provisioning dest=~/provisioning
+   - git: repo=https://gerrit.cablelabs.com/snaps-provisioning dest=~/snaps
+   - command: pip install -e ~/snaps/