X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=debian%2Ftests%2Fbigswitch-plugin;fp=debian%2Ftests%2Fbigswitch-plugin;h=07504152ad7eecc403960f1b0126dc6f754f1754;hb=5f1c6af61342a3d3baabaf2bab5c3cc32f3f1ca6;hp=0000000000000000000000000000000000000000;hpb=41c661dde15aa2524a423ced2815671886af8f36;p=openstack-build%2Fneutron-build.git diff --git a/debian/tests/bigswitch-plugin b/debian/tests/bigswitch-plugin new file mode 100644 index 000000000..07504152a --- /dev/null +++ b/debian/tests/bigswitch-plugin @@ -0,0 +1,19 @@ +#!/bin/bash +#------------------------- +# Testing bigswitch-plugin +#------------------------- +set -e +apt-get -y install neutron-plugin-bigswitch + +# update plugin path +sed -i 's/NEUTRON_PLUGIN_CONFIG\=.*/NEUTRON_PLUGIN_CONFIG\=\"\/etc\/neutron\/plugins\/bigswitch\/restproxy\.ini\"/g' /etc/default/neutron-server +sed -i 's/core_plugin/core_plugin \= neutron\.plugins\.bigswitch\.plugin\.NeutronRestProxyV2/g' /etc/neutron/neutron.conf +service neutron-server restart > /dev/null 2>&1 +if pidof -x neutron-server > /dev/null; then + apt-get -y remove --purge neutron-plugin-bigswitch + echo "OK" +else + echo "ERROR: BIGSWITCH PLUGIN IS NOT RUNNING" + apt-get -y remove --purge neutron-plugin-bigswitch + exit 1 +fi