Only run swift excercise when swift is enabled.

This commit is contained in:
Chmouel Boudjnah 2011-11-03 17:04:26 +01:00
parent e1664a469b
commit 53ca603b45

View file

@ -192,6 +192,7 @@ nova secgroup-delete $SECGROUP
# make sure that we can describe instances # make sure that we can describe instances
euca-describe-instances euca-describe-instances
if [[ "$ENABLED_SERVICES" =~ "swift" ]]; then
# Testing Swift # Testing Swift
# ============= # =============
@ -210,3 +211,4 @@ swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0 -U admin -K $ADMIN_PASSWOR
# And we may want to delete them now that we have tested that # And we may want to delete them now that we have tested that
# everything works. # everything works.
swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0 -U admin -K $ADMIN_PASSWORD delete testcontainer swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0 -U admin -K $ADMIN_PASSWORD delete testcontainer
fi