Skip to content

Commit 5d81a3c

Browse files
authored
Update the layer hashes for image which has changed and pull specific sha (#9174)
1 parent beed460 commit 5d81a3c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/confcom/azext_confcom/tests/latest/test_confcom_scenario.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def test_image_layers_python(self):
567567
"containers": [
568568
{
569569
"name": "mcr.microsoft.com/azurelinux/base/python:3.12",
570-
"containerImage": "mcr.microsoft.com/azurelinux/base/python:3.12",
570+
"containerImage": "mcr.microsoft.com/azurelinux/base/python@sha256:ec2e8a66b7a5ad1da168bf13463e03ea79c3a18d7142818d52fbcc8772bbba8d",
571571
"environmentVariables": [],
572572
"command": ["echo", "hello"]
573573
}
@@ -578,13 +578,13 @@ def test_image_layers_python(self):
578578
# pull actual image to local for next step
579579
with DockerClient() as client:
580580
image_ref = aci_policy.get_images()[0]
581-
image = client.images.pull(image_ref.base, tag=image_ref.tag)
581+
image = client.images.pull(image_ref.containerImage)
582582
aci_policy.populate_policy_content_for_all_images()
583583
layers = aci_policy.get_images()[0]._layers
584584
expected_layers = [
585-
"335710fca9480be919670dc57ef086019417ca61b4ab6e414ec6564dbf44aba8",
586-
"dd0003aa8186970a6d1911288e0285c8b0f2b2f5624d7478d8fb1130344e3341",
587-
"4a31b681abd27fd7a3a501e8a3e6f3b3d39767311b7f1b7dc17dd58aec6137b8"
585+
"679545575069dd4dc31f4d991094d669ca346950c3bc3aa465a9343a7369a8c9",
586+
"ff808293653ce6dc4aa63381a8ceaec73c15618bbc6ccb30a44441d638c07af7",
587+
"1dd5fd89c3a5a58b669d14d9a693aff3f16d3a8ec643c9d7f2d24f25297cfbc7"
588588
]
589589
self.assertEqual(len(layers), len(expected_layers))
590590
for i in range(len(expected_layers)):

0 commit comments

Comments
 (0)