func TestIsRootEnabled(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleIsRootEnabled(t) isEnabled, err := instances.IsRootEnabled(fake.ServiceClient(), instanceID).Extract() th.AssertNoErr(t, err) th.AssertEquals(t, true, isEnabled) }
func (c context) isRootEnabled() { enabled, err := instances.IsRootEnabled(c.client, c.instanceID) c.AssertNoErr(err) c.Logf("Is root enabled? %d", enabled) }