diff --git a/test/integration/targets/openssl_publickey/tasks/main.yml b/test/integration/targets/openssl_publickey/tasks/main.yml index 087bdc73b5..7cb45c7ab8 100644 --- a/test/integration/targets/openssl_publickey/tasks/main.yml +++ b/test/integration/targets/openssl_publickey/tasks/main.yml @@ -23,7 +23,7 @@ path: '{{ output_dir }}/publickey-ssh.pub' privatekey_path: '{{ output_dir }}/privatekey.pem' format: OpenSSH - when: cryptography_version.stdout|version_compare('1.4.0', '>=') + when: cryptography_version.stdout is version('1.4.0', '>=') register: publickey_ssh_idempotence - name: Generate publickey2 - standard diff --git a/test/integration/targets/openssl_publickey/tests/validate.yml b/test/integration/targets/openssl_publickey/tests/validate.yml index c53b69ddc5..e09d787d20 100644 --- a/test/integration/targets/openssl_publickey/tests/validate.yml +++ b/test/integration/targets/openssl_publickey/tests/validate.yml @@ -31,8 +31,8 @@ - name: Validate public key - OpenSSH format - test idempotence (issue 33256) assert: that: - - not publickey_ssh_idempotence|changed - when: cryptography_version.stdout|version_compare('1.4.0', '>=') + - publickey_ssh_idempotence is not changed + when: cryptography_version.stdout is version('1.4.0', '>=') - name: Validate publickey2 (test - Ensure key has been removed) stat: diff --git a/test/integration/targets/selinux/tasks/selinux.yml b/test/integration/targets/selinux/tasks/selinux.yml index 443f941929..59aec7a1ad 100644 --- a/test/integration/targets/selinux/tasks/selinux.yml +++ b/test/integration/targets/selinux/tasks/selinux.yml @@ -200,8 +200,8 @@ - name: TEST 3 | Assert that status was not changed, the task failed, the msg contains proper information and SELinux was not changed assert: that: - - not _state_test1 | changed - - _state_test1 | failed + - _state_test1 is not changed + - _state_test1 is failed - _state_test1.msg == 'Policy non-existing-selinux-policy does not exist in /etc/selinux/' - ansible_selinux.config_mode == 'enforcing' - ansible_selinux.type == 'targeted'