Change tests to only use Liquibase for schema 26/142726/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Wed, 10 Dec 2025 18:25:24 +0000 (18:25 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Wed, 10 Dec 2025 18:25:24 +0000 (18:25 +0000)
commit9c1d5b5f4a08bcac222c0684603ef91fbf66302e
tree30ec48eac436aa4dd0edfb990fef18712ed33b66
parentcb08a08a8e13867f7eebd302e584159c44884fe3
Change tests to only use Liquibase for schema

Because ddl-auto was set to 'create-drop' in the test config,
Hibernate was overwriting Liquibase's schema. To correct this,
ddl-auto is set to none, and liquibase is set to drop-first.
DirtiesContext is also enabled for any tests using database
to ensure tests do not get stale data.

Issue-ID: POLICY-5333
Change-Id: Ie573c52556c5ba09d8c5f1a1e0d41c7a66c1a767
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/commissioning/rest/CommissioningControllerTest.java
runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/participant/ParticipantControllerTest.java
runtime-acm/src/test/resources/application-test.yaml