-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add integration tests for OIDC authentication #801
Conversation
@@ -0,0 +1,22 @@ | |||
|
|||
-----BEGIN CERTIFICATE----- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create an issue to have all keys/certs used for testing generated at start? I dont like that we check them in, but its fine for this pr.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
joinWaitGroup sync.WaitGroup | ||
} | ||
|
||
func TestOIDCIntegrationTestSuite(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really need to improve reusing code here, so much boilerplate 🥲
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes...
Note: This doesnt seem to run on macOS (or my Mac), but for the time being, that can be tackled as a separate issue. |
This PR adds basic integration tests for our OIDC code.
For the time being they are pretty basic (just login in), but it is a start :)
We make use of https://github.com/oauth2-proxy/mockoidc for simulating a OIDC Identity Provider.