1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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' path: '{{ output_dir }}/publickey-ssh.pub'
privatekey_path: '{{ output_dir }}/privatekey.pem' privatekey_path: '{{ output_dir }}/privatekey.pem'
format: OpenSSH format: OpenSSH
when: cryptography_version.stdout|version_compare('1.4.0', '>=') when: cryptography_version.stdout is version('1.4.0', '>=')
register: publickey_ssh_idempotence register: publickey_ssh_idempotence
- name: Generate publickey2 - standard - name: Generate publickey2 - standard

View file

@ -31,8 +31,8 @@
- name: Validate public key - OpenSSH format - test idempotence (issue 33256) - name: Validate public key - OpenSSH format - test idempotence (issue 33256)
assert: assert:
that: that:
- not publickey_ssh_idempotence|changed - publickey_ssh_idempotence is not changed
when: cryptography_version.stdout|version_compare('1.4.0', '>=') when: cryptography_version.stdout is version('1.4.0', '>=')
- name: Validate publickey2 (test - Ensure key has been removed) - name: Validate publickey2 (test - Ensure key has been removed)
stat: 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 - name: TEST 3 | Assert that status was not changed, the task failed, the msg contains proper information and SELinux was not changed
assert: assert:
that: that:
- not _state_test1 | changed - _state_test1 is not changed
- _state_test1 | failed - _state_test1 is failed
- _state_test1.msg == 'Policy non-existing-selinux-policy does not exist in /etc/selinux/' - _state_test1.msg == 'Policy non-existing-selinux-policy does not exist in /etc/selinux/'
- ansible_selinux.config_mode == 'enforcing' - ansible_selinux.config_mode == 'enforcing'
- ansible_selinux.type == 'targeted' - ansible_selinux.type == 'targeted'