Use OS common cli auth arguments.

Change-Id: I80c9e42abb7060622d82cffc83d0108654a36562
This commit is contained in:
Chmouel Boudjnah 2012-02-29 14:11:01 +00:00
parent b32c876ed5
commit a6bdfddd2b

View File

@ -23,22 +23,18 @@ popd
# Testing Swift # Testing Swift
# ============= # =============
# FIXME(chmou): when review https://review.openstack.org/#change,3712
# is merged we would be able to use the common openstack options and
# remove the trailing slash to v2.0 auth url.
#
# Check if we have to swift via keystone # Check if we have to swift via keystone
swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0/ -U admin -K $ADMIN_PASSWORD stat swift stat
# We start by creating a test container # We start by creating a test container
swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0/ -U admin -K $ADMIN_PASSWORD post testcontainer swift post testcontainer
# add some files into it. # add some files into it.
swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0/ -U admin -K $ADMIN_PASSWORD upload testcontainer /etc/issue swift upload testcontainer /etc/issue
# list them # list them
swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0/ -U admin -K $ADMIN_PASSWORD list testcontainer swift list testcontainer
# 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 delete testcontainer