github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/acceptance/openstack/common.go (about) 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/huaweicloud/golangsdk/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 }