From d034de615965ca8214396e30c85191a5aa4aa37b Mon Sep 17 00:00:00 2001 From: liamfallon Date: Thu, 9 May 2019 15:54:41 +0000 Subject: Store policy type version in policy before DB write The policy type version must be updated on a policy before it is stored to the database, otherwise the database value is incorrect. Issue-ID: POLICY-1738 Change-Id: I0a7f2da3837497dd999141f40466d6507c26159b Signed-off-by: liamfallon --- .../org/onap/policy/models/provider/impl/PolicyPersistenceTest.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'models-provider/src/test/java') diff --git a/models-provider/src/test/java/org/onap/policy/models/provider/impl/PolicyPersistenceTest.java b/models-provider/src/test/java/org/onap/policy/models/provider/impl/PolicyPersistenceTest.java index a855d5d24..7fa21b021 100644 --- a/models-provider/src/test/java/org/onap/policy/models/provider/impl/PolicyPersistenceTest.java +++ b/models-provider/src/test/java/org/onap/policy/models/provider/impl/PolicyPersistenceTest.java @@ -86,6 +86,8 @@ public class PolicyPersistenceTest { */ @Before public void setupParameters() throws PfModelException, CoderException { + // H2, use "org.mariadb.jdbc.Driver" and "jdbc:mariadb://localhost:3306/policy" for locally installed MariaDB + PolicyModelsProviderParameters parameters = new PolicyModelsProviderParameters(); parameters.setDatabaseDriver("org.h2.Driver"); parameters.setDatabaseUrl("jdbc:h2:mem:testdb"); -- cgit 1.2.3-korg