Move swift CLI commands to OSC commands

Only a few instances in exercises/swift.sh

Change-Id: I0a39b11f660453a378d44e4f9f28a4a57352f4a8
This commit is contained in:
Steve Martinelli 2014-10-06 03:36:20 -04:00
parent 552459cbcc
commit bf1b8ed470

View File

@ -45,16 +45,16 @@ CONTAINER=ex-swift
# ============= # =============
# Check if we have to swift via keystone # Check if we have to swift via keystone
swift stat || die $LINENO "Failure geting status" swift stat || die $LINENO "Failure getting status"
# We start by creating a test container # We start by creating a test container
swift post $CONTAINER || die $LINENO "Failure creating container $CONTAINER" openstack container create $CONTAINER || die $LINENO "Failure creating container $CONTAINER"
# add some files into it. # add some files into it.
swift upload $CONTAINER /etc/issue || die $LINENO "Failure uploading file to container $CONTAINER" openstack object create $CONTAINER /etc/issue || die $LINENO "Failure uploading file to container $CONTAINER"
# list them # list them
swift list $CONTAINER || die $LINENO "Failure listing contents of container $CONTAINER" openstack object list $CONTAINER || die $LINENO "Failure listing contents of container $CONTAINER"
# 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.