Files
floci/src/test/java
Olamide Kosile c48e81d956 fix(cognito): delete a pool's users and resource servers on DeleteUserPool (#3419)
Fixes #2864. DeleteUserPool cascaded to groups and (since #2858) identity
providers, but left userStore and resourceServerStore untouched. A pool id
can be pinned with the floci:override-id tag, so unlike real AWS (where a
pool id is never reused) a pool recreated on the same id inherited the
deleted pool's users, password hashes included, and resource servers.

Adds the same prefix-scan cascade already used for groups/identity
providers to users and resource servers, and adds regression tests for
both cases mirroring the identity-provider orphan-reuse test from #2858.
Verified by disabling the new cascade and confirming both new tests fail
with the exact expected count mismatch before restoring it. Full cognito
package regression (368 tests) passes clean.
2026-09-11 13:59:49 -04:00
..