Skip to content

Commit b65e97c

Browse files
committed
Add SP6 LTSS, remove SP3 LTSS
1 parent f739e31 commit b65e97c

File tree

10 files changed

+45
-73
lines changed

10 files changed

+45
-73
lines changed

.github/workflows/ci.yaml

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -130,21 +130,12 @@ jobs:
130130
- "16.0"
131131
- "tumbleweed"
132132
include:
133-
- toxenv: fips
134-
testing_target: ibs-released
135-
os_version: 15.3
136133
- toxenv: fips
137134
testing_target: ibs-released
138135
os_version: 15.4
139136
- toxenv: repository
140137
testing_target: ibs-released
141138
os_version: 15.5
142-
- toxenv: all
143-
testing_target: ibs-released
144-
os_version: 15.3
145-
- toxenv: base
146-
testing_target: ibs-released
147-
os_version: 15.3
148139
- toxenv: all
149140
testing_target: ibs-released
150141
os_version: 15.4
@@ -163,6 +154,15 @@ jobs:
163154
- toxenv: metadata
164155
testing_target: ibs-released
165156
os_version: 15.5
157+
- toxenv: all
158+
testing_target: ibs-released
159+
os_version: 15.6
160+
- toxenv: base
161+
testing_target: ibs-released
162+
os_version: 15.6
163+
- toxenv: metadata
164+
testing_target: ibs-released
165+
os_version: 15.6
166166
- toxenv: spr
167167
testing_target: ibs-released
168168
os_version: 15.7-spr
@@ -173,35 +173,25 @@ jobs:
173173
testing_target: ibs-released
174174
os_version: 15.7-spr
175175
- toxenv: all
176-
os_version: 15.6
176+
os_version: 15.4
177177
- toxenv: base
178-
os_version: 15.6
178+
os_version: 15.4
179179
- toxenv: metadata
180-
os_version: 15.6
181-
- toxenv: node
182-
os_version: 15.6
183-
- toxenv: python
184-
os_version: 15.6
185-
- toxenv: kernel_module
186-
os_version: 15.6
187-
- toxenv: repository
188-
os_version: 15.6
189-
- toxenv: fips
190-
os_version: 15.6
191-
- toxenv: mariadb
192-
os_version: 15.6
180+
os_version: 15.4
193181
- toxenv: all
194-
os_version: 15.3
182+
os_version: 15.5
195183
- toxenv: base
196-
os_version: 15.3
184+
os_version: 15.5
197185
- toxenv: metadata
198-
os_version: 15.3
186+
os_version: 15.5
199187
- toxenv: all
200-
os_version: 15.4
188+
os_version: 15.6
201189
- toxenv: base
202-
os_version: 15.4
190+
os_version: 15.6
203191
- toxenv: metadata
204-
os_version: 15.4
192+
os_version: 15.6
193+
- toxenv: fips
194+
os_version: 15.6
205195
- toxenv: all
206196
os_version: "16.0"
207197
- toxenv: base

