Skip to content

Repository files navigation

Co-funded by the European Union

Signature Verification Service Tests

Tests for Signature Verification Service.

Prerequisites

  • Java 21 JDK
  • Maven
  • SiVa must be deployed as accessible service.

Configuring the tests

Create application.properties based on application.properties.sample. If needed, modify properties according to the environment where SiVa is running at.

If you are running SiVa in local docker-compose setup as described at https://github.com/open-eid/SiVa?tab=readme-ov-file#with-docker, then the default configuration should work.

Descriptions of parameters in application.properties:

ParameterExampleDescription
siva.application-context-path/v3Custom service context.
siva.hostnamelocalhostService URL.
siva.port8080Service port.
siva.protocolhttpService protocol.
siva.request-size-limit28311552Service request body size limit.
test-files-directorysrc/test/resources/Test files directory path.
rest-assured-console-loggingtrueToggles printing Rest Assured logs in console.
allure-rest-request-limit2000000Sets limit for Allure rest request size to prevent report generation issues.
allure-rest-response-limit5000000Sets limit for Allure rest response size to prevent report generation issues.

Execute tests and generate report

How to run tests in local environment.

Using IntelliJ

Setup

  • Open this project in IntelliJ (Community version will do) and press 'Load Maven project' when doing so for the first time.

  • Open file -> Project Structure

  • In the view:

    • Make sure -> SDK points to Java 21

    Project Structure

Running tests

Open up src/test and right-click on the groovy folder, then press Run 'Tests in 'groovy''.

Running tests

Using Maven

  • Make sure Java 21 JDK and Maven are installed.
  • Both PATH and JAVA_HOME are configured. Instructions for these can be found here and here.

Report

  • To generate a test report, Allure is required (instructions for download).
  • After running the tests, allure-results folder is created under the target directory and the Allure report can be generated locally by the following command:
    • allure serve target/allure-results/

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

10 watching

Forks

Releases

Packages

Used by

Contributors

Languages