blob: dde7bc171d2c168b55f37f3d3566202b05c69a72 [file] [log] [blame]
Jon Perritted7055f2015-01-20 19:32:49 -07001package serviceassets
2
3import (
Jon Perrittd3416092015-03-27 10:36:34 -06004 "testing"
Jon Perritted7055f2015-01-20 19:32:49 -07005
Jon Perrittd3416092015-03-27 10:36:34 -06006 th "github.com/rackspace/gophercloud/testhelper"
7 fake "github.com/rackspace/gophercloud/testhelper/client"
Jon Perritted7055f2015-01-20 19:32:49 -07008)
9
10func TestDelete(t *testing.T) {
Jon Perrittd3416092015-03-27 10:36:34 -060011 th.SetupHTTP()
12 defer th.TeardownHTTP()
Jon Perritted7055f2015-01-20 19:32:49 -070013
Jon Perrittd3416092015-03-27 10:36:34 -060014 HandleDeleteCDNAssetSuccessfully(t)
Jon Perritted7055f2015-01-20 19:32:49 -070015
Jon Perrittd3416092015-03-27 10:36:34 -060016 err := Delete(fake.ServiceClient(), "96737ae3-cfc1-4c72-be88-5d0e7cc9a3f0", nil).ExtractErr()
17 th.AssertNoErr(t, err)
Jon Perritted7055f2015-01-20 19:32:49 -070018}