summaryrefslogtreecommitdiff
path: root/test/integration/targets/openssl_publickey
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2017-11-28 12:26:45 -0600
committerGitHub <noreply@github.com>2017-11-28 12:26:45 -0600
commit3a2c1541cac77bd08505cc6ccba4d988cc1c8213 (patch)
tree532504b384d5d2617e29712575a04da3b1d95426 /test/integration/targets/openssl_publickey
parent84b8f674a7df5538044e35481660acbd49f2e41c (diff)
downloadansible-3a2c1541cac77bd08505cc6ccba4d988cc1c8213.tar.gz
Fix tests as filters syntax in recently modified integration tests (#33346)
Diffstat (limited to 'test/integration/targets/openssl_publickey')
-rw-r--r--test/integration/targets/openssl_publickey/tasks/main.yml2
-rw-r--r--test/integration/targets/openssl_publickey/tests/validate.yml4
2 files changed, 3 insertions, 3 deletions
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: