[GV-64] write-tests-for-api-v2-verifyaccess-index-js#26
Open
[GV-64] write-tests-for-api-v2-verifyaccess-index-js#26
Conversation
| getEmailFromAuth.mockReturnValueOnce('example@test.com'); | ||
| 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
TeetoToast
reviewed
Nov 20, 2024
Connor-Bernard
requested changes
Nov 26, 2024
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 | |||
Member
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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