Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating images and getting rid of unused code #57

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/confcom/azext_confcom/security_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,6 @@ def load_policy_from_image_name(
{
config.ACI_FIELD_VERSION: "1.0",
config.ACI_FIELD_CONTAINERS: containers,
# fallback to default fragments if the policy is not present
config.POLICY_FIELD_CONTAINERS_ELEMENTS_REGO_FRAGMENTS: config.DEFAULT_REGO_FRAGMENTS,
},
debug_mode=debug_mode,
disable_stdio=disable_stdio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ def test_image_layers_python(self):
aci_policy.populate_policy_content_for_all_images()
layers = aci_policy.get_images()[0]._layers
expected_layers = [
"0b69f91b136ad63a510c03b03e16ca56696868643918549e0271473f39f104f1",
"13e566df4074c2107b765d3d16aede04a79281a99839a05fa693d679e6e33413"
"5e7ea0fd847ed540d08972f79a6db00784ad6e8bdd46376e8b06d91487dae543",
"6aa20e05a8d57ef7b0cb2f8e6aa06745a83646c448c8955bce3cf3a077ae9219"
]
self.assertEqual(len(layers), len(expected_layers))
for i in range(len(expected_layers)):
Expand All @@ -601,7 +601,7 @@ def test_docker_pull(self):

self.assertEqual(
image.id,
"sha256:378a3707f10cca088b84a8d6d550ee2636053761d4e033579e765e65bca287d8",
"sha256:e1a4f833f1188caab3b5c436fde5b23567b682a333bb7075d5ef23a5e1291da2",
)

def test_infrastructure_svn(self):
Expand Down