Skip to content

Commit b5739dc

Browse files
committed
adapt testing notes, contd.
Signed-off-by: Matthias Büchse <[email protected]>
1 parent 7d6fd1b commit b5739dc

12 files changed

+120
-62
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ as ensured by the image metadata standard.
6363
We implemented the following testcases that reflect the items in the above section
6464
on automated tests:
6565

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).
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).
7171

7272
These testcases can be checked using [`openstack_test.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/openstack_test.py).
7373

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,29 @@ for these images.
1919
We implemented a host of testcases to reflect the requirements and recommendations of the standard. The following
2020
testcases ensure that fields have proper values:
2121

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`.
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`.
3939

4040
The property `patchlevel` is not tested because it is entirely optional.
4141

4242
The following testcase ensures that each image is as recent as claimed by its `replace_frequency`:
4343

44-
- `scs_0102_image_recency`
44+
- `scs-0102-image-recency`
4545

4646
The script [`openstack_test.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/openstack_test.py)
4747
can be used to check these testcases.

Standards/scs-0103-w1-standard-flavors-implementation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "SCS Standard Flavors: Implementation Notes"
2+
title: "SCS Standard Flavors: Implementation and Testing Notes"
33
type: Supplement
44
track: IaaS
55
status: Draft
@@ -17,7 +17,7 @@ create all standard, mandatory SCS flavors for you. It takes input that can be g
1717

1818
We implemented a set of testcases corresponding 1:1 to the standard flavors:
1919

20-
- `scs_0103_flavor_X` with varying `X`: ensures that flavor `SCS-X` is present and has the
20+
- `scs-0103-flavor-X` with varying `X`: ensures that flavor `SCS-X` is present and has the
2121
required `extra_specs`.
2222

2323
_NOTE_: We still need to add testcases to ensure that the `extra_specs` of non-standard

Standards/scs-0104-w1-standard-images-implementation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "SCS Standard Images: Implementation Notes"
2+
title: "SCS Standard Images: Implementation and Testing Notes"
33
type: Supplement
44
track: IaaS
55
status: Draft
@@ -69,9 +69,9 @@ anticipate this future development.
6969

7070
There are two classes of testcases:
7171

72-
- `scs_0104_source_X` with varying `X`:
72+
- `scs-0104-source-X` with varying `X`:
7373
these ensure that certain images have the correct `image_source`;
74-
- `scs_0104_image_X` with varying `X`:
74+
- `scs-0104-image-X` with varying `X`:
7575
these ensure that certain images can be found in the list of public images.
7676

7777
The testcases can be run using the script

Standards/scs-0114-v1-volume-type-standard.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,3 @@ It should look like the following part:
124124
## Related Documents
125125

