Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
b89d2b13
Commit
b89d2b13
authored
3 years ago
by
Rafael Guterres Jeffman
Browse files
Options
Downloads
Patches
Plain Diff
automountmap: Add client context test playbook.
The client context test playbook was missing for ipaautomountmap.
parent
1d3eab80
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/automount/test_automountmap.yml
+1
-1
1 addition, 1 deletion
tests/automount/test_automountmap.yml
tests/automount/test_automountmap_client_context.yml
+40
-0
40 additions, 0 deletions
tests/automount/test_automountmap_client_context.yml
with
41 additions
and
1 deletion
tests/automount/test_automountmap.yml
+
1
−
1
View file @
b89d2b13
---
-
name
:
Test automountmap
hosts
:
ipaserver
hosts
:
"
{{
ipa_test_host
|
default('
ipaserver
')
}}"
become
:
no
gather_facts
:
no
...
...
This diff is collapsed.
Click to expand it.
tests/automount/test_automountmap_client_context.yml
0 → 100644
+
40
−
0
View file @
b89d2b13
---
-
name
:
Test automountmap
hosts
:
ipaclients, ipaserver
become
:
no
gather_facts
:
no
tasks
:
-
name
:
Include FreeIPA facts.
include_tasks
:
../env_freeipa_facts.yml
# Test will only be executed if host is not a server.
-
name
:
Execute with server context in the client.
ipaautomountmap
:
ipaadmin_password
:
SomeADMINpassword
ipaapi_context
:
server
location
:
default
name
:
ThisShouldNotWork
register
:
result
failed_when
:
not (result.failed and result.msg is regex("No module named '*ipaserver'*"))
when
:
ipa_host_is_client
# Import basic module tests, and execute with ipa_context set to 'client'.
# If ipaclients is set, it will be executed using the client, if not,
# ipaserver will be used.
#
# With this setup, tests can be executed against an IPA client, against
# an IPA server using "client" context, and ensure that tests are executed
# in upstream CI.
-
name
:
Test automountmap using client context, in client host.
import_playbook
:
test_automountmap.yml
when
:
groups['ipaclients']
vars
:
ipa_test_host
:
ipaclients
-
name
:
Test automountmap using client context, in server host.
import_playbook
:
test_automountmap.yml
when
:
groups['ipaclients'] is not defined or not groups['ipaclients']
vars
:
ipa_context
:
client
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment