Skip to content

Commit d93d68a

Browse files
committed
started adapting testing notes
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent b5306e4 commit d93d68a

File tree

4 files changed

+45
-21
lines changed

4 files changed

+45
-21
lines changed

Standards/scs-0100-w1-flavor-naming-implementation-testing.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,12 @@ None so far.
167167

168168
### Implementation
169169

170-
The script [`flavor-names-openstack.py`](https://github.com/SovereignCloudStack/standards/tree/main/Tests/iaas/flavor-naming/flavor-names-openstack.py)
171-
talks to the OpenStack API of the cloud specified by the `OS_CLOUD` environment and queries properties and
172-
checks the names for standards compliance.
170+
We implemented two testcases, paralleling the two items in the "Errors" section above:
171+
172+
- `scs-0100-syntax-check` ensures that any name starting with `SCS-` adheres to the standard;
173+
- `scs-0100-semantics-check` ensures that any such name is telling the truth as specified in the standard.
174+
175+
These testcases can be checked using [`openstack_test.py`](https://github.com/SovereignCloudStack/standards/tree/main/Tests/iaas/openstack_test.py).
173176

174177
## Manual tests
175178

Standards/scs-0101-w1-entropy-implementation-testing.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,16 @@ as ensured by the image metadata standard.
6060

6161
### Implementation
6262

63-
The script [`entropy-check.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/entropy/entropy-check.py)
64-
connects to OpenStack and performs the checks described in this section.
63+
We implemented the following testcases that reflect the items in the above section
64+
on automated tests:
65+
66+
- `scs_0101_image_property`,
67+
- `scs_0101_flavor_property`,
68+
- `scs_0101_entropy_avail`,
69+
- `scs_0101_rngd`,
70+
- `scs_0101_fips_test` (covers both the error and warning case).
71+
72+
These testcases can be checked using [`openstack_test.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/openstack_test.py).
6573

6674
## Manual tests
6775

Standards/scs-0102-v1-image-metadata.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,3 @@ A boolean property that is not present is considered to be `false`.
239239
contact for issues with this image. Note that this field must only be set if the
240240
service provider does provide support for this image included in the image/flavor
241241
pricing (but it might be provided by a contracted 3rd party, e.g. the OS vendor).
242-
243-
### Conformance Tests
244-
245-
The script `image-md-check.py` retrieves the
246-
image list from a configured cloud and checks each image for the
247-
completeness and consistency of mandatory properties.

Standards/scs-0102-w1-image-metadata-implementation-testing.md

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,35 @@ for these images.
1616

1717
## Automated tests
1818

19-
### Images sample
20-
21-
Some checks need to be performed on a live instance. All publicly available images on this instance
22-
will be checked for either only the mandatory properties or possibly also the recommended ones.
23-
Additionally, a user can also decide to test their private images, although this isn't a necessity.
24-
25-
### Implementation
26-
27-
The script [`image-md-check.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/image-metadata/image-md-check.py)
28-
connects to OpenStack and performs the checks described in this section.
19+
We implemented a host of testcases to reflect the requirements and recommendations of the standard. The following
20+
testcases ensure that fields have proper values:
21+
22+
- `scs_0102_prop_architecture`,
23+
- `scs_0102_prop_hash_algo`,
24+
- `scs_0102_prop_min_disk`,
25+
- `scs_0102_prop_min_ram`,
26+
- `scs_0102_prop_os_version`,
27+
- `scs_0102_prop_os_distro`,
28+
- `scs_0102_prop_hw_disk_bus`,
29+
- `scs_0102_prop_hypervisor_type`,
30+
- `scs_0102_prop_hw_rng_model`,
31+
- `scs_0102_prop_image_build_date`,
32+
- `scs_0102_prop_image_original_user`,
33+
- `scs_0102_prop_image_source`,
34+
- `scs_0102_prop_image_description`,
35+
- `scs_0102_prop_replace_frequency`,
36+
- `scs_0102_prop_provided_until`,
37+
- `scs_0102_prop_uuid_validity`,
38+
- `scs_0102_prop_hotfix_hours`.
39+
40+
The property `patchlevel` is not tested because it is entirely optional.
41+
42+
The following testcase ensures that each image is as recent as claimed by its `replace_frequency`:
43+
44+
- `scs_0102_image_recency`
45+
46+
The script [`openstack_test.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/openstack_test.py)
47+
can be used to check these testcases.
2948

3049
## Manual tests
3150

0 commit comments

Comments
 (0)