Skip to content

Commit

Permalink
Properly segment StorageEndpointSuffix and CosmosEndpointSuffix (#14754)
Browse files Browse the repository at this point in the history
  • Loading branch information
christothes committed Sep 2, 2020
1 parent cb05f2e commit d43c9ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/tables/Azure.Data.Tables/tests/TablesTestEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ public TablesTestEnvironment() : base("tables")
}

// Storage Tables
public const string DefaultStorageSuffix = ".table.core.windows.net";
public const string DefaultStorageSuffix = "core.windows.net";
public string PrimaryStorageAccountKey => GetRecordedVariable("TABLES_PRIMARY_STORAGE_ACCOUNT_KEY", options => options.IsSecret(SanitizedValue.Base64));
public string StorageAccountName => GetRecordedVariable("TABLES_STORAGE_ACCOUNT_NAME");
public string StorageUri => $"https://{StorageAccountName}{StorageEndpointSuffix ?? DefaultStorageSuffix}";
public string StorageUri => $"https://{StorageAccountName}.table.{StorageEndpointSuffix ?? DefaultStorageSuffix}";

// Cosmos Tables
public string CosmosEndpointSuffix => GetRecordedOptionalVariable("COSMOS_TABLES_ENDPOINT_SUFFIX") ?? ".table.cosmos.azure.com";
public string CosmosEndpointSuffix => GetRecordedOptionalVariable("COSMOS_TABLES_ENDPOINT_SUFFIX") ?? "cosmos.azure.com";
public string PrimaryCosmosAccountKey => GetRecordedVariable("TABLES_PRIMARY_COSMOS_ACCOUNT_KEY", options => options.IsSecret(SanitizedValue.Base64));
public string CosmosAccountName => GetRecordedVariable("TABLES_COSMOS_ACCOUNT_NAME");
public string CosmosUri => $"https://{CosmosAccountName}{CosmosEndpointSuffix}";
public string CosmosUri => $"https://{CosmosAccountName}.table.{CosmosEndpointSuffix}";
}
}

0 comments on commit d43c9ed

Please sign in to comment.