Skip to content

Commit 021181d

Browse files
authored
Merge pull request #2222 from AzureAD/fidelianawar/update_ciam_lab6
Update CIAM automation test for MSIDLABCIAM6
2 parents 32ed88f + fc201c1 commit 021181d

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

MSAL/test/app/MSALTestAppSettings.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ + (void)initialize
9090
}
9191
}
9292

93-
__auto_type authorityCIAM = [NSString stringWithFormat:@"https://msidlabciam1.ciamlogin.com"];
94-
__auto_type authorityCIAMTenant = [NSString stringWithFormat:@"https://msidlabciam1.ciamlogin.com/msidlabciam1.onmicrosoft.com"];
93+
__auto_type authorityCIAM = [NSString stringWithFormat:@"https://msidlabciam2.ciamlogin.com"];
94+
__auto_type authorityCIAMTenant = [NSString stringWithFormat:@"https://msidlabciam2.ciamlogin.com/msidlabciam2.onmicrosoft.com"];
9595
[authorities addObjectsFromArray: @[authorityCIAM, authorityCIAMTenant]];
9696

9797
s_authorities = authorities;

MSAL/test/automation/tests/interactive/MSALCIAMAuthorityTests.m

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ - (void)setUp
4444
self.testEnvironment = self.class.confProvider.wwEnvironment;
4545

4646
MSIDTestAutomationAccountConfigurationRequest *accountConfigurationRequest = [MSIDTestAutomationAccountConfigurationRequest new];
47-
accountConfigurationRequest.federationProviderType = MSIDTestAccountFederationProviderTypeCIAM;
48-
47+
accountConfigurationRequest.federationProviderType = MSIDTestAccountFederationProviderTypeCIAMCUD;
48+
accountConfigurationRequest.additionalQueryParameters = @{@"signInAudience": @"azureadmyorg"};
49+
4950
[self loadTestAccount:accountConfigurationRequest];
5051

5152
MSIDTestAutomationAppConfigurationRequest *appConfigurationRequest = [MSIDTestAutomationAppConfigurationRequest new];
@@ -62,15 +63,15 @@ - (void)setUp
6263
(void)testInteractiveAndSilentCIAMLogin_withPromptAlways_noLoginHint_andSystemWebView
6364
{
6465
MSIDAutomationTestRequest *request = [self.class.confProvider defaultAppRequest:self.testEnvironment targetTenantId:self.primaryAccount.targetTenantId];
65-
request.configurationAuthority = @"https://msidlabciam2.ciamlogin.com";
66-
request.expectedResultAuthority = @"https://msidlabciam2.ciamlogin.com/f7416cc8-8ea1-4e5c-b230-0c978f81dfc6";
67-
request.cacheAuthority = @"https://msidlabciam2.ciamlogin.com/f7416cc8-8ea1-4e5c-b230-0c978f81dfc6";
66+
request.configurationAuthority = @"https://msidlabciam6.ciamlogin.com";
67+
request.expectedResultAuthority = @"https://msidlabciam6.ciamlogin.com/fe362aec-5d43-45d1-b730-9755e60dc3b9";
68+
request.cacheAuthority = @"https://msidlabciam6.ciamlogin.com/fe362aec-5d43-45d1-b730-9755e60dc3b9";
6869
request.acquireTokenAuthority = request.cacheAuthority;
6970
request.requestScopes = self.testApplication.defaultScopes.msidToString;
7071
request.promptBehavior = @"force";
7172
request.redirectUri = @"msauth.com.microsoft.msalautomationapp://auth";
7273

73-
// 1. Do intevractive login
74+
// 1. Do interactive login
7475
NSString *homeAccountId = [self runSharedAADLoginWithTestRequest:request];
7576
XCTAssertNotNil(homeAccountId);
7677

0 commit comments

Comments
 (0)