From 195c8b496ee48c155a5d0976735087bc6bb06f38 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Wed, 16 Sep 2020 16:40:26 -0500 Subject: [PATCH] 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 --- test/integration/targets/group/tasks/tests.yml | 10 +++++++++- test/integration/targets/lookup_dict/tasks/main.yml | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/test/integration/targets/group/tasks/tests.yml b/test/integration/targets/group/tasks/tests.yml index 0822682a2ff..b5d336b5b71 100644 --- a/test/integration/targets/group/tasks/tests.yml +++ b/test/integration/targets/group/tasks/tests.yml @@ -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'] ## diff --git a/test/integration/targets/lookup_dict/tasks/main.yml b/test/integration/targets/lookup_dict/tasks/main.yml index 6f778548b9c..b1324136148 100644 --- a/test/integration/targets/lookup_dict/tasks/main.yml +++ b/test/integration/targets/lookup_dict/tasks/main.yml @@ -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