From 1fb110653e98564fa3fa3d3662f17919a08e9efc Mon Sep 17 00:00:00 2001 From: Jiayu Wang Date: Fri, 26 Jan 2024 11:17:19 -0800 Subject: [PATCH] fix: update telemetry tests to use a dummy endpoint --- .../TelemetryClientFactoryTest.cs | 6 +++--- .../TelemetryClientTest.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/PortingAssistant.Client.UnitTests/TelemetryClientFactoryTest.cs b/tests/PortingAssistant.Client.UnitTests/TelemetryClientFactoryTest.cs index 7cc543984..634954a12 100644 --- a/tests/PortingAssistant.Client.UnitTests/TelemetryClientFactoryTest.cs +++ b/tests/PortingAssistant.Client.UnitTests/TelemetryClientFactoryTest.cs @@ -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( @@ -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"); @@ -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; diff --git a/tests/PortingAssistant.Client.UnitTests/TelemetryClientTest.cs b/tests/PortingAssistant.Client.UnitTests/TelemetryClientTest.cs index 28aadc69a..51c5d03ad 100644 --- a/tests/PortingAssistant.Client.UnitTests/TelemetryClientTest.cs +++ b/tests/PortingAssistant.Client.UnitTests/TelemetryClientTest.cs @@ -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