Skip to content

Commit

Permalink
chore: fix bundle version in libnpmpublish tests
Browse files Browse the repository at this point in the history
Signed-off-by: Brian DeHamer <bdehamer@github.com>
  • Loading branch information
bdehamer committed Aug 30, 2023
1 parent 171b8a0 commit c098a61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion workspaces/libnpmpublish/test/fixtures/valid-bundle.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"mediaType": "application/vnd.dev.sigstore.bundle+json;version=0.1",
"mediaType": "application/vnd.dev.sigstore.bundle+json;version=0.2",
"verificationData": {
"tlogEntries": [
{
Expand Down
6 changes: 3 additions & 3 deletions workspaces/libnpmpublish/test/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ t.test('publish existing package with provenance in gha', async t => {
// Can't match length because in github actions certain environment
// variables are present that are not present when running locally,
// changing the payload size.
content_type: 'application/vnd.dev.sigstore.bundle+json;version=0.1',
content_type: 'application/vnd.dev.sigstore.bundle+json;version=0.2',
},
},
}
Expand Down Expand Up @@ -768,7 +768,7 @@ t.test('user-supplied provenance - success', async t => {
length: tarData.length,
},
'@npmcli/libnpmpublish-test-1.0.0.sigstore': {
content_type: 'application/vnd.dev.sigstore.bundle+json;version=0.1',
content_type: 'application/vnd.dev.sigstore.bundle+json;version=0.2',
data: /.*/, // Can't match against static value as signature is always different
length: 7927,
},
Expand Down Expand Up @@ -1035,7 +1035,7 @@ t.test('publish existing package with provenance in gitlab', async t => {
// Can't match length because in github actions certain environment
// variables are present that are not present when running locally,
// changing the payload size.
content_type: 'application/vnd.dev.sigstore.bundle+json;version=0.1',
content_type: 'application/vnd.dev.sigstore.bundle+json;version=0.2',
},
},
}
Expand Down

0 comments on commit c098a61

Please sign in to comment.