-
Notifications
You must be signed in to change notification settings - Fork 0
[GV-64] write-tests-for-api-v2-verifyaccess-index-js #26
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
base: main
Are you sure you want to change the base?
[GV-64] write-tests-for-api-v2-verifyaccess-index-js #26
Conversation
| getEmailFromAuth.mockReturnValueOnce('[email protected]'); | ||
| const response = await request(app) | ||
| .get('/verifyAccess') | ||
| .set('Authorization', 'Bearer valid_token'); |
Check failure
Code scanning / CodeQL
Hard-coded credentials
|
|
||
| const response = await request(app) | ||
| .get('/verifyaccess') | ||
| .set('Authorization', 'Bearer invalid_token'); |
Check failure
Code scanning / CodeQL
Hard-coded credentials
|
|
||
| const response = await request(app) | ||
| .get('/verifyaccess') | ||
| .set('Authorization', 'Bearer some_invalid_token'); |
Check failure
Code scanning / CodeQL
Hard-coded credentials
api/package-lock.json
Outdated
| @@ -16,21 +16,32 @@ | |||
| "express": "^5.0.1", | |||
| "express-rate-limit": "^7.4.0", | |||
| "google-auth-library": "^9.14.2", | |||
| <<<<<<< HEAD | |||
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.
Looks like there are conflicts in this file still. They will need to be resolved. I recommend just checking the lockfile out to the previous version and re-installing with merged dependencies to hopefully minimize the lockfile conflicts.
Jira Ticket
Jira Ticket
Description
The PR adds automated tests for the GET / route in the 'api/v2/verifyaccess/index.js' router, focusing on
Type of Change
Changes
Testing
Feature was tested locally. Test cases cover: valid authorization token, no authorization token, invalid authorization token, and invalid email.
Checklist
<ticket-id>/<brief-description-of-change>[<ticket-id>] <brief-description-of-change>Screenshots/Video
Additional Notes