-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
53 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,13 +87,13 @@ public void testUsersWorkAfterUserPoolIdChanges() throws Exception { | |
coreConfig | ||
), false); | ||
|
||
Storage tenantIdentifierWithStorage = ( | ||
Storage storage = ( | ||
StorageLayer.getStorage(tenantIdentifier, process.getProcess())); | ||
|
||
String userPoolId = tenantIdentifierWithStorage.getUserPoolId(); | ||
String userPoolId = storage.getUserPoolId(); | ||
|
||
AuthRecipeUserInfo userInfo = EmailPassword.signUp( | ||
tenantIdentifier, tenantIdentifierWithStorage, process.getProcess(), "[email protected]", "password"); | ||
tenantIdentifier, storage, process.getProcess(), "[email protected]", "password"); | ||
|
||
coreConfig.addProperty("postgresql_host", "127.0.0.1"); | ||
Multitenancy.addNewOrUpdateAppOrTenant(process.getProcess(), new TenantConfig( | ||
|
@@ -104,13 +104,13 @@ public void testUsersWorkAfterUserPoolIdChanges() throws Exception { | |
coreConfig | ||
), false); | ||
|
||
tenantIdentifierWithStorage = ( | ||
storage = ( | ||
StorageLayer.getStorage(tenantIdentifier, process.getProcess())); | ||
String userPoolId2 = tenantIdentifierWithStorage.getUserPoolId(); | ||
String userPoolId2 = storage.getUserPoolId(); | ||
assertNotEquals(userPoolId, userPoolId2); | ||
|
||
AuthRecipeUserInfo user2 = EmailPassword.signIn( | ||
tenantIdentifier, tenantIdentifierWithStorage, process.getProcess(), | ||
tenantIdentifier, storage, process.getProcess(), | ||
"[email protected]", "password"); | ||
|
||
assertEquals(userInfo, user2); | ||
|
@@ -132,13 +132,13 @@ public void testUsersWorkAfterUserPoolIdChangesAndServerRestart() throws Excepti | |
coreConfig | ||
), false); | ||
|
||
Storage tenantIdentifierWithStorage = ( | ||
Storage storage = ( | ||
StorageLayer.getStorage(tenantIdentifier, process.getProcess())); | ||
|
||
String userPoolId = tenantIdentifierWithStorage.getUserPoolId(); | ||
String userPoolId = storage.getUserPoolId(); | ||
|
||
AuthRecipeUserInfo userInfo = EmailPassword.signUp( | ||
tenantIdentifier, tenantIdentifierWithStorage, process.getProcess(), "[email protected]", "password"); | ||
tenantIdentifier, storage, process.getProcess(), "[email protected]", "password"); | ||
|
||
coreConfig.addProperty("postgresql_host", "127.0.0.1"); | ||
Multitenancy.addNewOrUpdateAppOrTenant(process.getProcess(), new TenantConfig( | ||
|
@@ -155,13 +155,13 @@ public void testUsersWorkAfterUserPoolIdChangesAndServerRestart() throws Excepti | |
this.process = TestingProcessManager.start(args); | ||
assertNotNull(process.checkOrWaitForEvent(ProcessState.PROCESS_STATE.STARTED)); | ||
|
||
tenantIdentifierWithStorage = ( | ||
storage = ( | ||
StorageLayer.getStorage(tenantIdentifier, process.getProcess())); | ||
String userPoolId2 = tenantIdentifierWithStorage.getUserPoolId(); | ||
String userPoolId2 = storage.getUserPoolId(); | ||
assertNotEquals(userPoolId, userPoolId2); | ||
|
||
AuthRecipeUserInfo user2 = EmailPassword.signIn( | ||
tenantIdentifier, tenantIdentifierWithStorage, process.getProcess(), | ||
tenantIdentifier, storage, process.getProcess(), | ||
"[email protected]", | ||
"password"); | ||
|
||
|