public void Test011_Should_Set_Update_All_Server_Metadata_Items() { var provider = new net.openstack.Providers.Rackspace.ComputeProvider(); var metadata = new Metadata() { { "Metadata_Key_3", "My_Value_3_Updated" }, { "Metadata_Key_4", "My_Value_4_Updated" } }; var response = provider.UpdateServerMetadata(_testIdentity, _testServer.Id, metadata); Thread.Sleep(10000); // Sleep a few seconds because there is an edge case that the system does not reflect the new metadata changes quick enough Assert.IsTrue(response); }
public void Test021_Should_Set_Update_Two_Of_The_Three_Server_Metadata_Items() { var provider = new net.openstack.Providers.Rackspace.ComputeProvider(); var metadata = new Metadata() { { "Metadata_Key_4", "My_Value_4" }, { "Metadata_Key_5", "My_Value_5_Updated_Again" } }; var response = provider.UpdateServerMetadata(_testIdentity, _testServer.Id, metadata); Assert.IsTrue(response); }
public void Test015_Should_Set_Update_Two_Of_The_Three_Server_Metadata_Items() { var provider = new ComputeProvider(_testIdentity); var metadata = new Metadata() { { "Metadata_Key_3", "My_Value_3_Updated_Again" }, { "Metadata_Key_5", "My_Value_5_Updated" } }; var response = provider.UpdateServerMetadata(_testServer.Id, metadata); Assert.IsTrue(response); }