Change-Id: I80c9e42abb7060622d82cffc83d0108654a36562
| ... | ... |
@@ -23,22 +23,18 @@ popd |
| 23 | 23 |
# Testing Swift |
| 24 | 24 |
# ============= |
| 25 | 25 |
|
| 26 |
-# FIXME(chmou): when review https://review.openstack.org/#change,3712 |
|
| 27 |
-# is merged we would be able to use the common openstack options and |
|
| 28 |
-# remove the trailing slash to v2.0 auth url. |
|
| 29 |
-# |
|
| 30 | 26 |
# Check if we have to swift via keystone |
| 31 |
-swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0/ -U admin -K $ADMIN_PASSWORD stat
|
|
| 27 |
+swift stat |
|
| 32 | 28 |
|
| 33 | 29 |
# We start by creating a test container |
| 34 |
-swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0/ -U admin -K $ADMIN_PASSWORD post testcontainer
|
|
| 30 |
+swift post testcontainer |
|
| 35 | 31 |
|
| 36 | 32 |
# add some files into it. |
| 37 |
-swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0/ -U admin -K $ADMIN_PASSWORD upload testcontainer /etc/issue
|
|
| 33 |
+swift upload testcontainer /etc/issue |
|
| 38 | 34 |
|
| 39 | 35 |
# list them |
| 40 |
-swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0/ -U admin -K $ADMIN_PASSWORD list testcontainer
|
|
| 36 |
+swift list testcontainer |
|
| 41 | 37 |
|
| 42 | 38 |
# And we may want to delete them now that we have tested that |
| 43 | 39 |
# everything works. |
| 44 |
-swift --auth-version 2 -A http://${HOST_IP}:5000/v2.0/ -U admin -K $ADMIN_PASSWORD delete testcontainer
|
|
| 40 |
+swift delete testcontainer |