Liquibase Rollback support and tests 79/142279/3
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 17 Oct 2025 08:42:02 +0000 (09:42 +0100)
committerDaniel Hanrahan <daniel.hanrahan@est.tech>
Tue, 21 Oct 2025 12:16:05 +0000 (12:16 +0000)
commit9a5daa5b2b8aaa9457723bc8f3a3289d2c0f0525
tree39c619207c7c731714d32e424fad26b5905d8605
parentf2ed1a7581947315ca45230ce9da6619f148438b
Liquibase Rollback support and tests

This commit introduces:
- Liquibase tags: one tag per release.
- Needed rollback steps for each changelog.
- Unit tests of of Liquibase update and rollback.
- Tests comparing schemas before and after rollback.

The schema difference tests prove that the DB schema is 100%
identical before upgrade and after rollback. This reduces the
need for further rollback testing later in the release process.

Issue-ID: POLICY-5451
Change-Id: Ib6930ae59e846af45fa033c4bad62fafa2163edd
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
pom.xml
runtime-acm/pom.xml
runtime-acm/src/main/resources/db/changelog/changelog-1400.yaml
runtime-acm/src/main/resources/db/changelog/changelog-1500.yaml
runtime-acm/src/main/resources/db/changelog/changelog-1600.yaml
runtime-acm/src/main/resources/db/changelog/changelog-1700.yaml
runtime-acm/src/main/resources/db/changelog/changelog-1701.yaml
runtime-acm/src/main/resources/db/changelog/changelog-1702.yaml
runtime-acm/src/main/resources/db/changelog/changelog-1800.yaml
runtime-acm/src/test/java/org/onap/policy/clamp/acm/runtime/liquibase/LiquibaseRollbackTest.java [new file with mode: 0644]