github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/mrs/v2/clusters/testing/requests_test.go (about)

     1  package testing
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/huaweicloud/golangsdk/openstack/mrs/v2/clusters"
     7  	th "github.com/huaweicloud/golangsdk/testhelper"
     8  	"github.com/huaweicloud/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  }