@@ -54,11 +54,13 @@ test_artifact_result if {
5454test_images_result if {
5555 results := [{
5656 " name" : " IMAGES" ,
57- " value" : " img1@sha256:digest1, img2@sha256:digest2\n " ,
57+ # regal ignore:line-length
58+ " value" : " img1@sha256:d19e5701000000000000000000000000000000000000000000000000d19e5701, img2@sha256:d19e5702000000000000000000000000000000000000000000000000d19e5702\n " ,
5859 }]
5960 lib.assert_equal ([" img1" , " img2" ], tekton.task_result_artifact_url (resolved_slsav1_task (" task1" , [], results)))
6061 lib.assert_equal (
61- [" sha256:digest1" , " sha256:digest2" ],
62+ # regal ignore:line-length
63+ [" sha256:d19e5701000000000000000000000000000000000000000000000000d19e5701" , " sha256:d19e5702000000000000000000000000000000000000000000000000d19e5702" ],
6264 tekton.task_result_artifact_digest (resolved_slsav1_task (" task1" , [], results)),
6365 )
6466}
@@ -153,43 +155,46 @@ test_mixed_results if {
153155 },
154156 {
155157 " name" : " IMAGES" ,
156- " value" : " images-1@sha256:4567,images-2@sha256:5678" ,
158+ # regal ignore:line-length
159+ " value" : " images-1@sha256:4567000000000000000000000000000000000000000000000000000000004567,images-2@sha256:5678000000000000000000000000000000000000000000000000000000005678" ,
157160 },
158161 {
159162 " name" : " image1_ARTIFACT_URI" ,
160163 " value" : " image-artifact-1" ,
161164 },
162165 {
163166 " name" : " image1_ARTIFACT_DIGEST" ,
164- " value" : " sha256:6789 " ,
167+ " value" : " sha256:6789000000000000000000000000000000000000000000000000000000006789 " ,
165168 },
166169 {
167170 " name" : " image2_ARTIFACT_URI" ,
168171 " value" : " image-artifact-1" ,
169172 },
170173 {
171174 " name" : " image2_ARTIFACT_DIGEST" ,
172- " value" : " sha256:7890 " ,
175+ " value" : " sha256:7890000000000000000000000000000000000000000000000000000000007890 " ,
173176 },
174177 {
175178 " name" : " image1_ARTIFACT_OUTPUTS" ,
176- " value" : {" uri" : " artifact-outputs-img1" , " digest" : " sha256:1234" },
179+ # regal ignore:line-length
180+ " value" : {" uri" : " artifact-outputs-img1" , " digest" : " sha256:1234000000000000000000000000000000000000000000000000000000001234" },
177181 },
178182 {
179183 " name" : " image2_ARTIFACT_OUTPUTS" ,
180- " value" : {" uri" : " artifact-outputs-img2" , " digest" : " sha256:9801" },
184+ # regal ignore:line-length
185+ " value" : {" uri" : " artifact-outputs-img2" , " digest" : " sha256:9801000000000000000000000000000000000000000000000000000000009801" },
181186 },
182187 ]
183188
184189 expected := [
185190 " image-url-img1@2345" ,
186191 " image-url-img2@3456" ,
187- " image-artifact-1@sha256:6789 " ,
188- " image-artifact-1@sha256:7890 " ,
189- " images-1@sha256:4567 " ,
190- " images-2@sha256:5678 " ,
191- " artifact-outputs-img1@sha256:1234 " ,
192- " artifact-outputs-img2@sha256:9801 " ,
192+ " image-artifact-1@sha256:6789000000000000000000000000000000000000000000000000000000006789 " ,
193+ " image-artifact-1@sha256:7890000000000000000000000000000000000000000000000000000000007890 " ,
194+ " images-1@sha256:4567000000000000000000000000000000000000000000000000000000004567 " ,
195+ " images-2@sha256:5678000000000000000000000000000000000000000000000000000000005678 " ,
196+ " artifact-outputs-img1@sha256:1234000000000000000000000000000000000000000000000000000000001234 " ,
197+ " artifact-outputs-img2@sha256:9801000000000000000000000000000000000000000000000000000000009801 " ,
193198 ]
194199
195200 lib.assert_equal (expected, tekton.images_with_digests ([resolved_slsav1_task (" task1" , [], results)]))
0 commit comments