Document registration component (DRC) Test Automation System (TAS) RESTAPI is the project used for testing the DRC API according to reference implementation of VNG Realisatie. The unit tests described in this project are translated python tests from the documenten api repository.
The following components are used in this project:
If using Eclipse install Lombok (Help -> Install New Software -> https://projectlombok.org/p2). Visit project Lombok site for more information.
Overview of the unit tests as described on documenten api repository. The following unit tests are available:
✔ EnkelvoudigInformatieObjectCachingTest
✔ EnkelvoudigInformatieObjectPaginationTest
✔ EnkelvoudigInformatieObjectTest
✔ EnkelvoudigInformatieObjectTest
✔ EnkelvoudigInformatieObjectVersionHistoryTest
✔ EnkelvoudigInformatieObjectZoekTest
✔ GebruiksrechtenCachingTest
✔ GebruiksrechtenReadTest
✔ InformatieObjectReadCorrectScopeTest
✔ InformatieObjectScopeForbiddenTest
✔ OioCachingTest
✔ OioReadTest
✔ UploadTest
✔ VerzendingTest
There are also some custom unit tests described that are not available in the python tests.
Run docker before executing tests. Create dev_network
if not already exists (docker network create -d bridge dev_network
).
// Open Zaak and DRC Gemma
cd docker
docker-compose up -d
// Open Zaak, DRC Gemma and Alfresco
cd docker
docker-compose -f docker-compose.yml -f docker-compose.alfresco.yml up -d
- http://localhost:8000 (open-zaak)
- http://localhost:8001 (open-notificaties)
- http://localhost:8002 (drc-gemma)
- http://localhost:8080/alfresco (alfresco)
- http://localhost:8081/share (share client)
Login: admin/admin
Run tests (default) with DRC gemma (external):
mvn clean install -Dnashorn.args=--no-deprecation-warning
When running the test wihout docker, change service.baseuri
value with localhost. Run tests with different environment:
// DRC Gemma (reference implementation of VNG Realisatie)
mvn clean install -Dnashorn.args=--no-deprecation-warning -Denv=drc
// DRC Open Zaak
mvn clean install -Dnashorn.args=--no-deprecation-warning -Denv=open-zaak
// DRC Alfresco
mvn clean install -Dnashorn.args=--no-deprecation-warning -Denv=alfresco
Run build:
mvn clean install -DskipTests=true
In the following example you can run the test with the configured environment (-Denv=alfresco
).
docker run -it --network=dev_network -v "$(pwd)":/root -w /root adoptopenjdk/maven-openjdk11:latest mvn clean install -Dnashorn.args=--no-deprecation-warning -Denv=alfresco
Open following files for test results:
target/extent-output/execution.html
target/surefire-reports/index.html
Licensed under the EUPL