func TestUpdateContainers(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() os.HandleUpdateContainerSuccessfully(t) options := &os.UpdateOpts{Metadata: map[string]string{"foo": "bar"}} res := Update(fake.ServiceClient(), "testContainer", options) th.CheckNoErr(t, res.Err) }
func TestUpdateCDNContainer(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() os.HandleUpdateContainerSuccessfully(t) options := &UpdateOpts{TTL: 3600} res := Update(fake.ServiceClient(), "testContainer", options) th.CheckNoErr(t, res.Err) }