Skip to content

Commit 2afe101

Browse files
committed
also support sha512
1 parent 7a6c7c5 commit 2afe101

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/aap_eda/core/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def check_if_de_valid(
105105
)
106106

107107
digest = False
108-
if "@sha256" in path:
108+
if "@sha256" in path or "@sha512" in path:
109109
split = path.split("@", 1)
110110
name = split[0]
111111
digest = True

tests/integration/api/test_decision_environment.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,11 @@ def test_create_decision_environment_with_empty_credential(
348348
"registry.com/group/img1@sha256:6e8985d6c50cf2eb577f17237ef9c05baa9c2f472a730f13784728cec1fdfab1", # noqa: E501
349349
"",
350350
),
351+
(
352+
True,
353+
"registry.com/group/img1@sha512:6e8985d6c50cf2eb577f17237ef9c05baa9c2f472a730f13784728cec1fdfab1", # noqa: E501
354+
"",
355+
),
351356
(
352357
False,
353358
"https://registry.com/group/img1:latest",

0 commit comments

Comments
 (0)