MCPcopy Create free account
hub / github.com/apache/cloudstack-go / TestMiscService

Function TestMiscService

test/MiscService_test.go:28–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func TestMiscService(t *testing.T) {
29 service := "MiscService"
30 response, err := readData(service)
31 if err != nil {
32 t.Skipf("Skipping test as %v", err)
33 }
34 server := CreateTestServer(t, response)
35 client := cloudstack.NewClient(server.URL, "APIKEY", "SECRETKEY", true)
36 defer server.Close()
37
38 testlistElastistorInterface := func(t *testing.T) {
39 if _, ok := response["listElastistorInterface"]; !ok {
40 t.Skipf("Skipping as no json response is provided in testdata")
41 }
42 p := client.Misc.NewListElastistorInterfaceParams()
43 _, err := client.Misc.ListElastistorInterface(p)
44 if err != nil {
45 t.Errorf(err.Error())
46 }
47 }
48 t.Run("ListElastistorInterface", testlistElastistorInterface)
49
50}

Callers

nothing calls this directly

Calls 6

NewClientFunction · 0.92
readDataFunction · 0.85
CreateTestServerFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected