Skip to content

Commit

Permalink
Unify connection string in Cosmos tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriySvyryd authored Jun 16, 2020
1 parent 2c0a6ae commit 163c70a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ public static class TestEnvironment
? "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="
: Config["AuthToken"];

public static string ConnectionString { get; } = string.IsNullOrEmpty(Config["ConnectionString"])
? "AccountEndpoint=https://localhost:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="
: Config["ConnectionString"];
public static string ConnectionString { get; } = $"AccountEndpoint={DefaultConnection};AccountKey={AuthToken}";

public static bool IsEmulator { get; } = DefaultConnection.StartsWith("https://localhost:8081", StringComparison.Ordinal);
}
Expand Down

0 comments on commit 163c70a

Please sign in to comment.