QAC-Portal/QA-Portal

Change cv-api test config

Offen

#174 geöffnet am 16.12.2019

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (5 Forks)auto 404
Low PriorityTestinggood first issuejava

Repository-Metriken

Stars
 (2 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Currently, tests for cv-api rely on their own config file, cv-api/src/test/resources/application.yml.

This is necessary for line #35: enable_public_endpoints: true

This overrides development's default application.yml file, where this value is set to false, and is necessary for smoke testing the PublicCvManagementController.

However as seen by #173, this causes issue every time the cv-api config is changed.

Rather than duplicate all changes to the main config file in the test package's config file, a better solution might be to implement Spring Boot's @ActiveProfiles annotation, which allows the tests to load their own altered version of application.yml.

Contributor Guide