File tree Expand file tree Collapse file tree 11 files changed +32
-14
lines changed
Expand file tree Collapse file tree 11 files changed +32
-14
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Usage
4+ # sudo ./test.sh
5+ # add -v for verbose mode (or type whatever you like !) :p
6+
7+ . test/config-repository
8+ . test/tools/run.sh
9+
10+ run_test simple.sh " dn: dc=example,dc=com"
11+ run_test tls.sh " dn: dc=example,dc=com"
12+ run_test db.sh " dn: dc=otherdomain,dc=com"
13+
14+ . test/tools/end.sh
15+
Original file line number Diff line number Diff line change 44# sudo ./test.sh
55# add -v for verbose mode (or type whatever you like !) :p
66
7+ . test/config
78. test/tools/run.sh
89
910run_test tools/build-container.sh " Successfully built"
Original file line number Diff line number Diff line change 11testImage=openldap-test
22testContainer=openldap-test-container
33testDir=/osixia-test-docker-openldap
4+
5+ export testImage
6+ export testContainer
7+ export testDir
8+
Original file line number Diff line number Diff line change 1+ testImage=osixia/openldap:latest
2+ testContainer=openldap-repository-test-container
3+ testDir=/osixia-repository-test-docker-openldap
4+
5+ export testImage
6+ export testContainer
7+ export testDir
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33dir=$( dirname $0 )
4- . $dir /tools/config.prop
54
65if [ -d " $testDir " ]; then
76 rm -r $testDir
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33dir=$( dirname $0 )
4- . $dir /tools/config.prop
5-
64. $dir /tools/run-container.sh
5+
76echo " ldapsearch -x -h $IP -b dc=example,dc=com"
87ldapsearch -x -h $IP -b dc=example,dc=com
98
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33dir=$( dirname $0 )
4- . $dir /tools/config.prop
5-
64. $dir /tls/run.sh
5+
76echo " ldapsearch -x -h $certCN -b dc=example,dc=com -ZZ"
87ldapsearch -x -h $certCN -b dc=example,dc=com -ZZ
98
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- . $( dirname $0 ) /config.prop
4-
53docker.io build -t $testImage .
64# docker.io build --no-cache=true -t $testImage .
75
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- . $( dirname $0 ) /config.prop
4-
53# remove test container
64res=$( docker.io ps -a | grep -c " $testContainer " )
75
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- . $( dirname $0 ) /config.prop
4-
53# remove test image
64res=$( docker.io images | grep -c " $testImage " )
75
You can’t perform that action at this time.
0 commit comments