Skip to content

Contezza/drc-tas-restapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRC Test Automation System

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.

Tests

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.

Docker

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

Login: admin/admin

Maven Test

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

Docker Test

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

Reports

Open following files for test results:

target/extent-output/execution.html
target/surefire-reports/index.html

License

Licensed under the EUPL

Releases

No releases published

Packages

No packages published