Skip to content

Commit

Permalink
chore: fix bundle version in libnpmpublish tests (#6748)
Browse files Browse the repository at this point in the history
Signed-off-by: Brian DeHamer <bdehamer@github.com>
  • Loading branch information
bdehamer authored Aug 30, 2023
1 parent 171b8a0 commit 9e444ca
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 9e444ca

Please sign in to comment.