-
Notifications
You must be signed in to change notification settings - Fork 217
tests: moved/added general tests to spec #696
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -269,40 +269,6 @@ | |
| "expected_failure": false, | ||
| "expected_failure_reason": null | ||
| }, | ||
| { | ||
| "description": "a name is required", | ||
| "test_group": "base", | ||
| "test_type": "parse", | ||
| "input": "pkg:maven/@1.3.4", | ||
| "expected_output": null, | ||
| "expected_failure": true, | ||
| "expected_failure_reason": "Should fail to parse a PURL from invalid purl input" | ||
| }, | ||
| { | ||
| "description": "a name is required", | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. moved to specification-test |
||
| "test_group": "base", | ||
| "test_type": "parse", | ||
| "input": "pkg:maven/@1.3.4", | ||
| "expected_output": null, | ||
| "expected_failure": true, | ||
| "expected_failure_reason": "Should fail to parse a PURL from invalid canonical purl input" | ||
| }, | ||
| { | ||
| "description": "a name is required", | ||
mjherzog marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "test_group": "base", | ||
| "test_type": "build", | ||
| "input": { | ||
| "type": "maven", | ||
| "namespace": null, | ||
| "name": null, | ||
| "version": null, | ||
| "qualifiers": null, | ||
| "subpath": null | ||
| }, | ||
| "expected_output": null, | ||
| "expected_failure": true, | ||
| "expected_failure_reason": "Should fail to build a PURL from invalid input components" | ||
| }, | ||
| { | ||
| "description": "slash / after type is not significant. Roundtrip an input purl to canonical.", | ||
| "test_group": "advanced", | ||
|
|
@@ -557,31 +523,6 @@ | |
| "expected_failure": false, | ||
| "expected_failure_reason": null | ||
| }, | ||
| { | ||
| "description": "invalid encoded colon : between scheme and type", | ||
mjherzog marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "test_group": "base", | ||
| "test_type": "parse", | ||
| "input": "pkg%3Amaven/org.apache.commons/io", | ||
| "expected_output": null, | ||
| "expected_failure": true, | ||
| "expected_failure_reason": "Should fail to parse a PURL from invalid purl input" | ||
| }, | ||
| { | ||
| "description": "invalid encoded colon : between scheme and type", | ||
mjherzog marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "test_group": "base", | ||
| "test_type": "build", | ||
| "input": { | ||
| "type": "maven", | ||
| "namespace": "org.apache.commons", | ||
| "name": "io", | ||
| "version": null, | ||
| "qualifiers": null, | ||
| "subpath": null | ||
| }, | ||
| "expected_output": null, | ||
| "expected_failure": true, | ||
| "expected_failure_reason": "Should fail to build a PURL from invalid input components" | ||
| }, | ||
| { | ||
| "description": "Parse test for PURL type: maven", | ||
| "test_group": "base", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,33 +51,6 @@ | |
| "expected_failure": false, | ||
| "expected_failure_reason": null | ||
| }, | ||
| { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. moved to specification-test |
||
| "description": "checks for invalid qualifier keys", | ||
| "test_group": "base", | ||
| "test_type": "parse", | ||
| "input": "pkg:npm/myartifact@1.0.0?in%20production=true", | ||
| "expected_output": null, | ||
| "expected_failure": true, | ||
| "expected_failure_reason": "Should fail to parse a PURL from invalid purl input" | ||
| }, | ||
| { | ||
| "description": "checks for invalid qualifier keys", | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. moved to specification-test |
||
| "test_group": "base", | ||
| "test_type": "build", | ||
| "input": { | ||
| "type": "npm", | ||
| "namespace": null, | ||
| "name": "myartifact", | ||
| "version": "1.0.0", | ||
| "qualifiers": { | ||
| "in production": "true" | ||
| }, | ||
| "subpath": null | ||
| }, | ||
| "expected_output": null, | ||
| "expected_failure": true, | ||
| "expected_failure_reason": "Should fail to build a PURL from invalid input components" | ||
| }, | ||
| { | ||
| "description": "Parse test for PURL type: npm", | ||
| "test_group": "base", | ||
|
|
||
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.
moved to specification-test