Skip to content

Commit 0b9898c

Browse files
update func name
1 parent b6cc301 commit 0b9898c

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

cli/slsa-verifier/main_regression_test.go

+55-55
Original file line numberDiff line numberDiff line change
@@ -1523,9 +1523,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
15231523
name: "valid npm CLI builder v1",
15241524
artifact: "gundam-visor-cli-v1-tag.tgz",
15251525
source: "github.com/ramonpetgrave64/gundam-visor",
1526-
pkgVersion: PointerTo("1.0.1"),
1527-
pkgName: PointerTo("gundam-visor"),
1528-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1526+
pkgVersion: pointerTo("1.0.1"),
1527+
pkgName: pointerTo("gundam-visor"),
1528+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
15291529
},
15301530
{
15311531
name: "valid npm CLI builder short runner name",
@@ -1541,9 +1541,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
15411541
name: "valid npm CLI builder v1 short runner name",
15421542
artifact: "gundam-visor-cli-v1-tag.tgz",
15431543
source: "github.com/ramonpetgrave64/gundam-visor",
1544-
pkgVersion: PointerTo("1.0.1"),
1545-
pkgName: PointerTo("gundam-visor"),
1546-
builderID: PointerTo("https://github.com/actions/runner"),
1544+
pkgVersion: pointerTo("1.0.1"),
1545+
pkgName: pointerTo("gundam-visor"),
1546+
builderID: pointerTo("https://github.com/actions/runner"),
15471547
err: serrors.ErrorInvalidBuilderID,
15481548
},
15491549
{
@@ -1558,8 +1558,8 @@ func Test_runVerifyNpmPackage(t *testing.T) {
15581558
name: "valid npm CLI builder v1 no builder",
15591559
artifact: "gundam-visor-cli-v1-tag.tgz",
15601560
source: "github.com/ramonpetgrave64/gundam-visor",
1561-
pkgVersion: PointerTo("1.0.5"),
1562-
pkgName: PointerTo("gundam-visor"),
1561+
pkgVersion: pointerTo("1.0.5"),
1562+
pkgName: pointerTo("gundam-visor"),
15631563
err: serrors.ErrorInvalidBuilderID,
15641564
},
15651565
{
@@ -1575,9 +1575,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
15751575
name: "valid npm CLI builder v1 mismatch builder",
15761576
artifact: "gundam-visor-cli-v1-tag.tgz",
15771577
source: "github.com/ramonpetgrave64/gundam-visor",
1578-
pkgVersion: PointerTo("1.0.1"),
1579-
pkgName: PointerTo("gundam-visor"),
1580-
builderID: PointerTo("https://github.com/actions/runner/github-hosted2"),
1578+
pkgVersion: pointerTo("1.0.1"),
1579+
pkgName: pointerTo("gundam-visor"),
1580+
builderID: pointerTo("https://github.com/actions/runner/github-hosted2"),
15811581
err: serrors.ErrorNotSupported,
15821582
},
15831583
{
@@ -1591,8 +1591,8 @@ func Test_runVerifyNpmPackage(t *testing.T) {
15911591
name: "valid npm CLI builder v1 no package name",
15921592
artifact: "gundam-visor-cli-v1-tag.tgz",
15931593
source: "github.com/ramonpetgrave64/gundam-visor",
1594-
pkgVersion: PointerTo("1.0.1"),
1595-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1594+
pkgVersion: pointerTo("1.0.1"),
1595+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
15961596
},
15971597
{
15981598
name: "valid npm CLI builder no package version",
@@ -1605,8 +1605,8 @@ func Test_runVerifyNpmPackage(t *testing.T) {
16051605
name: "valid npm CLI builder v1 no package version",
16061606
artifact: "gundam-visor-cli-v1-tag.tgz",
16071607
source: "github.com/ramonpetgrave64/gundam-visor",
1608-
pkgName: PointerTo("gundam-visor"),
1609-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1608+
pkgName: pointerTo("gundam-visor"),
1609+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
16101610
},
16111611
{
16121612
name: "valid npm CLI builder mismatch source",
@@ -1621,9 +1621,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
16211621
name: "valid npm CLI builder v1 mismatch source",
16221622
artifact: "gundam-visor-cli-v1-tag.tgz",
16231623
source: "github.com/ramonpetgrave64/gundam-visorS",
1624-
pkgVersion: PointerTo("1.0.1"),
1625-
pkgName: PointerTo("gundam-visor"),
1626-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1624+
pkgVersion: pointerTo("1.0.1"),
1625+
pkgName: pointerTo("gundam-visor"),
1626+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
16271627
err: serrors.ErrorMismatchSource,
16281628
},
16291629
{
@@ -1638,9 +1638,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
16381638
name: "valid npm CLI builder v1 mismatch package version",
16391639
artifact: "gundam-visor-cli-v1-tag.tgz",
16401640
source: "github.com/ramonpetgrave64/gundam-visor",
1641-
pkgVersion: PointerTo("1.0.2"),
1642-
pkgName: PointerTo("gundam-visor"),
1643-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1641+
pkgVersion: pointerTo("1.0.2"),
1642+
pkgName: pointerTo("gundam-visor"),
1643+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
16441644
err: serrors.ErrorMismatchPackageVersion,
16451645
},
16461646
{
@@ -1655,9 +1655,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
16551655
name: "valid npm CLI builder v1 mismatch package name",
16561656
artifact: "gundam-visor-cli-v1-tag.tgz",
16571657
source: "github.com/ramonpetgrave64/gundam-visor",
1658-
pkgVersion: PointerTo("1.0.1"),
1659-
pkgName: PointerTo("gundam-visorS"),
1660-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1658+
pkgVersion: pointerTo("1.0.1"),
1659+
pkgName: pointerTo("gundam-visorS"),
1660+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
16611661
err: serrors.ErrorMismatchPackageName,
16621662
},
16631663
{
@@ -1672,9 +1672,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
16721672
name: "invalid signature provenance npm CLI v1",
16731673
artifact: "gundam-visor-cli-v1-tag-invalidsigprov.tgz",
16741674
source: "github.com/ramonpetgrave64/gundam-visor",
1675-
pkgVersion: PointerTo("1.0.1"),
1676-
pkgName: PointerTo("gundam-visor"),
1677-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1675+
pkgVersion: pointerTo("1.0.1"),
1676+
pkgName: pointerTo("gundam-visor"),
1677+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
16781678
err: serrors.ErrorInvalidSignature,
16791679
},
16801680
{
@@ -1689,9 +1689,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
16891689
name: "invalid signature publish npm CLI v1",
16901690
artifact: "gundam-visor-cli-v1-tag-invalidsigpub.tgz",
16911691
source: "github.com/ramonpetgrave64/gundam-visor",
1692-
pkgVersion: PointerTo("1.0.1"),
1693-
pkgName: PointerTo("gundam-visor"),
1694-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1692+
pkgVersion: pointerTo("1.0.1"),
1693+
pkgName: pointerTo("gundam-visor"),
1694+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
16951695
err: serrors.ErrorInvalidSignature,
16961696
},
16971697
// npm CLI with main branch.
@@ -1707,9 +1707,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
17071707
name: "valid npm CLI builder v1",
17081708
artifact: "provenance-npm-test-cli-v1-prega.tgz",
17091709
source: "github.com/sigstore/sigstore-js",
1710-
pkgVersion: PointerTo("2.3.1"),
1711-
pkgName: PointerTo("sigstore"),
1712-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1710+
pkgVersion: pointerTo("2.3.1"),
1711+
pkgName: pointerTo("sigstore"),
1712+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
17131713
},
17141714
{
17151715
name: "valid npm CLI builder short runner name",
@@ -1725,9 +1725,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
17251725
name: "valid npm CLI builder v1 short runner name",
17261726
artifact: "provenance-npm-test-cli-v1-prega.tgz",
17271727
source: "github.com/sigstore/sigstore-js",
1728-
pkgVersion: PointerTo("2.3.1"),
1729-
pkgName: PointerTo("sigstore"),
1730-
builderID: PointerTo("https://github.com/actions/runner"),
1728+
pkgVersion: pointerTo("2.3.1"),
1729+
pkgName: pointerTo("sigstore"),
1730+
builderID: pointerTo("https://github.com/actions/runner"),
17311731
err: serrors.ErrorInvalidBuilderID,
17321732
},
17331733
{
@@ -1742,8 +1742,8 @@ func Test_runVerifyNpmPackage(t *testing.T) {
17421742
name: "valid npm CLI builder v1 no builder",
17431743
artifact: "provenance-npm-test-cli-v1-prega.tgz",
17441744
source: "github.com/sigstore/sigstore-js",
1745-
pkgVersion: PointerTo("2.3.1"),
1746-
pkgName: PointerTo("sigstore"),
1745+
pkgVersion: pointerTo("2.3.1"),
1746+
pkgName: pointerTo("sigstore"),
17471747
err: serrors.ErrorInvalidBuilderID,
17481748
},
17491749
{
@@ -1759,9 +1759,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
17591759
name: "valid npm CLI builder v1 mismatch builder",
17601760
artifact: "provenance-npm-test-cli-v1-prega.tgz",
17611761
source: "github.com/sigstore/sigstore-js",
1762-
pkgVersion: PointerTo("2.3.1"),
1763-
pkgName: PointerTo("sigstore"),
1764-
builderID: PointerTo("https://github.com/actions/runner/github-hosted2"),
1762+
pkgVersion: pointerTo("2.3.1"),
1763+
pkgName: pointerTo("sigstore"),
1764+
builderID: pointerTo("https://github.com/actions/runner/github-hosted2"),
17651765
err: serrors.ErrorNotSupported,
17661766
},
17671767
{
@@ -1774,9 +1774,9 @@ func Test_runVerifyNpmPackage(t *testing.T) {
17741774
{
17751775
name: "valid npm CLI builder v1 no package name",
17761776
artifact: "provenance-npm-test-cli-v1-prega.tgz",
1777-
pkgVersion: PointerTo("2.3.1"),
1777+
pkgVersion: pointerTo("2.3.1"),
17781778
source: "github.com/sigstore/sigstore-js",
1779-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1779+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
17801780
},
17811781
{
17821782
name: "valid npm CLI builder no package version",
@@ -1789,8 +1789,8 @@ func Test_runVerifyNpmPackage(t *testing.T) {
17891789
name: "valid npm CLI builder v1 no package version",
17901790
artifact: "provenance-npm-test-cli-v1-prega.tgz",
17911791
source: "github.com/sigstore/sigstore-js",
1792-
pkgName: PointerTo("sigstore"),
1793-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1792+
pkgName: pointerTo("sigstore"),
1793+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
17941794
},
17951795
{
17961796
name: "valid npm CLI builder mismatch source",
@@ -1803,8 +1803,8 @@ func Test_runVerifyNpmPackage(t *testing.T) {
18031803
name: "valid npm CLI builder v1 mismatch source",
18041804
artifact: "provenance-npm-test-cli-v1-prega.tgz",
18051805
source: "github.com/sigstore/sigstore-js2",
1806-
pkgName: PointerTo("sigstore"),
1807-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1806+
pkgName: pointerTo("sigstore"),
1807+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
18081808
err: serrors.ErrorMismatchSource,
18091809
},
18101810
{
@@ -1819,8 +1819,8 @@ func Test_runVerifyNpmPackage(t *testing.T) {
18191819
name: "valid npm CLI builder v1 mismatch package version",
18201820
artifact: "provenance-npm-test-cli-v1-prega.tgz",
18211821
source: "github.com/sigstore/sigstore-js",
1822-
pkgVersion: PointerTo("2.3.2"),
1823-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1822+
pkgVersion: pointerTo("2.3.2"),
1823+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
18241824
err: serrors.ErrorMismatchPackageVersion,
18251825
},
18261826
{
@@ -1835,8 +1835,8 @@ func Test_runVerifyNpmPackage(t *testing.T) {
18351835
name: "valid npm CLI builder v1 mismatch package name",
18361836
artifact: "provenance-npm-test-cli-v1-prega.tgz",
18371837
source: "github.com/sigstore/sigstore-js",
1838-
pkgName: PointerTo("sigstore2"),
1839-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1838+
pkgName: pointerTo("sigstore2"),
1839+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
18401840
err: serrors.ErrorMismatchPackageName,
18411841
},
18421842
{
@@ -1851,8 +1851,8 @@ func Test_runVerifyNpmPackage(t *testing.T) {
18511851
name: "invalid signature provenance npm CLI v1",
18521852
artifact: "provenance-npm-test-cli-v1-prega-invalidsigprov.tgz",
18531853
source: "github.com/sigstore/sigstore-js",
1854-
pkgName: PointerTo("sigstore"),
1855-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1854+
pkgName: pointerTo("sigstore"),
1855+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
18561856
err: serrors.ErrorInvalidSignature,
18571857
},
18581858
{
@@ -1867,8 +1867,8 @@ func Test_runVerifyNpmPackage(t *testing.T) {
18671867
name: "invalid signature publish npm CLI v1",
18681868
artifact: "provenance-npm-test-cli-v1-prega-invalidsigpub.tgz",
18691869
source: "github.com/sigstore/sigstore-js",
1870-
pkgName: PointerTo("sigstore"),
1871-
builderID: PointerTo("https://github.com/actions/runner/github-hosted"),
1870+
pkgName: pointerTo("sigstore"),
1871+
builderID: pointerTo("https://github.com/actions/runner/github-hosted"),
18721872
err: serrors.ErrorInvalidSignature,
18731873
},
18741874
// OSSF builder.

0 commit comments

Comments
 (0)