Integration Tests for SiGa (Signature Gateway)

June 19, 2026 · View on GitHub

Co-funded by the European Union

Integration Tests for SiGa (Signature Gateway)

Prerequisites

Configuring the tests

Modify the file application.properties according to the environment where SiGa is running at. Running in remote environment, it´s necessary to configure valid Client authorization data in TestData.java. More about authorization - Authorization.

If you are running SiGa in local docker-compose setup as described at https://github.com/open-eid/SiGa#running-siga-with-docker, then the default configuration should work.

Descriptions of parameters in application.properties:

ParameterExampleDescription
siga.application-context-path/siga-webapp-2.0.1Custom service context.
siga.hostnamelocalhostService URL.
siga.port8443Service port.
siga.protocolhttpsService protocol.
siga.profiles.activedatafileContainer,smartId,mobileIdDefine what profile tests to run.
test-files-directorysrc/test/resources/Test files directory path.
test-sid-accounts-filesrc/test/resources/accounts/sid-demo-accounts.jsonLocation of Smart-Id test accounts.
rest-assured-console-loggingfalseEnable RestAssured request/response console logging filters.

Running tests

NB! MonitoringSpec tests do not pass locally as SIVA status is always DOWN.

Using Maven

Run tests

./mvnw clean verify

PS! Groovy and Scala tests do not run automatically.

Using IntelliJ

  1. At first, generate dynamic classes from WADL and XSD.
./mvnw clean compile
  1. Open this project in IntelliJ (community version will do)
  2. Open File -> Project Structure
  3. In the view:
    • Make sure Project -> SDK points to Java 21
  4. Open *T.java or *Spec.groovy file and JUnit Run option should be displayed. Run Tests

Report:

For a report, Allure is required (instructions for download).

After running the tests, you can serve locally Allure report:

allure serve ./target/allure-results/