public void Test022_Should_Get_The_Updated_Test_Server_Metadata() { var provider = new net.openstack.Providers.Rackspace.ComputeProvider(); var metadata = provider.ListServerMetadata(_testIdentity, _testServer.Id); Assert.IsNotNull(metadata); Assert.IsTrue(metadata.Count == 3); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_3")); Assert.IsTrue(metadata.First(md => md.Key == "Metadata_Key_3").Value == "My_Value_3_Updated_Again"); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_4")); Assert.IsTrue(metadata.First(md => md.Key == "Metadata_Key_4").Value == "My_Value_4"); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_5")); Assert.IsTrue(metadata.First(md => md.Key == "Metadata_Key_5").Value == "My_Value_5_Updated_Again"); }
public void Test006_Should_Get_Empty_Server_Metadata_List() { var provider = new net.openstack.Providers.Rackspace.ComputeProvider(); var metadata = provider.ListServerMetadata(_testIdentity, _testServer.Id); Assert.IsNotNull(metadata); Assert.IsTrue(metadata.Count == 0); }
public void Test008_Should_Get_The_Initial_Test_Server_Metadata() { var provider = new net.openstack.Providers.Rackspace.ComputeProvider(); var metadata = provider.ListServerMetadata(_testIdentity, _testServer.Id); Assert.IsNotNull(metadata); Assert.IsTrue(metadata.Count == 2); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_1")); Assert.IsTrue(metadata.First(md => md.Key == "Metadata_Key_1").Value == "My_Value_1"); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_2")); Assert.IsTrue(metadata.First(md => md.Key == "Metadata_Key_2").Value == "My_Value_2"); }
public void Test020_Should_Get_The_Updated_Test_Server_Metadata_Excluding_The_Deleted_Item() { var provider = new net.openstack.Providers.Rackspace.ComputeProvider(); var metadata = provider.ListServerMetadata(_testIdentity, _testServer.Id); Assert.IsNotNull(metadata); Assert.IsTrue(metadata.Count == 2); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_3")); Assert.AreEqual("My_Value_3_Updated_Again", metadata.First(md => md.Key == "Metadata_Key_3").Value); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_5")); Assert.AreEqual("My_Value_5_Updated", metadata.First(md => md.Key == "Metadata_Key_5").Value); }
public void Test010_Should_Get_The_Update_Reset_Test_Server_Metadata() { var provider = new net.openstack.Providers.Rackspace.ComputeProvider(); var metadata = provider.ListServerMetadata(_testIdentity, _testServer.Id); Assert.IsNotNull(metadata); Assert.IsTrue(metadata.Count == 2); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_3")); Assert.AreEqual("My_Value_3", metadata.First(md => md.Key == "Metadata_Key_3").Value); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_4")); Assert.AreEqual("My_Value_4", metadata.First(md => md.Key == "Metadata_Key_4").Value); }
public void Test022_Should_Get_The_Updated_Test_Server_Metadata() { var provider = new ComputeProvider(_testIdentity); var metadata = provider.ListServerMetadata(_testServer.Id); Assert.IsNotNull(metadata); Assert.IsTrue(metadata.Count == 3); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_3")); Assert.AreEqual("My_Value_3_Updated_Again", metadata.First(md => md.Key == "Metadata_Key_3").Value); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_4")); Assert.AreEqual("My_Value_4", metadata.First(md => md.Key == "Metadata_Key_4").Value); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_5")); Assert.AreEqual("My_Value_5_Updated_Again", metadata.First(md => md.Key == "Metadata_Key_5").Value); }
public void Test008_Should_Get_The_Initial_Test_Server_Metadata() { var provider = new ComputeProvider(_testIdentity); var metadata = provider.ListServerMetadata(_testServer.Id); Assert.IsNotNull(metadata); Assert.IsTrue(metadata.Count == 2); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_1")); Assert.AreEqual("My_Value_1", metadata.First(md => md.Key == "Metadata_Key_1").Value); Assert.IsTrue(metadata.Any(md => md.Key == "Metadata_Key_2")); Assert.AreEqual("My_Value_2", metadata.First(md => md.Key == "Metadata_Key_2").Value); }
public void Test006_Should_Get_Empty_Server_Metadata_List() { var provider = new ComputeProvider(_testIdentity); var metadata = provider.ListServerMetadata(_testServer.Id); Assert.IsNotNull(metadata); Assert.IsTrue(metadata.Count == 0); }