@@ -11603,7 +11603,7 @@ func testImageBlobSource(t *testing.T, sb integration.Sandbox) {
1160311603
1160411604 var stmt struct {
1160511605 intoto.StatementHeader
11606- Predicate provenancetypes.ProvenancePredicateSLSA02 `json:"predicate"`
11606+ Predicate provenancetypes.ProvenancePredicateSLSA1 `json:"predicate"`
1160711607 }
1160811608 require .NoError (t , json .Unmarshal (provDt , & stmt ))
1160911609
@@ -11615,14 +11615,14 @@ func testImageBlobSource(t *testing.T, sb integration.Sandbox) {
1161511615 expectedName = purlObj .ToString ()
1161611616
1161711617 found := false
11618- for _ , m := range stmt .Predicate .Materials {
11618+ for _ , m := range stmt .Predicate .BuildDefinition . ResolvedDependencies {
1161911619 if m .URI == expectedName {
1162011620 found = true
1162111621 require .Equal (t , l .Digest .Hex (), m .Digest ["sha256" ])
1162211622 break
1162311623 }
1162411624 }
11625- require .True (t , found , "expected to find %q in %+v" , expectedName , stmt .Predicate .Materials )
11625+ require .True (t , found , "expected to find %q in %+v" , expectedName , stmt .Predicate .BuildDefinition . ResolvedDependencies )
1162611626}
1162711627
1162811628func testOCILayoutBlobSource (t * testing.T , sb integration.Sandbox ) {
@@ -11706,7 +11706,7 @@ func testOCILayoutBlobSource(t *testing.T, sb integration.Sandbox) {
1170611706
1170711707 var stmt struct {
1170811708 intoto.StatementHeader
11709- Predicate provenancetypes.ProvenancePredicateSLSA02 `json:"predicate"`
11709+ Predicate provenancetypes.ProvenancePredicateSLSA1 `json:"predicate"`
1171011710 }
1171111711 require .NoError (t , json .Unmarshal (provDt , & stmt ))
1171211712
@@ -11718,14 +11718,14 @@ func testOCILayoutBlobSource(t *testing.T, sb integration.Sandbox) {
1171811718 expectedName = purlObj .ToString ()
1171911719
1172011720 found := false
11721- for _ , m := range stmt .Predicate .Materials {
11721+ for _ , m := range stmt .Predicate .BuildDefinition . ResolvedDependencies {
1172211722 if m .URI == expectedName {
1172311723 found = true
1172411724 require .Equal (t , layer .Digest .Hex (), m .Digest ["sha256" ])
1172511725 break
1172611726 }
1172711727 }
11728- require .True (t , found , "expected to find %q in %+v" , expectedName , stmt .Predicate .Materials )
11728+ require .True (t , found , "expected to find %q in %+v" , expectedName , stmt .Predicate .BuildDefinition . ResolvedDependencies )
1172911729}
1173011730
1173111731func testFrontendVerifyPlatforms (t * testing.T , sb integration.Sandbox ) {
0 commit comments