Skip to content

Conversation

@blackheaven
Copy link
Contributor

https://wearezeta.atlassian.net/browse/WPB-21744

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@blackheaven blackheaven requested review from a team as code owners December 22, 2025 09:01
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Dec 22, 2025
bindResponse (Spar.updateScimUser owner scimToken aliceId scimUser) $ \resp -> do
resp.status `shouldMatchOneOf` [Number 200, Number 201, Number 204]

-- 7. Alice tries to resend verification for B (client side)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hum, tricky!

when user is upgraded to scim, old validation keys need to be invalidated or deleted. from then on, alice must not be able to change her email address herself any more.

what should work is that if user is updated using scim, and that triggers an email being sent, then admin should be able in team-management to re-send that email.

i think what you are testing is that alice can still update her email address after being put under scim management if she has initiated the change before. that should actually fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I look at it!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I confused myself, I have rewrote the test so it represents the bug.

Can you check it is sync with the reported issue please?

If so, the test is passing, should I simply close the JIRA ticket or should I merge the test too?

@blackheaven blackheaven force-pushed the gdifolco/WPB-21744-scim-fix-resending-verification-email branch from aea6d81 to ac16329 Compare December 23, 2025 07:56
let cookie = fromJust $ getCookie "zuid" resp
pure ("zuid=" <> cookie, token)

-- 3. Alice requests email change to B (pending state)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argh, i always get confused by this, sorry i didn't notice this before writing my earlier comments: i think the ticket is about inviting the user, not updating its email address.

@blackheaven blackheaven force-pushed the gdifolco/WPB-21744-scim-fix-resending-verification-email branch from 6607637 to e3325f4 Compare January 2, 2026 09:19
@blackheaven blackheaven requested a review from fisx January 2, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants