| "gerrit.mcp.mirantis.net/debian/gophercloud.git" |
| "gerrit.mcp.mirantis.net/debian/gophercloud.git/openstack" |
| "gerrit.mcp.mirantis.net/debian/gophercloud.git/openstack/db/v1/instances" |
| th "gerrit.mcp.mirantis.net/debian/gophercloud.git/testhelper" |
| func newClient(t *testing.T) *gophercloud.ServiceClient { |
| ao, err := openstack.AuthOptionsFromEnv() |
| client, err := openstack.AuthenticatedClient(ao) |
| c, err := openstack.NewDBV1(client, gophercloud.EndpointOpts{ |
| Region: os.Getenv("OS_REGION_NAME"), |
| client *gophercloud.ServiceClient |
| func newContext(t *testing.T) context { |
| func (c context) Logf(msg string, args ...interface{}) { |
| c.test.Logf(msg, args...) |
| func (c context) AssertNoErr(err error) { |
| th.AssertNoErr(c.test, err) |
| func (c context) WaitUntilActive(id string) { |
| err := gophercloud.WaitFor(60, func() (bool, error) { |
| inst, err := instances.Get(c.client, id).Extract() |
| if inst.Status == "ACTIVE" { |