bci_tester/data.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
# Allowed os versions for base (non lang/non-app) containers
3939
ALLOWED_BASE_OS_VERSIONS = (
40-
"15.3",
4140
"15.4",
4241
"15.5",
4342
"15.6",
@@ -78,7 +77,6 @@
7877

7978
# List the released versions of SLE, used for supportabilty and EULA tests
8079
RELEASED_SLE_VERSIONS = (
81-
"15.3",
8280
"15.4",
8381
"15.5",
8482
"15.6",
@@ -89,7 +87,7 @@
8987
)
9088

9189
# List the LTSS versions of SLE
92-
RELEASED_LTSS_VERSIONS = ("15.3", "15.4", "15.5")
90+
RELEASED_LTSS_VERSIONS = ("15.4", "15.5", "15.6")
9391

9492

9593
#: directory of the SCC credentials stored by zypper
@@ -225,8 +223,8 @@ def create_container_version_mark(
225223
Args:
226224
227225
available_versions: iterable of versions for which this container is
228-
available. Each version must be in the form ``15.4`` for SLE 15 SP4,
229-
``15.3`` for SLE 15 SP3 and so on
226+
available. Each version must be in the form ``15.4`` for SLE 15 SP4
227+
and so on
230228
"""
231229
for ver in available_versions:
232230
if ver.startswith("15") and ver[:2] == str(OS_MAJOR_VERSION):
@@ -502,15 +500,15 @@ def create_BCI(
502500
extra_marks=[pytest.mark.__getattr__(f"bci-base_{sp}-ltss")],
503501
bci_type=ImageType.OS_LTSS,
504502
)
505-
for sp in ("15.3", "15.4", "15.5", "15.6")
503+
for sp in ("15.4", "15.5", "15.6")
506504
)
507505
LTSS_BASE_FIPS_CONTAINERS.extend(
508506
create_BCI(
509507
build_tag=f"{APP_CONTAINER_PREFIX}/ltss/sle{sp}/bci-base-fips:{OS_CONTAINER_TAG}",
510508
available_versions=[sp],
511509
bci_type=ImageType.OS_LTSS,
512510
)
513-
for sp in ("15.3", "15.4")
511+
for sp in ("15.4", "15.6")
514512
)
515513

516514
MINIMAL_CONTAINER = create_BCI(

bci_tester/fips.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
)
1717

1818
# OpenSSL 3.x in Tumbleweed dropped those as they're beyond deprecated
19-
if OS_VERSION in ("15.3", "15.4", "15.5"):
19+
if OS_VERSION in ("15.4", "15.5"):
2020
NONFIPS_DIGESTS += ("md4", "mdc2")
2121

2222
#: FIPS compliant openssl digests
@@ -98,6 +98,7 @@
9898
"stribog256",
9999
"stribog512",
100100
"md5",
101+
"sm3",
101102
)
102103

103104
#: FIPS compliant gcrypt digests
@@ -110,16 +111,10 @@
110111
"sha3-256",
111112
"sha3-384",
112113
"sha3-512",
114+
"sha512_224",
115+
"sha512_256",
113116
)
114117

115-
if OS_VERSION != "15.3":
116-
FIPS_GCRYPT_DIGESTS += (
117-
"sha512_224",
118-
"sha512_256",
119-
)
120-
NONFIPS_GCRYPT_DIGESTS += ("sm3",)
121-
122-
123118
# sha1 is non-FIPS in 15.6
124119
if OS_VERSION == "15.6":
125120
NONFIPS_GCRYPT_DIGESTS += ("sha1",)

pre-commit-full.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
tox -e format -- --check
44

5-
for OS_VERSION in "15.3" "15.4" "15.5" "15.6" "15.6-spr" "15.7" "15.7-spr" "16.0" "tumbleweed"; do
5+
for OS_VERSION in "15.4" "15.5" "15.6" "15.6-spr" "15.7" "15.7-spr" "16.0" "tumbleweed"; do
66
export OS_VERSION
77
tox -e check_marks
88
done

tests/test_all.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def test_os_release(auto_container):
121121

122122

123123
@pytest.mark.skipif(
124-
OS_VERSION in ("15.3", "15.4", "15.5"),
124+
OS_VERSION in ("15.4", "15.5"),
125125
reason="branding packages are known to not be installed",
126126
)
127127
@pytest.mark.parametrize(
@@ -165,7 +165,7 @@ def test_product(auto_container):
165165

166166

167167
@pytest.mark.skipif(
168-
OS_VERSION in ("15.3", "15.4", "15.5", "15.6", "tumbleweed"),
168+
OS_VERSION in ("15.4", "15.5", "15.6", "tumbleweed"),
169169
reason="suse trademark only available in certain SLE versions",
170170
)
171171
def test_suse_trademark(auto_container):
@@ -487,7 +487,7 @@ def test_systemd_not_installed_in_all_containers_except_init(container):
487487

488488

489489
@pytest.mark.skipif(
490-
OS_VERSION in ("15.3", "15.4", "15.5", "15.6-spr", "15.7-spr"),
490+
OS_VERSION in ("15.4", "15.5", "15.6-spr", "15.7-spr"),
491491
reason="doesn't have the fixes for blkid/udev",
492492
)
493493
@pytest.mark.parametrize(

tests/test_base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_iconv_working(auto_container):
8888

8989

9090
@pytest.mark.skipif(
91-
OS_VERSION in ("15.3", "15.4", "15.5"),
91+
OS_VERSION in ("15.4", "15.5"),
9292
reason="unfixed in LTSS codestreams",
9393
)
9494
def test_group_nobody_working(auto_container):
@@ -129,7 +129,7 @@ def test_base_size(container: ContainerData, container_runtime):
129129
# SP4+ is a lot larger as it pulls in python3 and
130130
# the FIPS crypto policy scripts
131131
base_container_max_size: Dict[str, int] = {
132-
"x86_64": 130 if OS_VERSION in ("15.3",) else 169,
132+
"x86_64": 169,
133133
}
134134
if TARGET in ("dso",):
135135
# the dso container is larger than the bci-base-fips container
@@ -205,7 +205,7 @@ def test_gost_digest_disable(auto_container):
205205
"""Checks that the gost message digest is not known to openssl."""
206206
openssl_error_message = (
207207
"Invalid command 'gost'"
208-
if OS_VERSION not in ("15.3", "15.4", "15.5")
208+
if OS_VERSION not in ("15.4", "15.5")
209209
else "gost is not a known digest"
210210
)
211211
assert (
@@ -266,13 +266,13 @@ def test_all_openssl_hashes_known(auto_container):
266266
expected_digest_list = ALL_DIGESTS
267267

268268
# openssl-3 reduces the listed digests in FIPS mode, openssl 1.x does not
269-
if OS_VERSION not in ("15.3", "15.4", "15.5"):
269+
if OS_VERSION not in ("15.4", "15.5"):
270270
if host_fips_enabled() or target_fips_enforced() or fips_mode:
271271
expected_digest_list = FIPS_DIGESTS
272272

273273
# gost is not supported to generate digests, but it appears in:
274274
# openssl list --digest-commands
275-
if OS_VERSION in ("15.3", "15.4", "15.5"):
275+
if OS_VERSION in ("15.4", "15.5"):
276276
expected_digest_list += ("gost",)
277277

278278
assert set(hashes) == set(expected_digest_list), (

tests/test_fips.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def digest_xoflen(digest: str) -> str:
9999
for variable-length hash functions."""
100100
param: str = ""
101101

102-
if OS_VERSION in ("15.3", "15.4", "15.5"):
102+
if OS_VERSION in ("15.4", "15.5"):
103103
return param
104104

105105
if digest in ("shake128",):
@@ -213,9 +213,6 @@ def run_digest_tests(command_prefix: str):
213213
run_digest_tests("openssl-1_1")
214214

215215

216-
@pytest.mark.skipif(
217-
OS_VERSION in ("15.3",), reason="FIPS 140-3 not supported on 15.3"
218-
)
219216
def fips_mode_setup_check(container_per_test: ContainerData) -> None:
220217
"""If the host is running in FIPS mode, then `fips-mode-setup --check` should
221218
exit with `0`.
@@ -311,12 +308,7 @@ def test_gcrypt_binary(container_per_test: ContainerData) -> None:
311308
r"fips-mode:y::Libgcrypt version [\d\.\-]+:",
312309
c.check_output("gpgconf --show-versions"),
313310
)
314-
if not fips_ver_match:
315-
if OS_VERSION == "15.3":
316-
pytest.xfail(
317-
reason="https://bugzilla.suse.com/show_bug.cgi?id=1234366"
318-
)
319-
assert fips_ver_match, "FIPS mode not detected by gpgconf"
311+
assert fips_ver_match, "FIPS mode not detected by gpgconf"
320312

321313
expected_fips_gcrypt_digests = {
322314
"sha1": "c87d25a09584c040f3bfc53b570199591deb10ba648a6a6ffffdaa0badb23b8baf90b6168dd16b3a",
@@ -352,7 +344,7 @@ def test_gcrypt_binary(container_per_test: ContainerData) -> None:
352344
if non_fips_call.rc == 0 or any(
353345
msg in non_fips_call.stderr for msg in expected_msg
354346
):
355-
if OS_VERSION in ("15.3", "15.4", "15.5"):
347+
if OS_VERSION in ("15.4", "15.5"):
356348
pytest.xfail(
357349
reason="bsc#1229856 - libgcrypt computes hashes of non-FIPS digests",
358350
)
@@ -375,9 +367,6 @@ def test_gpgconf_binary(container_per_test: ContainerData) -> None:
375367
@pytest.mark.skipif(
376368
LOCALHOST.system_info.arch != "s390x", reason="libica is s390x specific"
377369
)
378-
@pytest.mark.skipif(
379-
OS_VERSION in ("15.3",), reason="FIPS 140-3 not supported on 15.3"
380-
)
381370
@pytest.mark.parametrize(
382371
"container_per_test", FIPS_TESTER_IMAGES, indirect=True
383372
)

tests/test_multistage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@
112112

113113
OPENJDK_DEVEL_CONTAINER = (
114114
OPENJDK_DEVEL_11_CONTAINER
115-
if OS_VERSION in ("15.3", "15.4", "15.5")
115+
if OS_VERSION in ("15.4", "15.5")
116116
else OPENJDK_DEVEL_21_CONTAINER
117117
)
118118

119119
OPENJDK_CONTAINER = (
120120
OPENJDK_11_CONTAINER
121-
if OS_VERSION in ("15.3", "15.4", "15.5")
121+
if OS_VERSION in ("15.4", "15.5")
122122
else OPENJDK_21_CONTAINER
123123
)
124124

tests/test_openjdk_devel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_maven_present(auto_container):
8484

8585

8686
@pytest.mark.skipif(
87-
OS_VERSION not in ("15.3", "15.4", "15.5", "15.6"),
87+
OS_VERSION not in ("15.4", "15.5", "15.6"),
8888
reason="jshell is no longer the CMD as of SP7",
8989
)
9090
@pytest.mark.parametrize(

tests/test_php.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def get_env_var(env_var: str) -> str:
271271
f"{apache_confdir}/httpd.conf"
272272
).is_file
273273

274-
if OS_VERSION in ("15.3", "15.4", "15.5"):
274+
if OS_VERSION in ("15.4", "15.5"):
275275
apache_envvars = get_env_var("APACHE_ENVVARS")
276276
assert container_per_test.connection.file(apache_envvars).is_file
277277
assert container_per_test.connection.run_expect(

0 commit comments

Comments
 (0)