Skip to content

Commit 8c5c951

Browse files
committed
Fix test suite for oci packages
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 268fc3e commit 8c5c951

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

tests/types/oci-test.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
},
147147
{
148148
"description": "Parse test for <class 'type'> PURL",
149-
"test_group": "base",
149+
"test_group": "advanced",
150150
"test_type": "parse",
151151
"input": "pkg:oci/hello-wasm@sha256%3A244fd47e07d10?tag=v1",
152152
"expected_output": {
@@ -164,16 +164,16 @@
164164
},
165165
{
166166
"description": "Rountrip test for <class 'type'> PURL",
167-
"test_group": "base",
167+
"test_group": "advanced",
168168
"test_type": "roundtrip",
169169
"input": "pkg:oci/hello-wasm@sha256%3A244fd47e07d10?tag=v1",
170-
"expected_output": "pkg:oci/hello-wasm@sha256%3A244fd47e07d10?tag=v1",
170+
"expected_output": "pkg:oci/hello-wasm@sha256:A244fd47e07d10?tag=v1",
171171
"expected_failure": false,
172172
"expected_failure_reason": null
173173
},
174174
{
175175
"description": "Build test for <class 'type'> PURL",
176-
"test_group": "base",
176+
"test_group": "advanced",
177177
"test_type": "build",
178178
"input": {
179179
"type": "oci",
@@ -185,7 +185,7 @@
185185
},
186186
"subpath": null
187187
},
188-
"expected_output": "pkg:oci/hello-wasm@sha256%3A244fd47e07d10?tag=v1",
188+
"expected_output": "pkg:oci/hello-wasm@sha256:A244fd47e07d10?tag=v1",
189189
"expected_failure": false,
190190
"expected_failure_reason": null
191191
}

types-doc/oci-definition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The structure of a PURL for this package type is:
4444
- `pkg:oci/debian@sha256%3A244fd47e07d10?repository_url=docker.io/library/debian&arch=amd64&tag=latest`
4545
- `pkg:oci/debian@sha256%3A244fd47e07d10?repository_url=ghcr.io/debian&tag=bullseye`
4646
- `pkg:oci/static@sha256%3A244fd47e07d10?repository_url=gcr.io/distroless/static&tag=latest`
47-
- `pkg:oci/hello-wasm@sha256%3A244fd47e07d10?tag=v1`
47+
- `pkg:oci/hello-wasm@sha256:A244fd47e07d10?tag=v1`
4848

4949
## Reference URLs
5050

types/oci-definition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@
4141
"pkg:oci/debian@sha256%3A244fd47e07d10?repository_url=docker.io/library/debian&arch=amd64&tag=latest",
4242
"pkg:oci/debian@sha256%3A244fd47e07d10?repository_url=ghcr.io/debian&tag=bullseye",
4343
"pkg:oci/static@sha256%3A244fd47e07d10?repository_url=gcr.io/distroless/static&tag=latest",
44-
"pkg:oci/hello-wasm@sha256%3A244fd47e07d10?tag=v1"
44+
"pkg:oci/hello-wasm@sha256:A244fd47e07d10?tag=v1"
4545
]
4646
}

0 commit comments

Comments
 (0)