126126
- corresponding [decision record document](https://github.com/SovereignCloudStack/standards/blob/main/Standards/scs-0111-v1-volume-type-decisions.md)
127-
128-
## Conformance Tests
129-
130-
The script `/Tests/iaas/volume-types/volume-types-check.py` connects to an OpenStack environment and tests
131-
the following:
132-
133-
- for each volume type: if its description starts with `[scs:....]`, then this prefix is a feature list
134-
(sorted, each entry at most once), and each entry is one of the possible features described here,
135-
- the recommended volume types are present (otherwise, a WARNING is produced).
136-
137-
The return code is zero precisely when the test could be performed and the conditions are satisfied.
138-
Otherwise, detailed errors and warnings are output to stderr.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "SCS Volume Types: Testing Notes"
3+
type: Supplement
4+
track: IaaS
5+
status: Draft
6+
supplements:
7+
- scs-0114-v1-volume-type-standard.md
8+
---
9+
10+
## Automated tests
11+
12+
We implemented the following testcases:
13+
14+
- `scs-0114-syntax-check` ensures that, for every volume type description,
15+
the list of aspects, if present, is formatted according to the standard.
16+
- `scs-0114-encrypted-type` ensures that a volume type featuring encryption is present.
17+
- `scs-0114-replicated-type` ensures that a volume type featuring replication is present.
18+
19+
The testcases can be run using the script
20+
[`openstack_test.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/openstack_test.py).

Standards/scs-0115-v1-default-rules-for-security-groups.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,3 @@ $ openstack default security group rule list
134134
The spec for introducing configurability for the default Security Groups Rules can be found [here](https://specs.openstack.org/openstack/neutron-specs/specs/2023.2/configurable-default-sg-rules.html).
135135

136136
More about Security Groups as a resource in OpenStack can be found [here](https://docs.openstack.org/nova/latest/user/security-groups.html).
137-
138-
## Conformance Tests
139-
140-
The conformance tests should check for the absence of any ingress traffic rules except traffic from the same Security Group in the `openstack default security group rule list`.
141-
As having egress rules is allowed by this standard, but not forced and can be set in various ways, the tests should check for presence of any egress rules.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: "Default Rules for Security Groups: Implementation and Testing Notes"
3+
type: Supplement
4+
track: IaaS
5+
status: Draft
6+
supplements:
7+
- scs-0115-v1-default-rules-for-security-groups.md
8+
---
9+
10+
## Automated tests
11+
12+
We implemented a single test case,
13+
14+
- `scs-0115-default-rules`,
15+
16+
which ensures
17+
18+
1. the absence of any ingress traffic rules except traffic from the same Security Group in the `openstack default security group rule list`,
19+
2. the presence of any egress traffic rules.
20+
21+
The testcase can be run using the script
22+
[`openstack_test.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/openstack_test.py).

Standards/scs-0116-w1-key-manager-implementation-testing.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ This can be done with a small change in the policy.yaml file. The `creator` has
4141
4242
## Automated Tests
4343
44-
The check for the presence of a Key Manager is done with a test script, that checks the presence of a Key Manager service in the catalog endpoint of Openstack.
45-
This check can eventually be moved to the checks for the mandatory an supported service/API list, in case of a promotion of the Key Manager to the mandatory list.
44+
We implemented the following testcases, in accordance with the standard:
4645
47-
### Implementation
46+
- `scs-0116-presence` ensures that a service of type "key-manager" occurs in the service catalog;
47+
- `scs-0116-permissions` ensures that a regular user has suitable access to the key-manager API.
4848

49-
The script [`check-for-key-manager.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/key-manager/check-for-key-manager.py)
50-
connects to OpenStack and performs the checks described in this section.
49+
The testcases can be run using the script
50+
[`openstack_test.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/openstack_test.py).
5151

5252
## Manual Tests
5353

Standards/scs-0117-v1-volume-backup-service.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,3 @@ The volume backup target storage SHOULD be a separate storage system from the on
8484

8585
- [OpenStack Block Storage v3 Backup API reference](https://docs.openstack.org/api-ref/block-storage/v3/index.html#backups-backups)
8686
- [OpenStack Volume Backup Drivers](https://docs.openstack.org/cinder/latest/configuration/block-storage/backup-drivers.html)
87-
88-
## Conformance Tests
89-
90-
Conformance tests include using the `/v3/{project_id}/backups` Block Storage API endpoint to create a volume and a backup of it as a non-admin user and subsequently restore the backup on a new volume while verifying the success of each operation.
91-
These tests verify the mandatory part of the standard: providing the Volume Backup API.
92-
93-
There is a test suite in [`volume-backup-tester.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/volume-backup/volume-backup-tester.py).
94-
The test suite connects to the OpenStack API and executes basic operations using the volume backup API to verify that the functionality requested by the standard is available.
95-
Please consult the associated [README.md](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/volume-backup/README.md) for detailed setup and testing instructions.
96-
97-
Note that these tests don't verify the optional part of the standard: providing a separate storage backend for Cinder volume backups.
98-
This cannot be checked from outside of the infrastructure as it is an architectural property of the infrastructure itself and transparent to customers.

0 commit comments

Comments
 (0)