Acceptance Test Updates (#218)
* compute: don't pass choices
* blockstorage: don't pass choices
* DumpResource Function
This function prints a resource in JSON format but retains the actual
field name rather than using the name specified in the JSON tag.
* New DumpResource
This version just converts the resource into JSON. The original is
being left in git history for posterity.
* Renaming DumpResource to PrintResource
* Removing all print functions in favor of PrintResource
* Rebase reconcilliation
diff --git a/acceptance/openstack/identity/v3/endpoint_test.go b/acceptance/openstack/identity/v3/endpoint_test.go
index 6a52f26..a589970 100644
--- a/acceptance/openstack/identity/v3/endpoint_test.go
+++ b/acceptance/openstack/identity/v3/endpoint_test.go
@@ -7,6 +7,7 @@
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/acceptance/clients"
+ "github.com/gophercloud/gophercloud/acceptance/tools"
"github.com/gophercloud/gophercloud/openstack/identity/v3/endpoints"
"github.com/gophercloud/gophercloud/openstack/identity/v3/services"
)
@@ -28,7 +29,7 @@
}
for _, endpoint := range allEndpoints {
- PrintEndpoint(t, &endpoint)
+ tools.PrintResource(t, endpoint)
}
}
@@ -58,7 +59,7 @@
}
computeService := allServices[0]
- PrintService(t, &computeService)
+ tools.PrintResource(t, computeService)
// Enumerate the endpoints available for this service.
endpointListOpts := endpoints.ListOpts{
@@ -80,6 +81,6 @@
t.Fatalf("Expected one endpoint, got %d", len(allEndpoints))
}
- PrintEndpoint(t, &allEndpoints[0])
+ tools.PrintResource(t, allEndpoints[0])
}