Merge pull request #159 from chmouel/swift-excercise-only-when-enabled

Only do swift excercise when enabled.
This commit is contained in:
Chmouel Boudjnah 2011-11-03 09:13:48 -07:00
commit 05ffac1ee0

View file

@ -192,6 +192,7 @@ nova secgroup-delete $SECGROUP
# make sure that we can describe instances
euca-describe-instances
if [[ "$ENABLED_SERVICES" =~ "swift" ]]; then
# 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
# everything works.
swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0 -U admin -K $ADMIN_PASSWORD delete testcontainer
fi