Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions tests/types/apk-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,51 @@
"expected_output": "pkg:apk/alpine/[email protected]?arch=x86",
"expected_failure": false,
"expected_failure_reason": null
},
{
"description": "Parse test for PURL type: apk",
"test_group": "base",
"test_type": "parse",
"input": "pkg:apk/alpine/[email protected]?arch=source",
"expected_output": {
"type": "apk",
"namespace": "alpine",
"name": "curl",
"version": "8.12.1-r0",
"qualifiers": {
"arch": "source"
},
"subpath": null
},
"expected_failure": false,
"expected_failure_reason": null
},
{
"description": "Roundtrip test for PURL type: apk",
"test_group": "base",
"test_type": "roundtrip",
"input": "pkg:apk/alpine/[email protected]?arch=source",
"expected_output": "pkg:apk/alpine/[email protected]?arch=source",
"expected_failure": false,
"expected_failure_reason": null
},
{
"description": "Build test for PURL type: apk",
"test_group": "base",
"test_type": "build",
"input": {
"type": "apk",
"namespace": "alpine",
"name": "curl",
"version": "8.12.1-r0",
"qualifiers": {
"arch": "source"
},
"subpath": null
},
"expected_output": "pkg:apk/alpine/[email protected]?arch=source",
"expected_failure": false,
"expected_failure_reason": null
}
]
}
3 changes: 2 additions & 1 deletion types-doc/apk-definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ The structure of a PURL for this package type is:

| Key | Requirement | Native name | Default Value | Description |
|------|-------------|-------------|---------------|-------------|
| arch | Optional | | | The arch is the qualifiers key for a package architecture. |
| arch | Optional | | | The arch is the qualifiers key for a package architecture. The special value arch=source identifies an Alpine source package as built by "abuild srcpkg". |

## Examples

- `pkg:apk/alpine/[email protected]?arch=x86`
- `pkg:apk/alpine/[email protected]?arch=source`
- `pkg:apk/alpine/[email protected]?arch=x86`

## Note
Expand Down