Example #1
0
func (c context) resizeInstance() {
	id := c.instanceID
	err := instances.Resize(c.client, id, "3").ExtractErr()
	c.AssertNoErr(err)
	c.Logf("Resizing %s. Waiting...", id)
	c.WaitUntilActive(id)
	c.Logf("Resized %s with flavorRef %s", id, "2")
}
Example #2
0
func TestResize(t *testing.T) {
	th.SetupHTTP()
	defer th.TeardownHTTP()
	HandleResize(t)

	res := instances.Resize(fake.ServiceClient(), instanceID, "2")
	th.AssertNoErr(t, res.Err)
}