Skip to content

test: add test of policy about parse error#26873

Closed
sasurau4 wants to merge 2 commits into
nodejs:masterfrom
sasurau4:enhance-policy-integrity-test
Closed

test: add test of policy about parse error#26873
sasurau4 wants to merge 2 commits into
nodejs:masterfrom
sasurau4:enhance-policy-integrity-test

Conversation

@sasurau4

@sasurau4 sasurau4 commented Mar 23, 2019

Copy link
Copy Markdown
Contributor

Add test cases of policy when the error ERR_SRI_PARSE occurs.
The current coverage about sri is here.

I add a new file test-policy-parse-integrity.js because I think it's too complicated when I enhanced the test-policy-integrity.js to pass the invalid integrity string.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Mar 23, 2019
@sasurau4 sasurau4 marked this pull request as ready for review March 23, 2019 00:54
@BridgeAR

Copy link
Copy Markdown
Member

@nodejs/testing PTAL

@BridgeAR BridgeAR left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but it would be nice to address the comments before landing.

Comment thread test/parallel/test-policy-parse-integrity.js Outdated
Comment thread test/parallel/test-policy-parse-integrity.js
@sasurau4

sasurau4 commented Apr 16, 2019

Copy link
Copy Markdown
Contributor Author

@BridgeAR Thanks for your review. I fixed that you pointed out. 👍

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 16, 2019
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@Trott

Trott commented Apr 29, 2019

Copy link
Copy Markdown
Member

Landed in a565853

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants