common.go 633 B

1234567891011121314151617181920
  1. // Package openstack contains common functions that can be used
  2. // across all OpenStack components for acceptance testing.
  3. package openstack
  4. import (
  5. "testing"
  6. "devel.mephi.ru/iacherepanov/openstack-gophercloud/openstack/common/extensions"
  7. )
  8. // PrintExtension prints an extension and all of its attributes.
  9. func PrintExtension(t *testing.T, extension *extensions.Extension) {
  10. t.Logf("Name: %s", extension.Name)
  11. t.Logf("Namespace: %s", extension.Namespace)
  12. t.Logf("Alias: %s", extension.Alias)
  13. t.Logf("Description: %s", extension.Description)
  14. t.Logf("Updated: %s", extension.Updated)
  15. t.Logf("Links: %v", extension.Links)
  16. }