Skip to content

Use bitnami/openldap image during testing #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
sudo apt-get install firefox-geckodriver
fi

robot testing/ldap.robot
# robot testing/ldap.robot

docker exec -i web /Kiwi/manage.py ldap_sync_users
cat testing/ldap.py | docker exec -i web /Kiwi/manage.py shell
Expand Down
2 changes: 1 addition & 1 deletion devel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

flake8
kiwitcms
pylint-django
pylint-django==2.5.3
textdistance
twine
readme_renderer[md]
Expand Down
9 changes: 7 additions & 2 deletions docker-compose.testing
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ version: '2'
services:
openldap_server:
container_name: openldap_server
image: openshift/openldap-2441-centos7
image: bitnami/openldap
restart: always
ports:
- 389:389
- 636:636
environment:
- LDAP_PORT_NUMBER=389
- LDAP_ADMIN_USERNAME=Manager
- LDAP_ADMIN_PASSWORD=admin
- LDAP_ROOT=dc=example,dc=com
- LDAP_USER_DC=People

db:
container_name: db
Expand Down
7 changes: 4 additions & 3 deletions testing/ldap.ldif
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
dn: ou=People,dc=example,dc=com
ou: People
objectClass: organizationalUnit
# b/c will be created when OpenLDAP initializes
# dn: ou=People,dc=example,dc=com
# ou: People
# objectClass: organizationalUnit

dn: uid=ldap_atodorov,ou=People,dc=example,dc=com
cn: ldap_atodorov
Expand Down