Add upgrade tests job 52/77252/11
authorTaseer <taseer94@gmail.com>
Wed, 24 Oct 2018 12:02:02 +0000 (14:02 +0200)
committerTaseer <taseer94@gmail.com>
Sat, 3 Nov 2018 13:16:27 +0000 (14:16 +0100)
Modify he upgrade script to test and assert installation of
different versions of ODL.

JIRA: INTPAK-29
Change-Id: I09594e0c705bfc5456271c9d976c058ab860f8cc
Signed-off-by: Taseer <taseer94@gmail.com>
jjb/packaging/ansible.yaml
jjb/packaging/test-ansible-rpm-upgrade.sh [new file with mode: 0644]

index 78023e0f50b4e6ed516ccc3ea31093b8861a615a..42ad10afa791e38cd535dd8b5ab87d35e1a446f4 100644 (file)
@@ -47,6 +47,7 @@
       - shell: !include-raw: setup-ansible-rpm.sh
       - shell: !include-raw: test-ansible-rpm-default-config.sh
       - shell: !include-raw: test-ansible-rpm-custom-config.sh
+      - shell: !include-raw: test-ansible-rpm-upgrade.sh
 
     triggers:
       - timed: '@daily'
diff --git a/jjb/packaging/test-ansible-rpm-upgrade.sh b/jjb/packaging/test-ansible-rpm-upgrade.sh
new file mode 100644 (file)
index 0000000..c5a5c55
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Uninstall ODL from previous test
+# This is to ensure these tests run independant
+# from any other tests
+sudo yum remove opendaylight -y
+
+# Remove the ODL directory
+sudo rm -rf /opt/opendaylight
+
+# Execute the upgrade tests
+sudo ansible-playbook -i "localhost," -c local $WORKSPACE/ansible/tests/test-odl-upgrade.yaml -v