Skip to content

open-eid/SiGa-Tests

Repository files navigation

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:

Parameter Example Description
siga.application-context-path /siga-webapp-2.0.1 Custom service context.
siga.hostname localhost Service URL.
siga.port 8443 Service port.
siga.protocol https Service protocol.
siga.profiles.active datafileContainer,smartId,mobileId Define what profile tests to run.
test-files-directory src/test/resources/ Test files directory path.
rest-assured-console-logging false Enable RestAssured request/response console logging filters.

Running tests

NB! MonitoringT 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/

About

SiGa integration tests

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 12