Skip to content

Commit dd8532e

Browse files
committed
decompose testcase for scs-0102-v1
Signed-off-by: Matthias Büchse <[email protected]>
1 parent edfdc11 commit dd8532e

File tree

1 file changed

+63
-15
lines changed

1 file changed

+63
-15
lines changed

Tests/scs-compatible-iaas.yaml

Lines changed: 63 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,10 @@
2929
- testcase/scs-0100-semantics-check
3030

3131

32-
- id: testcase/scs-0101-flavor-properties
33-
description: >
34-
Must have all flavor properties recommended in
35-
<https://docs.scs.community/standards/scs-0101-w1-entropy-implementation-testing#warnings>
36-
- id: testcase/scs-0101-image-properties
37-
description: >
38-
Must have all image properties recommended in
39-
<https://docs.scs.community/standards/scs-0101-w1-entropy-implementation-testing#warnings>
32+
- id: testcase/scs-0101-flavor-property
33+
description: Each flavor has extra_spec `hw_rng:allowed=True`.
34+
- id: testcase/scs-0101-image-property
35+
description: Each image has property `hw_rng_model=virtio`.
4036
- id: testcase/scs-0101-rngd
4137
description: >
4238
Images of the test sample must have the service `rngd`; see
@@ -58,21 +54,73 @@
5854
- testcase/scs-0101-entropy-avail
5955
- testcase/scs-0101-fips-test
6056
recommended:
61-
- testcase/scs-0101-flavor-properties
62-
- testcase/scs-0101-image-properties
57+
- testcase/scs-0101-flavor-property
58+
# this is covered by scs-0102-v1
59+
# - testcase/scs-0101-image-property
6360
- testcase/scs-0101-rngd
6461

6562

66-
# very big TODO: still a monolith -- decompose!
67-
- id: testcase/scs-0102-image-metadata
68-
description: >
69-
Must fulfill all requirements of <https://docs.scs.community/standards/scs-0102-v1-image-metadata>
63+
- id: testcase/scs-0102-prop-architecture
64+
description: Each image has a meaningful value for `architecture`.
65+
- id: testcase/scs-0102-prop-min_disk
66+
description: Each image has a meaningful value for `min_disk`.
67+
- id: testcase/scs-0102-prop-min_ram
68+
description: Each image has a meaningful value for `min_ram`.
69+
- id: testcase/scs-0102-prop-os_version
70+
description: Each image has a meaningful value for `os_version`.
71+
- id: testcase/scs-0102-prop-os_distro
72+
description: Each image has a meaningful value for `os_distro`.
73+
- id: testcase/scs-0102-prop-hw_disk_bus
74+
description: Each image has a meaningful value for `hw_disk_bus`.
75+
- id: testcase/scs-0102-prop-hypervisor_type
76+
description: Each image has a meaningful value for `hypervisor_type`.
77+
- id: testcase/scs-0102-prop-hw_rng_model
78+
description: Each image has a meaningful value for `hw_rng_model`.
79+
- id: testcase/scs-0102-prop-image_build_date
80+
description: Each image has a meaningful value for `image_build_date`.
81+
- id: testcase/scs-0102-prop-patchlevel
82+
description: Each image has a meaningful value for `patchlevel`.
83+
- id: testcase/scs-0102-prop-image_original_user
84+
description: Each image has a meaningful value for `image_original_user`.
85+
- id: testcase/scs-0102-prop-image_source
86+
description: Each image has a meaningful value for `image_source`.
87+
- id: testcase/scs-0102-prop-image_description
88+
description: Each image has a meaningful value for `image_description`.
89+
- id: testcase/scs-0102-prop-replace_frequency
90+
description: Each image has a meaningful value for `replace_frequency`.
91+
- id: testcase/scs-0102-prop-provided_until
92+
description: Each image has a meaningful value for `provided_until`.
93+
- id: testcase/scs-0102-prop-uuid_validity
94+
description: Each image has a meaningful value for `uuid_validity`.
95+
- id: testcase/scs-0102-prop-hotfix_hours
96+
description: Each image has a meaningful value for `hotfix_hours`.
97+
- id: testcase/scs-0102-image-recency
98+
description: Each image is as recent as properties (if set) suggest.
7099

71100
- id: module/scs-0102-v1
72101
url: https://docs.scs.community/standards/scs-0102-v1-image-metadata
73102
targets:
74103
required:
75-
- testcase/scs-0102-image-metadata
104+
- testcase/scs-0102-prop-architecture
105+
- testcase/scs-0102-prop-min_disk
106+
- testcase/scs-0102-prop-min_ram
107+
- testcase/scs-0102-prop-os_version
108+
- testcase/scs-0102-prop-os_distro
109+
- testcase/scs-0102-prop-hw_disk_bus
110+
- testcase/scs-0102-prop-image_build_date
111+
- testcase/scs-0102-prop-image_original_user
112+
- testcase/scs-0102-prop-image_source
113+
- testcase/scs-0102-prop-image_description
114+
- testcase/scs-0102-prop-replace_frequency
115+
- testcase/scs-0102-prop-provided_until
116+
- testcase/scs-0102-prop-uuid_validity
117+
- testcase/scs-0102-image-recency
118+
recommended:
119+
- testcase/scs-0102-prop-hypervisor_type
120+
- testcase/scs-0102-prop-hw_rng_model # when removing, consider moving to scs-0101 instead
121+
- testcase/scs-0102-prop-patchlevel
122+
- testcase/scs-0102-prop-hotfix_hours
123+
# - don't enforce recommended naming, because it just doesn't catch on, and better solutions exist
76124

77125

78126
- id: testcase/scs-0103-flavor-1v-4

0 commit comments

Comments
 (0)