forked from FlechaRoja/ApacheDS
-
Notifications
You must be signed in to change notification settings - Fork 60
/
.travis.yml
37 lines (37 loc) · 1.34 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
language: python
python: 2.7
services:
- docker
addons:
apt:
packages:
- ldap-utils
- python-ldap
virtualenv:
system_site_packages: true
script:
- docker build -t apacheds-test .
- docker run -d --name apacheds-test -p 10389:10389 apacheds-test
- sleep 10
- echo "Old style"
- bin/initialize
- bin/group public add
- bin/user public add
- bin/user public in public
- bin/search
- yes | bin/clear
- echo "New style"
- bin/ldapmanager init
- bin/ldapmanager user public --password public
- bin/ldapmanager group public --member public
- bin/ldapmanager get 'uid=public,ou=Users,dc=openmicroscopy,dc=org'
- bin/ldapmanager search 'uid=public'
- bin/ldapmanager --bind-user uid=public,ou=Users,dc=openmicroscopy,dc=org --bind-pass public search
- bin/ldapmanager --bind-user uid=public,ou=Users,dc=openmicroscopy,dc=org --bind-pass public passwd --login public --password first --password second
- bin/ldapmanager --bind-user uid=public,ou=Users,dc=openmicroscopy,dc=org --bind-pass first search
- bin/ldapmanager --bind-user uid=public,ou=Users,dc=openmicroscopy,dc=org --bind-pass second search
- bin/ldapmanager passwd --admin --append --password backdoor
- bin/ldapmanager --bind-pass backdoor search
- bin/ldapmanager clear
- docker rm -f apacheds-test