Fix execution of client context tests.

When running the tests that can be executed either on server or client
context, without defining 'ipa_context', the context is automatically
identified.

Currently, the tests in upstream CI run only on a server, and the
context is identified as "server" context, and in order to run the test
using a client context 'ipa_context' must be set to 'client'.

This patch fixes all the client context tests by correctly setting
ipa_context when running the client context tests in a server host.
This commit is contained in:
Rafael Guterres Jeffman
2021-09-30 19:30:53 -03:00
parent 742799f3e9
commit 16db503929
27 changed files with 54 additions and 0 deletions

View File

@@ -35,3 +35,5 @@
- name: Test user using client context, in server host.
import_playbook: test_user.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client