Jon Perritt | ed7055f | 2015-01-20 19:32:49 -0700 | [diff] [blame] | 1 | package serviceassets |
| 2 | |
| 3 | import ( |
Jon Perritt | d341609 | 2015-03-27 10:36:34 -0600 | [diff] [blame] | 4 | "testing" |
Jon Perritt | ed7055f | 2015-01-20 19:32:49 -0700 | [diff] [blame] | 5 | |
Jon Perritt | 27249f4 | 2016-02-18 10:35:59 -0600 | [diff] [blame] | 6 | th "github.com/gophercloud/gophercloud/testhelper" |
| 7 | fake "github.com/gophercloud/gophercloud/testhelper/client" |
Jon Perritt | ed7055f | 2015-01-20 19:32:49 -0700 | [diff] [blame] | 8 | ) |
| 9 | |
| 10 | func TestDelete(t *testing.T) { |
Jon Perritt | d341609 | 2015-03-27 10:36:34 -0600 | [diff] [blame] | 11 | th.SetupHTTP() |
| 12 | defer th.TeardownHTTP() |
Jon Perritt | ed7055f | 2015-01-20 19:32:49 -0700 | [diff] [blame] | 13 | |
Jon Perritt | d341609 | 2015-03-27 10:36:34 -0600 | [diff] [blame] | 14 | HandleDeleteCDNAssetSuccessfully(t) |
Jon Perritt | ed7055f | 2015-01-20 19:32:49 -0700 | [diff] [blame] | 15 | |
Jon Perritt | d341609 | 2015-03-27 10:36:34 -0600 | [diff] [blame] | 16 | err := Delete(fake.ServiceClient(), "96737ae3-cfc1-4c72-be88-5d0e7cc9a3f0", nil).ExtractErr() |
| 17 | th.AssertNoErr(t, err) |
Jon Perritt | ed7055f | 2015-01-20 19:32:49 -0700 | [diff] [blame] | 18 | } |