1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-24 12:49:03 +00:00
community.general/tests/integration/targets/ldap_search/tasks/tests/basic.yml
eryx12o45 e3e6c6167e
Added ldap_search module for searching in LDAP servers (#126)
* fix CI

* Added ldap_search module for searching in LDAP servers

* Fixes from pipeline

* Fixed second script as well

* fix DOCUMENTATION block

* fix DOCUMENTATION block

* fix DOCUMENTATION block

* fix examples and remove changelog fragment

* Added integration tests for ldap_search

* fixes

Co-authored-by: Sebastian Pfahl <sebastian.pfahl@dcso.de>
2020-04-17 10:53:37 +02:00

20 lines
621 B
YAML

- debug:
msg: Running tests/basic.yml
####################################################################
## Search ##########################################################
####################################################################
- name: Test simple search for a user
ldap_search:
dn: "ou=users,dc=example,dc=com"
scope: "onelevel"
filter: "(uid=ldaptest)"
ignore_errors: yes
register: output
- name: assert that test LDAP user can be found
assert:
that:
- output is not failed
- output.results | length == 1
- output.results.0.displayName == "LDAP Test"