public async Task CannotAccessNonExistentPrivateUriInStorageAccountUsingUriEndpointValidator() { var storageCreds = new WabStorageAccountConfiguration( IntegrationTestBase.TestCredentials.Environments[0].DefaultStorageAccount.Name, IntegrationTestBase.TestCredentials.Environments[0].DefaultStorageAccount.Key); string fullPathToContainer = string.Format( "https://{0}/{1}/thisblobshouldnotexist", UriEndpointValidator.GetFullyQualifiedStorageAccountName( IntegrationTestBase.TestCredentials.Environments[0].DefaultStorageAccount.Name), IntegrationTestBase.TestCredentials.Environments[0].DefaultStorageAccount.Container); await UriEndpointValidator.ValidateAndResolveWasbScriptActionEndpointUri(new Uri(fullPathToContainer), storageCreds); }
public async Task CanAccessHttpUriInStorageAccountUsingUriEndpointValidator() { var storageCreds = new WabStorageAccountConfiguration( IntegrationTestBase.TestCredentials.Environments[0].DefaultStorageAccount.Name, IntegrationTestBase.TestCredentials.Environments[0].DefaultStorageAccount.Key); var fullPathToContainer = new Uri(string.Format( CultureInfo.InvariantCulture, "https://{0}/{1}/hive", UriEndpointValidator.GetFullyQualifiedStorageAccountName( IntegrationTestBase.TestCredentials.Environments[0].DefaultStorageAccount.Name), IntegrationTestBase.TestCredentials.Environments[0].DefaultStorageAccount.Container)); await UriEndpointValidator.ValidateAndResolveWasbScriptActionEndpointUri(fullPathToContainer, storageCreds); }