-
-
Notifications
You must be signed in to change notification settings - Fork 51
tests: add deep integration tests #224
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
Conversation
}; | ||
const authorizationCode = 'long-authz-code-?'; | ||
const accessTokenDoc = { | ||
accessToken: 'some-access-token-code-?', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
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.
This is just tests, can be ignored
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.
I already did a review. These tests are getting some meaning now!
Since it are mostly tests, I think you should already merge it.
(It takes a lot of time to review a PR as large as this one. Personally I prefer a lot of small PR's instead of 1 big PR 😅 )
@jorenvandeweyer you are right, let's merge and open a "Part II" PR for this |
Summary
This PR improves the integration tests to cover integrity of the model parameters.
Furthermore, compliance tests are added, where possible.
Finally, coverage is improved, if possible.
Linked issue(s)
#219
Involved parts of the project
Tests, grant types, handlers
OAuth2 standard
Compliance tests to deeply conform RFC 6749
Reproduction
checkout branch, run
npm run test
ornpm run test:coverage