Add integration coverage to replace hash_vault and consul_session (#71775)

* Add integration coverage to replace hash_vault and consul_session

ci_complete
ci_coverage

* Remove errant list element
This commit is contained in:
Matt Martz 2020-09-16 16:40:26 -05:00 committed by GitHub
parent 65cdb86c8a
commit 195c8b496e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View file

@ -138,11 +138,19 @@
state: present
register: create_group_gid_non_unique
- name: validate gid required with non_unique
group:
name: foo
non_unique: true
register: missing_gid
ignore_errors: true
- name: assert create group with a non unique gid
assert:
that:
that:
- create_group_gid_non_unique is changed
- create_group_gid_non_unique.gid | int == gid.stdout_lines[0] | int
- missing_gid is failed
when: ansible_facts.distribution not in ['MacOSX', 'Alpine']
##

View file

@ -27,7 +27,9 @@
- name: Convert a non-dict (failure expected)
set_fact:
bad_fact: "{{ lookup('dict', 1) }}"
bad_fact: "{{ bbbbad }}"
vars:
bbbbad: "{{ lookup('dict', 1) }}"
register: result
ignore_errors: yes