Skip to content

Commit 0badf64

Browse files
committed
add commit and flavor to tests
1 parent 79ebcc9 commit 0badf64

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_push_image.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from python_gardenlinux_lib.features import parse_features
88
from python_gardenlinux_lib.oci.registry import GlociRegistry
9+
from python_gardenlinux_lib.cname import get_flavor_from_cname
910

1011
CONTAINER_NAME_ZOT_EXAMPLE = "127.0.0.1:18081/gardenlinux-example"
1112
GARDENLINUX_ROOT_DIR_EXAMPLE = "test-data/gardenlinux/"
@@ -36,14 +37,19 @@ def test_push_example(version, cname, arch):
3637
container_name = f"{CONTAINER_NAME_ZOT_EXAMPLE}:{version}"
3738
a_registry = GlociRegistry(container_name=container_name, insecure=True)
3839
features = parse_features.get_features(cname, GARDENLINUX_ROOT_DIR_EXAMPLE)
40+
flavor = get_flavor_from_cname(cname, True)
3941
manifest_file = "/dev/null"
4042

43+
commit = "test1234"
44+
4145
a_registry.push_image_manifest(
4246
arch,
4347
cname,
4448
version,
4549
f"{GARDENLINUX_ROOT_DIR_EXAMPLE}/.build",
4650
oci_metadata,
4751
features,
48-
manifest_file=manifest_file,
52+
flavor,
53+
commit,
54+
manifest_file,
4955
)

0 commit comments

Comments
 (0)