Skip to content

Commit

Permalink
chore: move sigstore json files to fixtures dir
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Apr 24, 2024
1 parent fc68547 commit 08e0c0e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/lib/commands/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@ t.test('audit signatures', async t => {
const registry = new MockRegistry({ tap: t, registry: npm.config.get('registry') })
await manifestWithValidAttestations({ registry })
const fixture = fs.readFileSync(
path.join(__dirname, '..', 'fixtures', 'sigstore/valid-sigstore-attestations.json'),
path.resolve(__dirname, '../../fixtures/sigstore/valid-sigstore-attestations.json'),
'utf8'
)
registry.nock.get('/-/npm/v1/attestations/[email protected]').reply(200, fixture)
Expand All @@ -1918,11 +1918,11 @@ t.test('audit signatures', async t => {
await manifestWithValidAttestations({ registry })
await manifestWithMultipleValidAttestations({ registry })
const fixture1 = fs.readFileSync(
path.join(__dirname, '..', 'fixtures', 'sigstore/valid-sigstore-attestations.json'),
path.join(__dirname, '../../fixtures/sigstore/valid-sigstore-attestations.json'),
'utf8'
)
const fixture2 = fs.readFileSync(
path.join(__dirname, '..', 'fixtures', 'sigstore/valid-tuf-js-attestations.json'),
path.join(__dirname, '../../fixtures/sigstore/valid-tuf-js-attestations.json'),
'utf8'
)
registry.nock.get('/-/npm/v1/attestations/[email protected]').reply(200, fixture1)
Expand Down Expand Up @@ -1951,7 +1951,7 @@ t.test('audit signatures', async t => {
const registry = new MockRegistry({ tap: t, registry: npm.config.get('registry') })
await manifestWithValidAttestations({ registry })
const fixture = fs.readFileSync(
path.join(__dirname, '..', 'fixtures', 'sigstore/valid-sigstore-attestations.json'),
path.join(__dirname, '../../fixtures/sigstore/valid-sigstore-attestations.json'),
'utf8'
)
registry.nock.get('/-/npm/v1/attestations/[email protected]').reply(200, fixture)
Expand Down Expand Up @@ -1986,7 +1986,7 @@ t.test('audit signatures', async t => {
const registry = new MockRegistry({ tap: t, registry: npm.config.get('registry') })
await manifestWithValidAttestations({ registry })
const fixture = fs.readFileSync(
path.join(__dirname, '..', 'fixtures', 'sigstore/valid-sigstore-attestations.json'),
path.join(__dirname, '../../fixtures/sigstore/valid-sigstore-attestations.json'),
'utf8'
)
registry.nock.get('/-/npm/v1/attestations/[email protected]').reply(200, fixture)
Expand Down Expand Up @@ -2016,11 +2016,11 @@ t.test('audit signatures', async t => {
await manifestWithValidAttestations({ registry })
await manifestWithMultipleValidAttestations({ registry })
const fixture1 = fs.readFileSync(
path.join(__dirname, '..', 'fixtures', 'sigstore/valid-sigstore-attestations.json'),
path.join(__dirname, '../../fixtures/sigstore/valid-sigstore-attestations.json'),
'utf8'
)
const fixture2 = fs.readFileSync(
path.join(__dirname, '..', 'fixtures', 'sigstore/valid-tuf-js-attestations.json'),
path.join(__dirname, '../../fixtures/sigstore/valid-tuf-js-attestations.json'),
'utf8'
)
registry.nock.get('/-/npm/v1/attestations/[email protected]').reply(200, fixture1)
Expand Down

0 comments on commit 08e0c0e

Please sign in to comment.