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

Flaky test: test &Oidcc.client_credentials_token/2 works (Oidcc.TokenTest) #389

Open
dustinfarris opened this issue Oct 23, 2024 · 1 comment
Labels

Comments

@dustinfarris
Copy link
Contributor

oidcc version

b3bb1a9

Erlang version

27.0.1

Elixir version

1.17.2

Summary

There is a flaky test.

Current behavior

occassionally this test fails

  1) test &Oidcc.client_credentials_token/2 works (Oidcc.TokenTest)
     test/oidcc/token_test.exs:211
     match (=) failed
     code:  assert {:ok, %Token{}} =
              Oidcc.Token.client_credentials(
                client_context,
                %{scope: ["openid"]}
              )
     left:  {:ok, %Oidcc.Token{}}
     right: {:error, :no_matching_key}
     stacktrace:
       test/oidcc/token_test.exs:224: (test)

How to reproduce

mix test

Expected behavior

all tests should pass

@maennchen
Copy link
Member

The issues seem to be triggered when Zitadel does not have any keys in the jwks initially since not all tests perform key rotation on a new kid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants