github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/mrs/v2/clusters/testing/requests_test.go (about) 1 package testing 2 3 import ( 4 "testing" 5 6 "github.com/chnsz/golangsdk/openstack/mrs/v2/clusters" 7 th "github.com/chnsz/golangsdk/testhelper" 8 "github.com/chnsz/golangsdk/testhelper/client" 9 ) 10 11 func TestCreateV2Cluster(t *testing.T) { 12 th.SetupHTTP() 13 defer th.TeardownHTTP() 14 handleV2ClusterCreate(t) 15 16 actual, err := clusters.Create(client.ServiceClient(), createOpts).Extract() 17 th.AssertNoErr(t, err) 18 th.AssertDeepEquals(t, expectedCreateResponseData, actual) 19 }