Skip to content

Commit d43c9ed

Browse files
authored
Properly segment StorageEndpointSuffix and CosmosEndpointSuffix (#14754)
1 parent cb05f2e commit d43c9ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sdk/tables/Azure.Data.Tables/tests/TablesTestEnvironment.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ public TablesTestEnvironment() : base("tables")
1212
}
1313

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

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

0 commit comments

Comments
 (0)