Skip to content

Commit 098b0e7

Browse files
mbuechsegarloff
andauthored
Bugfix: volume-types-check not mandatory (#908)
resolves #907 Signed-off-by: Matthias Büchse <[email protected]> Co-authored-by: Kurt Garloff <[email protected]>
1 parent cddef75 commit 098b0e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/iaas/volume-types/volume-types-check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def main(argv):
142142
f"{c[logging.CRITICAL]} / {c[logging.ERROR]} / {c[logging.WARNING]}"
143143
)
144144
if not c[logging.CRITICAL]:
145-
print("volume-types-check: " + ('PASS', 'FAIL')[min(1, c[logging.ERROR])])
145+
print("volume-types-check: " + ('PASS', 'FAIL')[min(1, c[logging.ERROR] + c[logging.WARNING])])
146146
return min(127, c[logging.CRITICAL] + c[logging.ERROR]) # cap at 127 due to OS restrictions
147147

148148

Tests/scs-compatible-iaas.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ modules:
125125
args: -c {os_cloud} -d
126126
testcases:
127127
- id: volume-types-check
128-
tags: [mandatory]
128+
tags: [volume-types-check]
129129
description: >
130130
Must fulfill all requirements of <https://docs.scs.community/standards/scs-0114-v1-volume-type-standard>
131131
- id: scs-0115-v1

0 commit comments

Comments
 (0)