fix(cognito): include domains in user pool responses (#5448)

* fix(cognito): include domains in user pool responses

* test(cognito): cover UpdateUserPool domain fields

* fix(cognito): scope user pool domain lookups by account

* fix(cognito): avoid stale domain responses after reset

* fix(cognito): drop redundant domain delete lock
This commit is contained in:
Som Samantray authored and GitHub committed 2026-10-12 12:09:33 -04:00
1 parent e8a300f4d5
commit 34c11b8981
5 files changed
+226 -1

No files matched your search

@@ -454,6 +454,21 @@ class CognitoFeaturesTest {
assertThat(sub.mutable()).isFalse();
}
@Test
@Order(56)
void describeUserPoolReturnsItsPrefixDomain() {
String domain = "compat-" + UUID.randomUUID().toString().replace("-", "").substring(0, 20);
cognito.createUserPoolDomain(b -> b.domain(domain).userPoolId(poolId));
try {
UserPoolType userPool = cognito.describeUserPool(b -> b.userPoolId(poolId)).userPool();
assertThat(userPool.domain()).isEqualTo(domain);
assertThat(userPool.customDomain()).isNull();
} finally {
cognito.deleteUserPoolDomain(b -> b.domain(domain).userPoolId(poolId));
}
}
// ── AdminRespondToAuthChallenge ─────────────────────────────────────────
@Test