Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
trwalke committed Apr 4, 2024
1 parent 5f2a384 commit c3f3d3a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions tests/E2E Tests/WebAppUiTests/TestingWebAppLocally.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ public async Task ChallengeUser_MicrosoftIdFlow_LocalApp_ValidEmailPassword()
await ExecuteWebAppCallsGraphFlow(labResponse.User.Upn, labResponse.User.GetOrFetchPassword(), clientEnvVars, TraceFileClassName).ConfigureAwait(false);
}

[Theory]
[InlineData("https://MSIDLABCIAM6.ciamlogin.com")] // CIAM authority
[InlineData("https://login.msidlabsciam.com/fe362aec-5d43-45d1-b730-9755e60dc3b9/v2.0/")] // CIAM CUD Authority
[SupportedOSPlatform("windows")]
public async Task ChallengeUser_MicrosoftIdFlow_LocalApp_ValidEmailWithCiamPassword(string authority)
{
var clientEnvVars = new Dictionary<string, string>
{
{"AzureAd__ClientId", "b244c86f-ed88-45bf-abda-6b37aa482c79"},
{"AzureAd__Authority", authority},
{"AzureAd__TenantId", ""},
{"AzureAd__Domain", ""}
};

await ExecuteWebAppCallsGraphFlow("[email protected]", LabUserHelper.FetchUserPassword("msidlabciam6"), clientEnvVars, TraceFileClassNameCiam).ConfigureAwait(false);
}
//[Theory]
//[InlineData("https://MSIDLABCIAM6.ciamlogin.com")] // CIAM authority
//[InlineData("https://login.msidlabsciam.com/fe362aec-5d43-45d1-b730-9755e60dc3b9/v2.0/")] // CIAM CUD Authority
//[SupportedOSPlatform("windows")]
//public async Task ChallengeUser_MicrosoftIdFlow_LocalApp_ValidEmailWithCiamPassword(string authority)
//{
// var clientEnvVars = new Dictionary<string, string>
// {
// {"AzureAd__ClientId", "b244c86f-ed88-45bf-abda-6b37aa482c79"},
// {"AzureAd__Authority", authority},
// {"AzureAd__TenantId", ""},
// {"AzureAd__Domain", ""}
// };

// await ExecuteWebAppCallsGraphFlow("[email protected]", LabUserHelper.FetchUserPassword("msidlabciam6"), clientEnvVars, TraceFileClassNameCiam).ConfigureAwait(false);
//}

private async Task ExecuteWebAppCallsGraphFlow(string upn, string credential, Dictionary<string, string>? clientEnvVars, string traceFileClassName)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public async Task ChallengeUser_MicrosoftIdFlow_LocalApp_ValidEmailPasswordCreds
}
}

[Theory(Skip = "")]
[Theory]
[InlineData("https://MSIDLABCIAM6.ciamlogin.com")] // CIAM authority
[InlineData("https://login.msidlabsciam.com/fe362aec-5d43-45d1-b730-9755e60dc3b9/v2.0/")] // CIAM CUD Authority
[SupportedOSPlatform("windows")]
Expand Down

0 comments on commit c3f3d3a

Please sign in to comment.