Add functest-healthcheck alpine to xci-verify-healthcheck-macro 01/40401/6
authorMorgan Richomme <morgan.richomme@orange.com>
Mon, 28 Aug 2017 13:13:35 +0000 (15:13 +0200)
committeragardner <agardner@linuxfoundation.org>
Tue, 5 Sep 2017 19:46:41 +0000 (15:46 -0400)
 - add the rc file retrieval in fetch_os.sh
 - adapt alpine to split healtcheck from daily
 (healthcheck + smoke + features)
 - adapt the xci builder

Change-Id: I38836814240a1d769d379a10c9ef14def7e6df97
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
jjb/functest/functest-alpine.sh [changed mode: 0644->0755]
jjb/xci/xci-verify-jobs.yml
utils/fetch_os_creds.sh

old mode 100644 (file)
new mode 100755 (executable)
index f0e08e1..9be9fe5
@@ -68,9 +68,14 @@ volumes="${images_vol} ${results_vol} ${sshkey_vol} ${rc_file_vol} ${cacert_file
 
 set +e
 
-tiers=(healthcheck smoke features vnf)
+if ${FUNCTEST_SUITE_NAME} == 'healthcheck'; then
+    tiers=(healthcheck)
+else
+    tiers=(healthcheck smoke features vnf)
+fi
+
 for tier in ${tiers[@]}; do
-    FUNCTEST_IMAGE=ollivier/functest-${tier}
+    FUNCTEST_IMAGE=opnfv/functest-${tier}
     echo "Functest: Pulling Functest Docker image ${FUNCTEST_IMAGE} ..."
     docker pull ${FUNCTEST_IMAGE}>/dev/null
     cmd="docker run ${envs} ${volumes} ${FUNCTEST_IMAGE}"
index 8d1ee55..6913c1f 100644 (file)
 - builder:
     name: 'xci-verify-healthcheck-macro'
     builders:
-        - shell: |
-            #!/bin/bash
-
-            echo "Hello World!"
+        - shell:
+            !include-raw: ../../utils/fetch_os_creds.sh
+        - shell:
+            !include-raw: ../functest/functest-alpine.sh
index 312e1ac..3d5d8a5 100755 (executable)
@@ -231,6 +231,10 @@ elif [ "$installer_type" == "daisy" ]; then
 
     sshpass -p r00tme scp 2>/dev/null $ssh_options root@${installer_ip}:/etc/kolla/admin-openrc.sh $dest_path &> /dev/null
 
+elif ["$installer_type" == "osa"]; then
+    # Get RC file from control server
+    filename=$(ssh -o StrictHostKeyChecking=no root@${controller_ip} find /var/lib/lxc/controller00_nova_api_placement_container-* -name openrc)
+    scp root@${controller_ip}:${filename} ${destpath}
 else
     error "Installer $installer is not supported by this script"
 fi