Skip to content

Commit

Permalink
Add LDAP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Oct 3, 2019
1 parent e0f8c04 commit 60fd1cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
options: >-
--shm-size=1g
openldap:
image: "glpi/githubactions-openldap"
steps:
- name: "Checkout"
uses: "actions/checkout@v1"
Expand All @@ -92,6 +94,11 @@ jobs:
- name: "Unit tests"
run: |
docker exec ${{ job.services.app.id }} vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --configurations tests/telemetry.php --bootstrap-file tests/bootstrap.php --no-code-coverage -d tests/units
- name: "LDAP tests"
run: |
for f in `ls tests/LDAP/ldif/*.ldif`; do cat $f | docker exec --interactive ${{ job.services.openldap.id }} ldapadd -x -H ldap://127.0.0.1:3890/ -D "cn=Manager,dc=glpi,dc=org" -w insecure ; done
docker exec ${{ job.services.db.id }} mysql --user=root --execute="UPDATE \`glpi\`.\`glpi_authldaps\` SET \`host\` = 'openldap';"
docker exec ${{ job.services.app.id }} vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --configurations tests/telemetry.php --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/LDAP
- name: "Functionnal tests"
run: |
docker exec ${{ job.services.app.id }} vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --configurations tests/telemetry.php --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/functionnal
Expand Down

0 comments on commit 60fd1cb

Please sign in to comment.