Jon Perritt | e918e76 | 2015-01-23 10:46:36 -0700 | [diff] [blame^] | 1 | package serviceassets |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | os "github.com/rackspace/gophercloud/openstack/cdn/v1/serviceassets" |
| 7 | th "github.com/rackspace/gophercloud/testhelper" |
| 8 | fake "github.com/rackspace/gophercloud/testhelper/client" |
| 9 | ) |
| 10 | |
| 11 | func TestDelete(t *testing.T) { |
| 12 | th.SetupHTTP() |
| 13 | defer th.TeardownHTTP() |
| 14 | |
| 15 | os.HandleDeleteCDNAssetSuccessfully(t) |
| 16 | |
| 17 | err := Delete(fake.ServiceClient(), "96737ae3-cfc1-4c72-be88-5d0e7cc9a3f0", nil).ExtractErr() |
| 18 | th.AssertNoErr(t, err) |
| 19 | } |