public void Version1Supported() { var client = new StorageServiceClientDefinition(); Assert.IsTrue(client.ListSupportedVersions().Contains("1.0")); Assert.IsTrue(client.ListSupportedVersions().Contains("1")); }
public void CannotSupportUnknownServiceName() { var client = new StorageServiceClientDefinition(); var creds = GetValidCreds(); var catalog = new OpenStackServiceCatalog { new OpenStackServiceDefinition("Swift", "Test", new List<OpenStackServiceEndpoint>() { new OpenStackServiceEndpoint("http://someplace.com", "somewhere", "1.0", "http://www.someplace.com", "http://www.someplace.com") }) }; creds.SetServiceCatalog(catalog); Assert.IsFalse(client.IsSupported(creds, "BadServiceName")); }
public void CannotSupportUnknownServiceName() { var client = new StorageServiceClientDefinition(); var creds = GetValidCreds(); var catalog = new OpenStackServiceCatalog { new OpenStackServiceDefinition("Swift", "Test", new List <OpenStackServiceEndpoint>() { new OpenStackServiceEndpoint("http://someplace.com", "somewhere", "1.0", "http://www.someplace.com", "http://www.someplace.com") }) }; creds.SetServiceCatalog(catalog); Assert.IsFalse(client.IsSupported(creds, "BadServiceName")); }