- 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: '@weekly'
--- /dev/null
+#!/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