Skip to content
Snippets Groups Projects
Commit 16db5039 authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

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.
parent 742799f3
Branches
Tags
No related merge requests found
Showing
with 40 additions and 0 deletions
...@@ -36,3 +36,5 @@ ...@@ -36,3 +36,5 @@
- name: Test automember using client context, in server host. - name: Test automember using client context, in server host.
import_playbook: test_automember.yml import_playbook: test_automember.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test automountlocation using client context, in server host. - name: Test automountlocation using client context, in server host.
import_playbook: test_automountlocation.yml import_playbook: test_automountlocation.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -34,3 +34,5 @@ ...@@ -34,3 +34,5 @@
- name: Test config using client context, in server host. - name: Test config using client context, in server host.
import_playbook: test_config.yml import_playbook: test_config.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test delegation using client context, in server host. - name: Test delegation using client context, in server host.
import_playbook: test_delegation.yml import_playbook: test_delegation.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test dnsconfig using client context, in server host. - name: Test dnsconfig using client context, in server host.
import_playbook: test_dnsconfig.yml import_playbook: test_dnsconfig.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test dnsforwardzone using client context, in server host. - name: Test dnsforwardzone using client context, in server host.
import_playbook: test_dnsforwardzone.yml import_playbook: test_dnsforwardzone.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test dnsrecord using client context, in server host. - name: Test dnsrecord using client context, in server host.
import_playbook: test_dnsrecord.yml import_playbook: test_dnsrecord.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test dnszone using client context, in server host. - name: Test dnszone using client context, in server host.
import_playbook: test_dnszone.yml import_playbook: test_dnszone.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test group using client context, in server host. - name: Test group using client context, in server host.
import_playbook: test_group.yml import_playbook: test_group.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test hbacrule using client context, in server host. - name: Test hbacrule using client context, in server host.
import_playbook: test_hbacrule.yml import_playbook: test_hbacrule.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test hbacsvc using client context, in server host. - name: Test hbacsvc using client context, in server host.
import_playbook: test_hbacsvc.yml import_playbook: test_hbacsvc.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test hbacsvcgroup using client context, in server host. - name: Test hbacsvcgroup using client context, in server host.
import_playbook: test_hbacsvcgroup.yml import_playbook: test_hbacsvcgroup.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test automember using client context, in server host. - name: Test automember using client context, in server host.
import_playbook: test_host.yml import_playbook: test_host.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test hostgroup using client context, in server host. - name: Test hostgroup using client context, in server host.
import_playbook: test_hostgroup.yml import_playbook: test_hostgroup.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test location using client context, in server host. - name: Test location using client context, in server host.
import_playbook: test_location.yml import_playbook: test_location.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test permission using client context, in server host. - name: Test permission using client context, in server host.
import_playbook: test_permission.yml import_playbook: test_permission.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test privilege using client context, in server host. - name: Test privilege using client context, in server host.
import_playbook: test_privilege.yml import_playbook: test_privilege.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test pwpolicy using client context, in server host. - name: Test pwpolicy using client context, in server host.
import_playbook: test_pwpolicy.yml import_playbook: test_pwpolicy.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test role using client context, in server host. - name: Test role using client context, in server host.
import_playbook: test_role.yml import_playbook: test_role.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
...@@ -35,3 +35,5 @@ ...@@ -35,3 +35,5 @@
- name: Test selfservice using client context, in server host. - name: Test selfservice using client context, in server host.
import_playbook: test_selfservice.yml import_playbook: test_selfservice.yml
when: groups['ipaclients'] is not defined or not groups['ipaclients'] when: groups['ipaclients'] is not defined or not groups['ipaclients']
vars:
ipa_context: client
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment