diff options
author | lukegleeson <luke.gleeson@est.tech> | 2023-01-11 09:45:53 +0000 |
---|---|---|
committer | lukegleeson <luke.gleeson@est.tech> | 2023-01-25 17:40:32 +0000 |
commit | 665e22472f9658a4d439da0323e6e8760ec60840 (patch) | |
tree | be0d8dac07accaefe10e71f19dd7dd50684bcabb /integration-test/src/test/resources/hibernate.cfg.xml | |
parent | e076b048adf89ac1c0ef63b6d605050fab170eb3 (diff) |
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
Diffstat (limited to 'integration-test/src/test/resources/hibernate.cfg.xml')
-rw-r--r-- | integration-test/src/test/resources/hibernate.cfg.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/integration-test/src/test/resources/hibernate.cfg.xml b/integration-test/src/test/resources/hibernate.cfg.xml new file mode 100644 index 0000000000..513c00ad2a --- /dev/null +++ b/integration-test/src/test/resources/hibernate.cfg.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE hibernate-configuration PUBLIC + "-//Hibernate/Hibernate Configuration DTD 3.0//EN" + "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> + +<hibernate-configuration> + <session-factory> + <property name="hibernate.connection.driver_class">org.postgresql.Driver</property> + <property name="hibernate.connection.url">${DB_URL}</property> + <property name="hibernate.connection.username">${DB_USERNAME}</property> + <property name="hibernate.connection.password">${DB_PASSWORD}</property> + <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQL82Dialect</property> + <property name="show_sql">true</property> + <property name="hibernate.hbm2ddl.auto">none</property> + </session-factory> +</hibernate-configuration>
\ No newline at end of file |