Archived
Merge branch 'feature-new-tests' into release-0.8.0
This commit is contained in:
commit
a9f7f47e9a
11 files changed
+32
-14
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
# sudo ./test.sh
|
||||||
|
# add -v for verbose mode (or type whatever you like !) :p
|
||||||
|
|
||||||
|
. test/config-repository
|
||||||
|
. test/tools/run.sh
|
||||||
|
|
||||||
|
run_test simple.sh "dn: dc=example,dc=com"
|
||||||
|
run_test tls.sh "dn: dc=example,dc=com"
|
||||||
|
run_test db.sh "dn: dc=otherdomain,dc=com"
|
||||||
|
|
||||||
|
. test/tools/end.sh
|
||||||
|
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
# sudo ./test.sh
|
# sudo ./test.sh
|
||||||
# add -v for verbose mode (or type whatever you like !) :p
|
# add -v for verbose mode (or type whatever you like !) :p
|
||||||
|
|
||||||
|
. test/config
|
||||||
. test/tools/run.sh
|
. test/tools/run.sh
|
||||||
|
|
||||||
run_test tools/build-container.sh "Successfully built"
|
run_test tools/build-container.sh "Successfully built"
|
||||||
|
|||||||
Regular → Executable
+5
@@ -1,3 +1,8 @@
|
|||||||
testImage=openldap-test
|
testImage=openldap-test
|
||||||
testContainer=openldap-test-container
|
testContainer=openldap-test-container
|
||||||
testDir=/osixia-test-docker-openldap
|
testDir=/osixia-test-docker-openldap
|
||||||
|
|
||||||
|
export testImage
|
||||||
|
export testContainer
|
||||||
|
export testDir
|
||||||
|
|
||||||
Executable
+7
@@ -0,0 +1,7 @@
|
|||||||
|
testImage=osixia/openldap:latest
|
||||||
|
testContainer=openldap-repository-test-container
|
||||||
|
testDir=/osixia-repository-test-docker-openldap
|
||||||
|
|
||||||
|
export testImage
|
||||||
|
export testContainer
|
||||||
|
export testDir
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
dir=$(dirname $0)
|
dir=$(dirname $0)
|
||||||
. $dir/tools/config.prop
|
|
||||||
|
|
||||||
if [ -d "$testDir" ]; then
|
if [ -d "$testDir" ]; then
|
||||||
rm -r $testDir
|
rm -r $testDir
|
||||||
|
|||||||
+1
-2
@@ -1,9 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
dir=$(dirname $0)
|
dir=$(dirname $0)
|
||||||
. $dir/tools/config.prop
|
|
||||||
|
|
||||||
. $dir/tools/run-container.sh
|
. $dir/tools/run-container.sh
|
||||||
|
|
||||||
echo "ldapsearch -x -h $IP -b dc=example,dc=com"
|
echo "ldapsearch -x -h $IP -b dc=example,dc=com"
|
||||||
ldapsearch -x -h $IP -b dc=example,dc=com
|
ldapsearch -x -h $IP -b dc=example,dc=com
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -1,9 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
dir=$(dirname $0)
|
dir=$(dirname $0)
|
||||||
. $dir/tools/config.prop
|
|
||||||
|
|
||||||
. $dir/tls/run.sh
|
. $dir/tls/run.sh
|
||||||
|
|
||||||
echo "ldapsearch -x -h $certCN -b dc=example,dc=com -ZZ"
|
echo "ldapsearch -x -h $certCN -b dc=example,dc=com -ZZ"
|
||||||
ldapsearch -x -h $certCN -b dc=example,dc=com -ZZ
|
ldapsearch -x -h $certCN -b dc=example,dc=com -ZZ
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
. $(dirname $0)/config.prop
|
|
||||||
|
|
||||||
docker.io build -t $testImage .
|
docker.io build -t $testImage .
|
||||||
#docker.io build --no-cache=true -t $testImage .
|
#docker.io build --no-cache=true -t $testImage .
|
||||||
|
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
. $(dirname $0)/config.prop
|
|
||||||
|
|
||||||
# remove test container
|
# remove test container
|
||||||
res=$(docker.io ps -a | grep -c "$testContainer")
|
res=$(docker.io ps -a | grep -c "$testContainer")
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
. $(dirname $0)/config.prop
|
|
||||||
|
|
||||||
# remove test image
|
# remove test image
|
||||||
res=$(docker.io images | grep -c "$testImage")
|
res=$(docker.io images | grep -c "$testImage")
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
dir=$(dirname $0)
|
./test/tools/delete-container.sh
|
||||||
$dir/delete-container.sh > /dev/null 2>&1
|
./test/tools/delete-image.sh > /dev/null 2>&1
|
||||||
$dir/delete-image.sh > /dev/null 2>&1
|
|
||||||
|
|
||||||
echo "------- End -------"
|
echo "------- End -------"
|
||||||
echo $error " failed " $ok " succeeded"
|
echo $error " failed " $ok " succeeded"
|
||||||
Reference in new issue
Block a user