Skip to content

Commit bdfe6d4

Browse files
committed
Add note why assert output for FIPS enabled and assert not output for
FIPS disabled Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 38d1694 commit bdfe6d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_container_fips.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,17 @@ def test_fips_mode(self):
5454
cid_file_name={VARS.IMAGE_NAME},
5555
cmd="ruby -ropenssl -e 'exit OpenSSL.fips_mode'",
5656
)
57+
# In case of FIPS is enabled, then output should be "True" in string format
58+
# and then assert "True" means that FIPS is enabled
5759
assert output
5860
else:
5961
# FIPS disabled -> OpenSSL#fips_mode returns false
6062
output = PodmanCLIWrapper.podman_run_command_and_remove(
6163
cid_file_name=f"{VARS.IMAGE_NAME}-{self.app.app_name}",
6264
cmd="ruby -ropenssl -e 'exit !OpenSSL.fips_mode'",
6365
)
66+
# In case of FIPS is disabled, then output should be "False" in string format
67+
# and then assert not output means that FIPS is disabled
6468
assert not output
6569

6670

0 commit comments

Comments
 (0)