Fixing printing of port resources (#274)
diff --git a/acceptance/openstack/networking/v2/ports_test.go b/acceptance/openstack/networking/v2/ports_test.go
index a11ff55..394e90f 100644
--- a/acceptance/openstack/networking/v2/ports_test.go
+++ b/acceptance/openstack/networking/v2/ports_test.go
@@ -101,7 +101,7 @@
}
defer DeletePort(t, client, port.ID)
- PrintPort(t, port)
+ tools.PrintResource(t, port)
// Create a Security Group
group, err := extensions.CreateSecurityGroup(t, client)
@@ -128,7 +128,7 @@
t.Fatalf("Could not update port: %v", err)
}
- PrintPort(t, newPort)
+ tools.PrintResource(t, newPort)
if len(newPort.SecurityGroups) > 0 {
t.Fatalf("Unable to remove security group from port")
@@ -162,7 +162,7 @@
}
defer DeletePort(t, client, port.ID)
- PrintPort(t, port)
+ tools.PrintResource(t, port)
// Add an address pair to the port
updateOpts := ports.UpdateOpts{
@@ -184,7 +184,7 @@
t.Fatalf("Could not update port: %v", err)
}
- PrintPort(t, newPort)
+ tools.PrintResource(t, newPort)
if len(newPort.AllowedAddressPairs) > 0 {
t.Fatalf("Unable to remove the address pair")