Skip to content

Commit c51ecee

Browse files
committed
frontend: group provenance tests
Signed-off-by: CrazyMax <[email protected]>
1 parent 0a23057 commit c51ecee

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

frontend/dockerfile/dockerfile_provenance_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,26 @@ import (
4343
"github.com/tonistiigi/fsutil"
4444
)
4545

46+
var provenanceTests = integration.TestFuncs(
47+
testProvenanceAttestation,
48+
testGitProvenanceAttestation,
49+
testMultiPlatformProvenance,
50+
testClientFrontendProvenance,
51+
testClientLLBProvenance,
52+
testSecretSSHProvenance,
53+
testOCILayoutProvenance,
54+
testNilProvenance,
55+
testDuplicatePlatformProvenance,
56+
testDockerIgnoreMissingProvenance,
57+
testCommandSourceMapping,
58+
testFrontendDeduplicateSources,
59+
testDuplicateLayersProvenance,
60+
)
61+
62+
func init() {
63+
allTests = append(allTests, provenanceTests...)
64+
}
65+
4666
func testProvenanceAttestation(t *testing.T, sb integration.Sandbox) {
4767
workers.CheckFeatureCompat(t, sb, workers.FeatureDirectPush, workers.FeatureProvenance)
4868
ctx := sb.Context()

frontend/dockerfile/dockerfile_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -189,17 +189,6 @@ var allTests = integration.TestFuncs(
189189
testDockerfileAddChownExpand,
190190
testSourceDateEpochWithoutExporter,
191191
testSBOMScannerImage,
192-
testProvenanceAttestation,
193-
testGitProvenanceAttestation,
194-
testMultiPlatformProvenance,
195-
testClientFrontendProvenance,
196-
testClientLLBProvenance,
197-
testSecretSSHProvenance,
198-
testOCILayoutProvenance,
199-
testNilProvenance,
200-
testDuplicatePlatformProvenance,
201-
testDockerIgnoreMissingProvenance,
202-
testCommandSourceMapping,
203192
testSBOMScannerArgs,
204193
testMultiNilRefsOCIExporter,
205194
testNilContextInSolveGateway,

0 commit comments

Comments
 (0)