Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests for implemented flows (username password) #51

Open
24 of 56 tasks
Tracked by #46
hifabienne opened this issue Jan 19, 2024 · 2 comments
Open
24 of 56 tasks
Tracked by #46

tests for implemented flows (username password) #51

hifabienne opened this issue Jan 19, 2024 · 2 comments
Assignees

Comments

@hifabienne
Copy link
Member

hifabienne commented Jan 19, 2024

As ZITADEL Admins we want to ensure that all of the implemented oidc flows always work with the current ZITADEL Cloud version.

Acceptance Criteria

  • Flow
    • Admin login
    • User register with password
    • User register with passkey
    • User reset password
    • User change password on existing user
    • User login with password
    • User login with password and OTP SMS
    • User login with password and OTP Email
    • User login with password and TOTP (Google Authenticator emulation)
    • User login with passkey
    • User login with external IDP
      • Apple
      • Generic JWT
      • Generic OAuth
      • Generic OIDC
      • Github
      • Github Enterprise
      • Gitlab
      • Gitlab Self Hosted
      • Google
      • LDAP
      • Microsoft
      • SAML
  • Fixtures (preparation of user to use in tests)
    • User with password
    • User with passkey (User register with passkey, because of GUI for passkey registration)
    • User with OTP SMS
    • User with OTP Email
    • User with TOTP (Google Authenticator emulation)
    • User with link to external IDP
      • Apple
      • Generic JWT
      • Generic OAuth
      • Generic OIDC
      • Github
      • Github Enterprise
      • Gitlab
      • Gitlab Self Hosted
      • Google
      • LDAP
      • Microsoft
      • SAML
  • Sink ( necessary for tests with externally sent notification)
    • Receiver for Email
    • Receiver for SMS
    • Read sent notifications for code
    • Setup of Email and SMS provider configurations in ZITADEL as HTTP providers
    • Container for runtime in Docker compose
  • OIDC ( using the typescript login with OIDC )
    • Redirect to application
    • Redirect to default
    • Token has expected claims (have a look at current token and take those claims, so we have a starting point)
  • PRs can only be merged if e2e tests succeed (test against latest ZITADEL docker)
  • Nightly e2e acceptance tests ensure we detect breaking cloud version changes early (@hifabienne I (@eliobischof) changed the word e2e to acceptance) chore: test accepance against QA and Prod #303
  • Tests don't rely on results of other tests

Additional Test Cases:
Given: Username password login is enabled

  • Login with username without suffix
  • Login with username with suffix
  • Login with email address
  • Login with phone
  • Login with disabled user --> error
  • Login with locker user -->
  • Not existing username --> error
  • Wrong password --> error

Open Questions

How do we want to run the e2e tests?
To preview deployement?
In the pipeline?

@hifabienne hifabienne changed the title E2E - Tests E2E tests for common flows Jan 19, 2024
@hifabienne hifabienne changed the title E2E tests for common flows E2E tests for implemented flows Jan 19, 2024
@hifabienne hifabienne moved this to 🧐 Investigating in Product Management Jan 19, 2024
@hifabienne hifabienne moved this from 🧐 Investigating to 🔖 Ready in Product Management Feb 1, 2024
@eliobischof
Copy link
Member

I would add to the AC:

  • PRs can only be merged if e2e tests succeed
  • Nightly e2e tests ensure we detect breaking cloud version changes early

Estimation: 3

@peintnermax
Copy link
Member

I would add to the AC:

  • PRs can only be merged if e2e tests succeed
  • Nightly e2e tests ensure we detect breaking cloud version changes early

Estimation: 3

agree 👍

@hifabienne hifabienne changed the title E2E tests for implemented flows tests for implemented flows Sep 12, 2024
@hifabienne hifabienne changed the title tests for implemented flows tests for implemented flows (username password) Sep 12, 2024
@hifabienne hifabienne moved this from 🔖 Ready to 📋 Sprint Backlog in Product Management Sep 12, 2024
@stebenz stebenz self-assigned this Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗 In progress
Development

No branches or pull requests

4 participants