Springboot Integration tests improvements 07/133007/3
authorlukegleeson <luke.gleeson@est.tech>
Wed, 11 Jan 2023 09:45:53 +0000 (09:45 +0000)
committerlukegleeson <luke.gleeson@est.tech>
Wed, 25 Jan 2023 17:40:32 +0000 (17:40 +0000)
commit665e22472f9658a4d439da0323e6e8760ec60840
treebe0d8dac07accaefe10e71f19dd7dd50684bcabb
parente076b048adf89ac1c0ef63b6d605050fab170eb3
Springboot Integration tests improvements

Creation of CpsIntegrationSpecBase
Demonstration of test class implementing CpsIntegrationSpecBase in CpsPersistenceSpec
Tests use reduced liquibase steps, basic bookstore yang model and bookstore json payload

Issue-ID: CPS-1379
Signed-off-by: lukegleeson <luke.gleeson@est.tech>
Change-Id: I38202d0888808d08d85fce1aab45fc43e8b0cec3
12 files changed:
cps-ri/src/main/java/org/onap/cps/spi/repository/AnchorRepository.java
integration-test/pom.xml [new file with mode: 0644]
integration-test/src/test/groovy/org/onap/cps/integration/CpsIntegrationSpecBase.groovy [new file with mode: 0644]
integration-test/src/test/groovy/org/onap/cps/integration/CpsPersistenceSpec.groovy [new file with mode: 0644]
integration-test/src/test/groovy/org/onap/cps/integration/TestConfig.groovy [new file with mode: 0644]
integration-test/src/test/java/org/onap/cps/integration/DatabaseTestContainer.java [new file with mode: 0644]
integration-test/src/test/resources/application.yml [new file with mode: 0644]
integration-test/src/test/resources/data/BookstoreDataNodes.json [new file with mode: 0644]
integration-test/src/test/resources/data/bookstore.yang [new file with mode: 0644]
integration-test/src/test/resources/hibernate.cfg.xml [new file with mode: 0644]
integration-test/src/test/resources/liquibase/test-changelog.yaml [new file with mode: 0644]
pom.xml