Joe Topjian | 918f573 | 2016-08-15 08:47:08 -0600 | [diff] [blame] | 1 | // Package openstack contains common functions that can be used |
| 2 | // across all OpenStack components for acceptance testing. |
| 3 | package openstack |
| 4 | |
| 5 | import ( |
| 6 | "testing" |
| 7 | |
| 8 | "github.com/gophercloud/gophercloud/openstack/common/extensions" |
| 9 | ) |
| 10 | |
| 11 | // PrintExtension prints an extension and all of its attributes. |
| 12 | func PrintExtension(t *testing.T, extension *extensions.Extension) { |
| 13 | t.Logf("Name: %s", extension.Name) |
| 14 | t.Logf("Namespace: %s", extension.Namespace) |
| 15 | t.Logf("Alias: %s", extension.Alias) |
| 16 | t.Logf("Description: %s", extension.Description) |
| 17 | t.Logf("Updated: %s", extension.Updated) |
| 18 | t.Logf("Links: %v", extension.Links) |
| 19 | } |