Update instance/associate with config group
diff --git a/rackspace/db/v1/instances/requests_test.go b/rackspace/db/v1/instances/requests_test.go
index e653c07..c746b6a 100644
--- a/rackspace/db/v1/instances/requests_test.go
+++ b/rackspace/db/v1/instances/requests_test.go
@@ -11,9 +11,9 @@
th.SetupHTTP()
defer th.TeardownHTTP()
- HandleGetConfigSuccessfully(t)
+ HandleGetConfigSuccessfully(t, instanceID)
- config, err := GetConfig(fake.ServiceClient(), opts).Extract()
+ config, err := GetDefaultConfig(fake.ServiceClient(), instanceID).Extract()
expected := map[string]string{
"basedir": "/usr",
@@ -63,3 +63,14 @@
th.AssertNoErr(t, err)
th.AssertDeepEquals(t, expected, config)
}
+
+func TestAssociateWithConfigGroup(t *testing.T) {
+ th.SetupHTTP()
+ defer th.TeardownHTTP()
+
+ HandleAssociateGroupSuccessfully(t, instanceID)
+
+ configGroupID := "{configGroupID}"
+ res := AssociateWithConfigGroup(fake.ServiceClient(), instanceID, configGroupID)
+ th.AssertNoErr(t, res.Err)
+}