From c098a61d59a2acd2095e61bfffa433deb156b0cb Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Wed, 30 Aug 2023 13:41:04 -0700 Subject: [PATCH] chore: fix bundle version in libnpmpublish tests Signed-off-by: Brian DeHamer --- workspaces/libnpmpublish/test/fixtures/valid-bundle.json | 2 +- workspaces/libnpmpublish/test/publish.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/workspaces/libnpmpublish/test/fixtures/valid-bundle.json b/workspaces/libnpmpublish/test/fixtures/valid-bundle.json index 134c95387c481..de37f54fa6b70 100644 --- a/workspaces/libnpmpublish/test/fixtures/valid-bundle.json +++ b/workspaces/libnpmpublish/test/fixtures/valid-bundle.json @@ -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": [ { diff --git a/workspaces/libnpmpublish/test/publish.js b/workspaces/libnpmpublish/test/publish.js index 4a745bab8a78b..a9add4be9b5fd 100644 --- a/workspaces/libnpmpublish/test/publish.js +++ b/workspaces/libnpmpublish/test/publish.js @@ -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', }, }, } @@ -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, }, @@ -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', }, }, }