Skip to content

Commit e4ec7e2

Browse files
committed
committing intermediate state before great cleansing
Signed-off-by: Matthias Büchse <[email protected]>
1 parent ab3fad2 commit e4ec7e2

File tree

2 files changed

+170
-30
lines changed

2 files changed

+170
-30
lines changed

Tests/scs-compatible-iaas.yaml

Lines changed: 169 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# - 2025-05-22 pruned old content; affected versions: v1, v2, v3-orig, v5
55

66

7-
# testcases are very technical
7+
# HYPOTHESIS: testcases are very technical
88
# a testcase could occur in multiple standards (not just multiple versions of one standard)
99
# could be recommended in one standard, required in another
1010
# worst case: all standards pairwise connected via a shared testcase (can be a different one each time)
@@ -15,6 +15,42 @@
1515
# - run those testcases and record their results
1616
# - then evaluate each standard version: rq PASS/FAIL rc PASS/FAIL
1717
# - then evaluate each target: rq PASS/FAIL rc PASS/FAIL
18+
#
19+
# NB: in this case it makes no sense to name testcases after the standards, the way I just
20+
# did, e.g., testcase/scs-0104-image-debian-12
21+
#
22+
# Of course, we could use a dedicated concept to bridge items in documents with testcases.
23+
# We might say: the testcase is the content (what to test) whereas the 'test item' is the form (and location).
24+
# Then we have a mapping:
25+
#
26+
# item/scs-0104-v2-image-debian-12:
27+
# testcase: testcase/glance-image-debian-12
28+
# status: recommended
29+
# item/scs-0104-v2-image-ubuntu-24.04:
30+
# testcase: testcase/glance-image-ubuntu-24.04
31+
# status: required
32+
#
33+
# In essence, each item corresponds to an entry in the mapping that we have currently:
34+
#
35+
# testcases:
36+
# testcase/glance-image-debian-12: recommended
37+
# testcase/glance-image-ubuntu-24.04: required
38+
#
39+
# The difference is that the item adds a name. The question is: what is the benefit of this name?
40+
#
41+
# On second thought, how likely is it that two standards share a testcase?
42+
# The only example I could come up with is the following:
43+
# - scs-0101-v1 says that every public image SHOULD have property `hw_rng_model`
44+
# - scs-0102-v1 says that every public image SHOULD have property `hw_rng_model`
45+
# In both cases we don't even have a dedicated testcase, but rather
46+
# - testcase/scs-0101-image-properties, which tests other properties as well
47+
# - testcase/scs-0102-image-metadata, which is still monolithic and tests everything all at once
48+
# I think it could be worthwhile to decompose the monolith, but I would rather remove the former
49+
# testcase from the testsuite scs-0101-v1 and add a remark to the testsuite scs-0102-v1 saying
50+
# that if the testcase is to be removed from there as well that one should instead consider
51+
# moving it to scs-0101-v1.
52+
#
53+
# So, maybe the HYPOTHESIS does not carry that much weight.
1854

1955

2056
# #### (TESTCASE) CATEGORIES + corresponding TESTCASES ####
@@ -191,46 +227,150 @@
191227
category: category/scs-0103
192228
tags: [scs-0103-v1-rec]
193229

230+
231+
232+
- id: category/scs-0104
233+
name: Standard images
234+
url: https://docs.scs.community/standards/iaas/scs-0104
194235
- id: testcase/scs-0104-source-capi
236+
category: category/scs-0104
195237
description: CAPI images adhere to canonical image source
238+
tags:
239+
- scs-0104-v1.1/required
240+
- scs-0104-v1.2/required
196241
- id: testcase/scs-0104-source-ubuntu
242+
category: category/scs-0104
197243
description: Ubuntu images adhere to canonical image source
244+
tags:
245+
- scs-0104-v1.1/required
246+
- scs-0104-v1.2/required
198247
- id: testcase/scs-0104-source-debian
248+
category: category/scs-0104
199249
description: Debian images adhere to canonical image source
250+
tags:
251+
- scs-0104-v1.1/required
252+
- scs-0104-v1.2/required
200253
- id: testcase/scs-0104-image-capi-2
254+
category: category/scs-0104
201255
description: CAPI image is present (naming scheme v2)
256+
tags:
257+
- scs-0104-v1.2/recommended
202258
- id: testcase/scs-0104-image-capi-1
259+
category: category/scs-0104
203260
description: CAPI image is present (naming scheme v1)
261+
tags:
262+
- scs-0104-v1.1/recommended
204263
- id: testcase/scs-0104-image-ubuntu-24.04
205-
description: Ubuntu 24.04 image is present
264+
category: category/scs-0104
265+
description: Ubuntu 24.04 image is present (by name)
266+
tags:
267+
- scs-0104-v1.2/required
206268
- id: testcase/scs-0104-image-ubuntu-22.04
207-
description: Ubuntu 22.04 image is present
269+
category: category/scs-0104
270+
description: Ubuntu 22.04 image is present (by name)
271+
tags:
272+
- scs-0104-v1.1/required
208273
- id: testcase/scs-0104-image-debian-12
209-
description: Debian 12 image is present
274+
category: category/scs-0104
275+
description: Debian 12 image is present (by name)
276+
tags:
277+
- scs-0104-v1.2/recommended
210278

211279

