Skip to content

Commit fbe5871

Browse files
committed
Test functionallity of unit test again
1 parent 70d8dce commit fbe5871

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/plugins/modules/test_cert_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def exit_json(*args, **kwargs):
7373
checks_passed = True
7474

7575
# only if passphrase_check mode is disabled
76-
if args[0].params['passphrase_check'] is False:
76+
if args[0].params['passphrase_check'] is not True:
7777
# check every item in certificate if it matches with the result
7878
# and if that fails, don't catch the Exception, so the test will fail
7979
for item in certificate:
@@ -82,10 +82,10 @@ def exit_json(*args, **kwargs):
8282
# if passphrase_check mode is enabled
8383
else:
8484
# fail checks, if passphrase is wrong and passphrase_check kwarg is not False
85-
if args[0].params['passphrase'] == 'PleaseChangeMe-Wrong' and kwargs['passphrase_check'] is not False:
85+
if args[0].params['passphrase'] == 'PleaseChangeMe-Wrong' and kwargs['passphrase_check'] is True:
8686
checks_passed = False
8787
# fail checks, if passphrase is correct and passphrase_check kwarg is not True
88-
if args[0].params['passphrase'] == 'PleaseChangeMe' and kwargs['passphrase_check'] is not True:
88+
if args[0].params['passphrase'] == 'PleaseChangeMe' and kwargs['passphrase_check'] is not False:
8989
checks_passed = False
9090

9191
if checks_passed:

0 commit comments

Comments
 (0)