QAC-Portal/QA-Portal

Change cv-api test config

开放

#174 创建于 2019年12月16日

 (0 条评论) (0 个反应) (0 位负责人)Java (5 个派生)auto 404
Low PriorityTestinggood first issuejava

仓库指标

星标
 (2 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南