@@ -31,6 +31,8 @@ def test_smoke_has_expected_images_centos(build_container):
3131 "vagrant-libvirt" : ["x86_64" ],
3232 "vagrant-virtualbox" : ["x86_64" ],
3333 "image-installer" : ["x86_64" , "aarch64" ],
34+ "container" : ["x86_64" , "aarch64" ],
35+ "container-minimal" : ["x86_64" , "aarch64" ],
3436 }
3537
3638 for distro in ["centos-9" , "centos-10" ]:
@@ -39,6 +41,111 @@ def test_smoke_has_expected_images_centos(build_container):
3941 assert f"{ distro } type:{ type_ } arch:{ arch } " in output
4042
4143
44+ def test_smoke_has_expected_images_almalinux_8 (build_container ):
45+ output = subprocess .check_output (podman_run + [
46+ build_container ,
47+ "list" ,
48+ ], text = True )
49+
50+ type_arch = {
51+ "ami" : ["aarch64" , "x86_64" ],
52+ "ec2" : ["aarch64" , "x86_64" ],
53+ "gce" : ["x86_64" ],
54+ "image-installer" : ["aarch64" , "x86_64" ],
55+ "minimal-raw" : ["aarch64" , "x86_64" ],
56+ "network-installer" : ["aarch64" , "x86_64" ],
57+ "oci" : ["x86_64" ],
58+ "openstack" : ["aarch64" , "x86_64" ],
59+ "ova" : ["x86_64" ],
60+ "qcow2" : ["aarch64" , "x86_64" , "ppc64le" , "s390x" ],
61+ "tar" : ["aarch64" , "x86_64" , "ppc64le" , "s390x" ],
62+ "vhd" : ["aarch64" , "x86_64" ],
63+ "vmdk" : ["x86_64" ],
64+ "wsl" : ["aarch64" , "x86_64" ],
65+ }
66+
67+ versions = [
68+ "almalinux-8.4" ,
69+ "almalinux-8.5" ,
70+ "almalinux-8.6" ,
71+ "almalinux-8.7" ,
72+ "almalinux-8.8" ,
73+ "almalinux-8.9" ,
74+ "almalinux-8.10" ,
75+ ]
76+
77+ expected_to_not_exist = [
78+ # alma linux did not have ppc64le before 8.5 and no s390x before 8.6, lets
79+ # skip testing their existence
80+ ("almalinux-8.4" , "tar" , "ppc64le" ),
81+ ("almalinux-8.4" , "tar" , "s390x" ),
82+ ("almalinux-8.4" , "qcow2" , "ppc64le" ),
83+ ("almalinux-8.4" , "qcow2" , "s390x" ),
84+
85+ ("almalinux-8.5" , "tar" , "s390x" ),
86+ ("almalinux-8.5" , "qcow2" , "s390x" ),
87+
88+ # there was no vhd for aarch64 before 8.6
89+ ("almalinux-8.4" , "vhd" , "aarch64" ),
90+ ("almalinux-8.5" , "vhd" , "aarch64" ),
91+ ]
92+
93+ for distro in versions :
94+ for type_ , arches in type_arch .items ():
95+ for arch in arches :
96+ if (distro , type_ , arch ) in expected_to_not_exist :
97+ continue
98+ assert f"{ distro } type:{ type_ } arch:{ arch } " in output
99+
100+
101+ def test_smoke_has_expected_images_almalinux_9_and_10 (build_container ):
102+ output = subprocess .check_output (podman_run + [
103+ build_container ,
104+ "list" ,
105+ ], text = True )
106+
107+ type_arch = {
108+ "tar" : ["aarch64" , "x86_64" , "ppc64le" , "s390x" ],
109+ "qcow2" : ["aarch64" , "x86_64" , "ppc64le" , "s390x" ],
110+ "ec2" : ["x86_64" , "aarch64" ],
111+ "azure" : ["x86_64" , "aarch64" ],
112+ "wsl" : ["x86_64" , "aarch64" ],
113+ "vagrant-libvirt" : ["x86_64" ],
114+ "vagrant-virtualbox" : ["x86_64" ],
115+ "image-installer" : ["x86_64" , "aarch64" ],
116+ "container" : ["x86_64" , "aarch64" ],
117+ "container-minimal" : ["x86_64" , "aarch64" ],
118+ }
119+
120+ versions = [
121+ "almalinux-9.0" ,
122+ "almalinux-9.1" ,
123+ "almalinux-9.2" ,
124+ "almalinux-9.3" ,
125+ "almalinux-9.4" ,
126+ "almalinux-9.5" ,
127+ "almalinux-9.6" ,
128+ "almalinux-9.7" ,
129+ "almalinux-9.8" ,
130+
131+ "almalinux-10.0" ,
132+ "almalinux-10.1" ,
133+ "almalinux-10.2" ,
134+
135+ "almalinux_kitten-10" ,
136+ ]
137+
138+ expected_to_not_exist = [
139+ ]
140+
141+ for distro in versions :
142+ for type_ , arches in type_arch .items ():
143+ for arch in arches :
144+ if (distro , type_ , arch ) in expected_to_not_exist :
145+ continue
146+ assert f"{ distro } type:{ type_ } arch:{ arch } " in output
147+
148+
42149def test_smoke_has_expected_images_fedora (build_container ):
43150 """
44151 Ensure that image types that are built in by Fedora are available
0 commit comments