Skip to content

Commit

Permalink
fix: update telemetry tests to use a dummy endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
JiayuW2 committed Jan 26, 2024
1 parent a0fb82e commit 1fb1106
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void EnablingDefaultCredentials_CreatesTelemetryClient()
var enabledDefaultCredentials = true;
var telemetryConfig = new TelemetryConfiguration()
{
InvokeUrl = @"https://8cvsix1u33.execute-api.us-east-1.amazonaws.com/gamma",
InvokeUrl = @"https://dummy.amazonaws.com/gamma",
Region = "us-east-1",
};
var isClientCreated = TelemetryClientFactory.TryGetClient(
Expand All @@ -33,7 +33,7 @@ public void CreatesTelemetryClient_WithCredentials()
string profile = null;
var telemetryConfig = new TelemetryConfiguration()
{
InvokeUrl = @"https://8cvsix1u33.execute-api.us-east-1.amazonaws.com/gamma",
InvokeUrl = @"https://dummy.amazonaws.com/gamma",
Region = "us-east-1",
};
AWSCredentials credentials = new BasicAWSCredentials("accessKey", "secretKey");
Expand All @@ -51,7 +51,7 @@ public void CreatesTelemetryClient_WithoutProfileOrCredentials_Failed()
string profile = null;
var telemetryConfig = new TelemetryConfiguration()
{
InvokeUrl = @"https://8cvsix1u33.execute-api.us-east-1.amazonaws.com/gamma",
InvokeUrl = @"https://dummy.amazonaws.com/gamma",
Region = "us-east-1",
};
AWSCredentials credentials = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class TelemetryClientTest
[Test]
public void EnablingDefaultCredentials_CreatesTelemetryClient()
{
var url = "https://8cvsix1u33.execute-api.us-east-1.amazonaws.com/gamma";
var url = "https://dummy.amazonaws.com/gamma";
var telemetryClientConfig = new TelemetryClientConfig(url)
{
ServiceURL = url
Expand Down

0 comments on commit 1fb1106

Please sign in to comment.