create temp url operation and test
diff --git a/acceptance/rackspace/objectstorage/v1/objects_test.go b/acceptance/rackspace/objectstorage/v1/objects_test.go
index 96a7d8c..585dea7 100644
--- a/acceptance/rackspace/objectstorage/v1/objects_test.go
+++ b/acceptance/rackspace/objectstorage/v1/objects_test.go
@@ -30,6 +30,7 @@
options := &osObjects.CreateOpts{ContentType: "text/plain"}
createres := raxObjects.Create(c, "gophercloud-test", "o1", content, options)
th.AssertNoErr(t, createres.Err)
+
defer func() {
t.Logf("Deleting object o1...")
res := raxObjects.Delete(c, "gophercloud-test", "o1", nil)
@@ -112,4 +113,12 @@
th.AssertNoErr(t, err)
t.Logf("Metadata from Get Account request (after update): %+v\n", metadata)
th.CheckEquals(t, "mountains", metadata["White"])
+
+ createTempURLOpts := osObjects.CreateTempURLOpts{
+ Method: osObjects.GET,
+ TTL: 600,
+ }
+ tempURL, err := raxObjects.CreateTempURL(c, "gophercloud-test", "o1", createTempURLOpts)
+ th.AssertNoErr(t, err)
+ t.Logf("TempURL for object (%s): %s", "o1", tempURL)
}