Light, fluffy, and always free - The AWS Local Emulator alternative
fix: wrong method call in test
Hector Ventura665af531498c
diff --git a/src/test/java/io/github/hectorvent/floci/services/cognito/CognitoServiceTest.java b/src/test/java/io/github/hectorvent/floci/services/cognito/CognitoServiceTest.javaindex f6a2336c6c..5e8ec01975 100644--- a/src/test/java/io/github/hectorvent/floci/services/cognito/CognitoServiceTest.java+++ b/src/test/java/io/github/hectorvent/floci/services/cognito/CognitoServiceTest.java@@ -299,7 +299,7 @@ class CognitoServiceTest {@Testvoid adminCreateUserAutoGeneratesSub() {- UserPool pool = service.createUserPool("TestPool", "us-east-1");+ UserPool pool = service.createUserPool(Map.of("PoolName", "TestPool"), "us-east-1");CognitoUser user = service.adminCreateUser(pool.getId(), "bob",Map.of("email", "[email protected]"), null);@@ -310,7 +310,7 @@ class CognitoServiceTest {@Testvoid adminCreateUserPreservesExplicitSub() {- UserPool pool = service.createUserPool("TestPool", "us-east-1");+ UserPool pool = service.createUserPool(Map.of("PoolName", "TestPool"), "us-east-1");String explicitSub = "aaaaaaaa-1111-2222-3333-444444444444";CognitoUser user = service.adminCreateUser(pool.getId(), "bob",Map.of("email", "[email protected]", "sub", explicitSub), null);@@ -321,7 +321,7 @@ class CognitoServiceTest {@Testvoid signUpAutoGeneratesSub() {- UserPool pool = service.createUserPool("TestPool", "us-east-1");+ UserPool pool = service.createUserPool(Map.of("PoolName", "TestPool"), "us-east-1");UserPoolClient client = service.createUserPoolClient(pool.getId(), "test-client",false, false, List.of(), List.of());@@ -392,7 +392,7 @@ class CognitoServiceTest {@Testvoid adminUserGlobalSignOutThrowsForNonexistentUser() {- UserPool pool = service.createUserPool("TestPool", "us-east-1");+ UserPool pool = service.createUserPool(Map.of("PoolName", "TestPool"), "us-east-1");assertThrows(AwsException.class,() -> service.adminUserGlobalSignOut(pool.getId(), "ghost"));}