diff options
author | Temoc Rodriguez <cr056n@att.com> | 2017-10-16 13:37:05 -0700 |
---|---|---|
committer | Temoc Rodriguez <cr056n@att.com> | 2017-10-17 12:44:36 -0700 |
commit | b715f669284012b1d25c183e73b550c4648abd1a (patch) | |
tree | 35ad4ae4968c70848d70b071ec5577059ab44174 /controlloop/common/eventmanager/src/main/resources | |
parent | d5066ba5c2d15bcc9bf00b9a52a1ce54a43449af (diff) |
Fix operation history DB properties for Junits
Removed operation_history.properties / operations-history.properties.
Changed the properties in persistence.xml
so that it uses the correct values. Previously junit would never write
to db because the "guard.disabled" property was not set. Set this property.
Additionally the operationshistory10 table was trying to be created even
though it exists. These values work in junit code. Not tested on
rackspace yet.
Issue-ID: POLICY-345
Change-Id: Id755b3152ae6ac4991ea9c314154592ea0105070
Signed-off-by: Temoc Rodriguez <cr056n@att.com>
Diffstat (limited to 'controlloop/common/eventmanager/src/main/resources')
-rw-r--r-- | controlloop/common/eventmanager/src/main/resources/META-INF/persistence.xml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/controlloop/common/eventmanager/src/main/resources/META-INF/persistence.xml b/controlloop/common/eventmanager/src/main/resources/META-INF/persistence.xml index 827e2562b..9af545592 100644 --- a/controlloop/common/eventmanager/src/main/resources/META-INF/persistence.xml +++ b/controlloop/common/eventmanager/src/main/resources/META-INF/persistence.xml @@ -9,10 +9,9 @@ <!-- <jar-file>packedEntity.jar</jar-file> --> <class>org.onap.policy.controlloop.eventmanager.OperationsHistoryDbEntry</class> <properties> - <property name="eclipselink.ddl-generation" value="create-tables" /> + <property name="eclipselink.ddl-generation" value="create-or-extend-tables" /> <property name="javax.persistence.jdbc.driver" value="org.mariadb.jdbc.Driver" /> <property name="eclipselink.logging.level" value="WARNING" /> - <!-- Credential and URL properties located in /guard/src/main/resources/operation_history.properties --> </properties> </persistence-unit> </persistence> |