jrperritt | 3d96616 | 2016-06-06 14:08:54 -0500 | [diff] [blame] | 1 | package testing |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | "github.com/gophercloud/gophercloud/openstack/cdn/v1/serviceassets" |
| 7 | th "github.com/gophercloud/gophercloud/testhelper" |
| 8 | fake "github.com/gophercloud/gophercloud/testhelper/client" |
| 9 | ) |
| 10 | |
| 11 | func TestDelete(t *testing.T) { |
| 12 | th.SetupHTTP() |
| 13 | defer th.TeardownHTTP() |
| 14 | |
| 15 | HandleDeleteCDNAssetSuccessfully(t) |
| 16 | |
| 17 | err := serviceassets.Delete(fake.ServiceClient(), "96737ae3-cfc1-4c72-be88-5d0e7cc9a3f0", nil).ExtractErr() |
| 18 | th.AssertNoErr(t, err) |
| 19 | } |