make compliance test for scs-0115-v1: Default Rules for Security Groups downward compatible
For Yaook-based Openstack, that consists neather of deprecated or latest versions of components the compliance test for Default Rules for Security Groups should still be usable:
- if the current test fails (requesting https://neutron.l1a.cloudandheat.com:443/v2.0/default-security-group-rules), there should be an alternative test that
- creates a new security group to check whether default security group rules are automatically applied
- therefor checks for egress rules for IPv4 and IPv6 allowing all traffic
- and checks for ingress rules IPv4 and IPv6 blocking all traffic
- then deletes security group again
Note: requesting default-security-group-rules is available for yaook 2023.2 and later
I think there will be now ingress rules at all. So you can count the rules: If there are only 2 rules and both are egress, the test should be successful.
added alternative test, because the current test only works for the latest versions of the network and compute services, though older versions are not depricated yet
PR: https://github.com/SovereignCloudStack/standards/pull/748
Please only close when the PR is merged. Github can do that automatically – just link the two.