212-
- id: category/scs-0104
213-
name: Standard images
280+
281+
- id: testcase/scs-0104-source-capi
282+
description: CAPI images adhere to canonical image source
283+
- id: testcase/scs-0104-source-ubuntu
284+
description: Ubuntu images adhere to canonical image source
285+
- id: testcase/scs-0104-source-debian
286+
description: Debian images adhere to canonical image source
287+
- id: testcase/scs-0104-image-capi-2
288+
description: CAPI image is present (naming scheme v2)
289+
- id: testcase/scs-0104-image-capi-1
290+
description: CAPI image is present (naming scheme v1)
291+
- id: testcase/scs-0104-image-ubuntu-24.04
292+
description: Ubuntu 24.04 image is present (by name)
293+
- id: testcase/scs-0104-image-ubuntu-22.04
294+
description: Ubuntu 22.04 image is present (by name)
295+
- id: testcase/scs-0104-image-debian-12
296+
description: Debian 12 image is present (by name)
297+
298+
299+
- id: module/scs-0104-v1.1
300+
url: https://docs.scs.community/standards/scs-0104-v1-standard-images
301+
targets:
302+
required:
303+
- testcase/scs-0104-image-ubuntu-22.04
304+
- testcase/scs-0104-source-capi
305+
- testcase/scs-0104-source-ubuntu
306+
- testcase/scs-0104-source-debian
307+
recommended:
308+
- testcase/scs-0104-image-capi-1
309+
- id: module/scs-0104-v1.2
310+
url: https://docs.scs.community/standards/scs-0104-v1-standard-images
311+
targets:
312+
required:
313+
- testcase/scs-0104-image-ubuntu-24.04
314+
- testcase/scs-0104-source-capi
315+
- testcase/scs-0104-source-ubuntu
316+
- testcase/scs-0104-source-debian
317+
recommended:
318+
- testcase/scs-0104-image-capi-2
319+
- testcase/scs-0104-image-debian-12
320+
321+
- id: module/scs-compatible-iaas-v5.1-preview
322+
targets:
323+
preview:
324+
- testcase/scs-0116-docs
325+
- testcase/scs-0121-docs
326+
- testcase/scs-0302-docs
327+
328+
329+
- id: standard/scs-0104
214330
url: https://docs.scs.community/standards/iaas/scs-0104
215-
- id: standard/scs-0104-v1
216-
category: category/scs-0104
217-
required:
218-
- testcase/scs-0104-source-capi
219-
- testcase/scs-0104-source-ubuntu
220-
- testcase/scs-0104-source-debian
221-
- testcase/scs-0104-image-ubuntu-22.04
222-
recommended:
223-
- testcase/scs-0104-image-capi-1
224-
- id: standarsd/scs-0104-v2
225-
category: category/scs-0104
226-
required:
227-
- testcase/scs-0104-source-capi
228-
- testcase/scs-0104-source-ubuntu
229-
- testcase/scs-0104-source-debian
230-
- testcase/scs-0104-image-ubuntu-24.04
231-
recommended:
232-
- testcase/scs-0104-image-capi-2
233-
- testcase/scs-0104-image-debian-12
331+
versions:
332+
v1:
333+
url: https://docs.scs.community/standards/scs-0104-v1-standard-images
334+
v2:
335+
url: https://docs.scs.community/standards/scs-0104-v1-standard-images
336+
items:
337+
- testcase: testcase/scs-0104-source-capi
338+
description: CAPI images adhere to canonical image source
339+
status:
340+
v1: required
341+
v2: required
342+
- testcase: testcase/scs-0104-source-ubuntu
343+
description: Ubuntu images adhere to canonical image source
344+
status:
345+
v1: required
346+
v2: required
347+
- testcase: testcase/scs-0104-source-debian
348+
description: Debian images adhere to canonical image source
349+
status:
350+
v1: required
351+
v2: required
352+
- testcase: testcase/scs-0104-image-capi-2
353+
description: CAPI image is present (naming scheme v2)
354+
status:
355+
v2: recommended
356+
- testcase: testcase/scs-0104-image-capi-1
357+
description: CAPI image is present (naming scheme v1)
358+
status:
359+
v1: recommended
360+
- testcase: testcase/scs-0104-image-ubuntu-24.04
361+
description: Ubuntu 24.04 image is present (by name)
362+
status:
363+
v2: required
364+
- testcase: testcase/scs-0104-image-ubuntu-22.04
365+
description: Ubuntu 22.04 image is present (by name)
366+
status:
367+
v1: required
368+
- testcase: testcase/scs-0104-image-debian-12
369+
description: Debian 12 image is present (by name)
370+
status:
371+
v2: recommended
372+
373+
234374

235375
- id: category/scs-0114
236376
name: Volume Types
@@ -356,7 +496,7 @@
356496
- scs-0101-v1
357497
- scs-0102-v1
358498
- scs-0103-v1
359-
- scs-0104-v1-2
499+
- scs-0104-v1.2/required
360500
- scs-0114-v1
361501
- scs-0115-v1
362502
- scs-0116-v1 !manual
@@ -401,9 +541,9 @@
401541
versions:
402542
- version: v5.1
403543
stabilized_at: 2024-12-19
404-
targets:
405-
main: target/scs-compatible-iaas-main-v5.1
406-
preview: target/scs-compatible-iaas-preview-v5.1
544+
include:
545+
- module/scs-0104-v1.2
546+
- module/scs-compatible-iaas-v5.1-preview
407547
- version: v4
408548
stabilized_at: 2024-02-28
409549
targets:

Tests/testcases/scs-0116.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ testcases:
88
- key-manager
99
- id: key-manager-permissions-check
1010
tags: [scs-0116-v1]
11-
description: Key manager is usable with member role.
11+
description: Key manager (if present) is usable with member role.
1212
type: check-key-manager

0 commit comments

Comments
 (0)