| "github.com/rackspace/gophercloud" |
| "github.com/rackspace/gophercloud/openstack" |
| "github.com/rackspace/gophercloud/openstack/utils" |
| th "github.com/rackspace/gophercloud/testhelper" |
| var Client *gophercloud.ServiceClient |
| func NewClient() (*gophercloud.ServiceClient, error) { |
| opts, err := utils.AuthOptions() |
| provider, err := openstack.AuthenticatedClient(opts) |
| return openstack.NewNetworkV2(provider, gophercloud.EndpointOpts{ |
| Region: os.Getenv("OS_REGION_NAME"), |
| func Setup(t *testing.T) { |
| client, err := NewClient() |