Skip to content

Commit 7d6fd1b

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

File tree

4 files changed

+44
-36
lines changed

4 files changed

+44
-36
lines changed

Standards/scs-0103-v1-standard-flavors.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -156,27 +156,6 @@ with `block_device_mapping_v2`, e.g.
156156
to create a bootable 12G cinder volume from image `IMGUUID` that gets tied to the VM
157157
instance life cycle.)
158158

159-
## Conformance Tests
160-
161-
The script [`flavors-openstack.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/standard-flavors/flavors-openstack.py)
162-
will read the lists of mandatory and recommended flavors
163-
from a yaml file provided as command-line argument, connect to an OpenStack installation,
164-
and check whether the flavors are present and their extra_specs are correct.
165-
166-
Missing flavors will be reported on various logging channels: error for mandatory, warning for
167-
recommended flavors. Incorrect extra_specs will be reported as error in any case.
168-
The return code will be non-zero if the test could not be performed or if any error was
169-
reported.
170-
171-
The script does not check whether a name given via the extra_spec `scs:name-vN` is indeed valid according
172-
to any major version of the SCS standard on flavor naming.
173-
174-
## Operational tooling
175-
176-
The [openstack-flavor-manager](https://github.com/osism/openstack-flavor-manager) is able to
177-
create all standard, mandatory SCS flavors for you. It takes input that can be generated by
178-
`flavor-manager-input.py`.
179-
180159
## Previous standard versions
181160

182161
The list of standard flavors used to be part of the flavor naming standard up until
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: "SCS Standard Flavors: Implementation Notes"
3+
type: Supplement
4+
track: IaaS
5+
status: Draft
6+
supplements:
7+
- scs-0103-v1-standard-flavors.md
8+
---
9+
10+
## Operational tooling
11+
12+
The [openstack-flavor-manager](https://github.com/osism/openstack-flavor-manager) is able to
13+
create all standard, mandatory SCS flavors for you. It takes input that can be generated by
14+
[`flavor-manager-input.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/scs_0100_flavor_naming/flavor-manager-input.py).
15+
16+
## Automated tests
17+
18+
We implemented a set of testcases corresponding 1:1 to the standard flavors:
19+
20+
- `scs_0103_flavor_X` with varying `X`: ensures that flavor `SCS-X` is present and has the
21+
required `extra_specs`.
22+
23+
_NOTE_: We still need to add testcases to ensure that the `extra_specs` of non-standard
24+
flavors are correct as well.
25+
26+
The testcases can be run using the script
27+
[`openstack_test.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/openstack_test.py).

Standards/scs-0104-v1-standard-images.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,3 @@ next version. This standard makes no statement as to what is supposed to happen
128128
corresponding images in a live cloud environment. It is recommended to keep the
129129
once-mandatory images in the live environment. As for new environments, it is up to the
130130
operator whether to provide any or all of these images, as stated above.
131-
132-
## Conformance Tests
133-
134-
The script `images-openstack.py` will read the lists of mandatory and recommended images
135-
from a yaml file provided as command-line argument, connect to an OpenStack installation,
136-
and check whether the images are present. Missing images will be reported on various
137-
logging channels: error for mandatory, info for recommended images. Additionally, images
138-
whose `image_source` does not conform with the specifications will be reported on the
139-
error channel. The return code will be non-zero if the test could not be performed or
140-
if any errors have been reported.
141-
142-
## Operational tooling
143-
144-
The [openstack-image-manager](https://github.com/osism/openstack-image-manager) is able to
145-
create all standard, mandatory SCS images for you given image definitions from a YAML file.

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,20 @@ Run the test script on your environment and check the error messages :)
5959
The [openstack-image-manager](https://github.com/osism/openstack-image-manager) is able to
6060
create all standard, mandatory SCS images for you given image definitions from a YAML file.
6161
Please see [its documentation](https://docs.scs.community/docs/iaas/components/image-manager/) for details.
62+
63+
## Automated tests
64+
65+
We implemented testcases reflecting the information given in the YAML file(s). Be advised that
66+
the approach with the YAML file has considerable drawbacks, and it will be abandoned in
67+
future versions of the standard in favor of a more classical approach. The testcases already
68+
anticipate this future development.
69+
70+
There are two classes of testcases:
71+
72+
- `scs_0104_source_X` with varying `X`:
73+
these ensure that certain images have the correct `image_source`;
74+
- `scs_0104_image_X` with varying `X`:
75+
these ensure that certain images can be found in the list of public images.
76+
77+
The testcases can be run using the script
78+
[`openstack_test.py`](https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/openstack_test.py).

0 commit comments

Comments
 (0)