From 32ebfa7d83b8eb358b02d9aabbb74d97006bef19 Mon Sep 17 00:00:00 2001 From: Harshdeep Singh <6162866+harsh62@users.noreply.github.com> Date: Wed, 29 Nov 2023 10:38:16 -0500 Subject: [PATCH] fixed unit tests that broke while resolving conflicts --- .../SignIn/AWSAuthConfirmSignInWithMagicLinkTaskTests.swift | 4 ++-- .../SignIn/AWSAuthConfirmSignInWithOTPTaskTests.swift | 4 ++-- .../SignIn/AWSAuthSignInWithMagicLinkTaskTests.swift | 6 +++--- .../SignIn/AWSAuthSignInWithOTPTaskTests.swift | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthConfirmSignInWithMagicLinkTaskTests.swift b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthConfirmSignInWithMagicLinkTaskTests.swift index 3d4244e0df..f506939d4d 100644 --- a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthConfirmSignInWithMagicLinkTaskTests.swift +++ b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthConfirmSignInWithMagicLinkTaskTests.swift @@ -51,8 +51,8 @@ class AWSAuthConfirmSignInWithMagicLinkTaskTests: BasePluginTest { mockRespondToAuthChallengeResponse: { request in XCTAssertEqual(request.challengeName, .customChallenge) XCTAssertEqual(request.challengeResponses?["ANSWER"], "code") - XCTAssertEqual(request.clientMetadata?["Amplify.Passwordless.signInMethod"], "MAGIC_LINK") - XCTAssertEqual(request.clientMetadata?["Amplify.Passwordless.action"], "CONFIRM") + XCTAssertEqual(request.clientMetadata?["amplify.passwordless.signInMethod"], "MAGIC_LINK") + XCTAssertEqual(request.clientMetadata?["amplify.passwordless.action"], "CONFIRM") XCTAssertEqual(request.clientMetadata?["somekey"], "somevalue") return .testData() }) diff --git a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthConfirmSignInWithOTPTaskTests.swift b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthConfirmSignInWithOTPTaskTests.swift index 70bd752ee3..2d65c8f3f8 100644 --- a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthConfirmSignInWithOTPTaskTests.swift +++ b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthConfirmSignInWithOTPTaskTests.swift @@ -53,8 +53,8 @@ class AWSAuthConfirmSignInWithOTPTaskTests: BasePluginTest { mockRespondToAuthChallengeResponse: { request in XCTAssertEqual(request.challengeName, .customChallenge) XCTAssertEqual(request.challengeResponses?["ANSWER"], "code") - XCTAssertEqual(request.clientMetadata?["Amplify.Passwordless.signInMethod"], "OTP") - XCTAssertEqual(request.clientMetadata?["Amplify.Passwordless.action"], "CONFIRM") + XCTAssertEqual(request.clientMetadata?["amplify.passwordless.signInMethod"], "OTP") + XCTAssertEqual(request.clientMetadata?["amplify.passwordless.action"], "CONFIRM") XCTAssertEqual(request.clientMetadata?["somekey"], "somevalue") return .testData() }) diff --git a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthSignInWithMagicLinkTaskTests.swift b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthSignInWithMagicLinkTaskTests.swift index f509abb1ef..dcc59f6c4b 100644 --- a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthSignInWithMagicLinkTaskTests.swift +++ b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthSignInWithMagicLinkTaskTests.swift @@ -40,9 +40,9 @@ class AWSAuthSignInWithMagicLinkTaskTests: BasePluginTest { ], session: "someSession") }, mockRespondToAuthChallengeResponse: { input in - XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.signInMethod"], "MAGIC_LINK") - XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.action"], "REQUEST") - XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.deliveryMedium"], "EMAIL") + XCTAssertEqual(input.clientMetadata?["amplify.passwordless.signInMethod"], "MAGIC_LINK") + XCTAssertEqual(input.clientMetadata?["amplify.passwordless.action"], "REQUEST") + XCTAssertEqual(input.clientMetadata?["amplify.passwordless.deliveryMedium"], "EMAIL") XCTAssertEqual(input.clientMetadata?["somekey"], "somevalue") return RespondToAuthChallengeOutput( diff --git a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthSignInWithOTPTaskTests.swift b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthSignInWithOTPTaskTests.swift index 7b6ed2027d..1f06408c55 100644 --- a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthSignInWithOTPTaskTests.swift +++ b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/TaskTests/ClientBehaviorTests/SignIn/AWSAuthSignInWithOTPTaskTests.swift @@ -42,9 +42,9 @@ class AWSAuthSignInWithOTPTaskTests: BasePluginTest { ], session: "someSession") }, mockRespondToAuthChallengeResponse: { input in - XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.signInMethod"], "OTP") - XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.action"], "REQUEST") - XCTAssertEqual(input.clientMetadata?["Amplify.Passwordless.deliveryMedium"], "EMAIL") + XCTAssertEqual(input.clientMetadata?["amplify.passwordless.signInMethod"], "OTP") + XCTAssertEqual(input.clientMetadata?["amplify.passwordless.action"], "REQUEST") + XCTAssertEqual(input.clientMetadata?["amplify.passwordless.deliveryMedium"], "EMAIL") XCTAssertEqual(input.clientMetadata?["somekey"], "somevalue") return RespondToAuthChallengeOutput(