-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move sigstore json files to fixtures dir
- Loading branch information
1 parent
fc68547
commit 08e0c0e
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
@@ -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) | ||
|
@@ -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) | ||
|
@@ -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) | ||
|
@@ -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) | ||
|