Fix tests as filters syntax in recently modified integration tests (#33346)

This commit is contained in:
Matt Martz 2017-11-28 12:26:45 -06:00 committed by GitHub
parent 84b8f674a7
commit 3a2c1541ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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:

View file

@ -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'