diff options
author | Kevin McKiou <km097d@att.com> | 2017-09-22 17:08:15 -0500 |
---|---|---|
committer | Kevin McKiou <km097d@att.com> | 2017-09-25 12:23:16 -0500 |
commit | 2b2d21fd2761ceab9faa50f224b1d136f3b36d34 (patch) | |
tree | c3cd90cebdcfb7e928c9ae739575623ae60f589a /feature-state-management/src/test/resources | |
parent | fbed3c9c7b816b9fa4dd96dc218a0603b1d1c544 (diff) |
Incr State Mgmt Code Coverage
Patch 1: Added JUnit tests to feature-state-management
to increase coverage. Estimated coverage is now 48%.
Patch 2: Trivial change to force a rebuild. Patch 3:
Tweaking the JUnit to try and account for the difference
between the LF environment and my local environment.
Patch 4: Something caused the policy endpoints JUnits
to fail - unrelated to these changes. Made a trival
change to force a rebuild. Patch 5: Trivial change to
force rebuild. Patch 6: Minor changes in response to
Jorge Hernandez comments.
Issue-ID; POLICY-266
Change-Id: I7979c200ab18d5861ba20e0d5f23bd0083193daa
Signed-off-by: Kevin McKiou <km097d@att.com>
Diffstat (limited to 'feature-state-management/src/test/resources')
-rw-r--r-- | feature-state-management/src/test/resources/META-INF/persistence.xml | 1 | ||||
-rw-r--r-- | feature-state-management/src/test/resources/feature-state-management.properties | 14 |
2 files changed, 11 insertions, 4 deletions
diff --git a/feature-state-management/src/test/resources/META-INF/persistence.xml b/feature-state-management/src/test/resources/META-INF/persistence.xml index d26ab443..0214b7f5 100644 --- a/feature-state-management/src/test/resources/META-INF/persistence.xml +++ b/feature-state-management/src/test/resources/META-INF/persistence.xml @@ -28,6 +28,7 @@ <class>org.onap.policy.common.im.jpa.StateManagementEntity</class> <class>org.onap.policy.common.im.jpa.ForwardProgressEntity</class> <class>org.onap.policy.common.im.jpa.ResourceRegistrationEntity</class> + <class>org.onap.policy.drools.statemanagement.test.Audit</class> <properties> <property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/> <property name="javax.persistence.schema-generation.scripts.action" value="drop-and-create"/> diff --git a/feature-state-management/src/test/resources/feature-state-management.properties b/feature-state-management/src/test/resources/feature-state-management.properties index 7b4a697e..64c7c660 100644 --- a/feature-state-management/src/test/resources/feature-state-management.properties +++ b/feature-state-management/src/test/resources/feature-state-management.properties @@ -56,19 +56,25 @@ max_fpc_update_interval=120 # forwardprogressentity table and marks the node as disabled/failed in the statemanagemententity # table. NOTE! It will only run on nodes that have a standbystatus = providingservice. # A value of <= 0 will turn off the state audit. -state_audit_interval_ms=60000 +state_audit_interval_ms=-1000 # The refresh state audit is run every (default) 10 minutes (600000 ms) to clean up any state corruption in the # DB statemanagemententity table. It only refreshes the DB state entry for the local node. That is, it does not # refresh the state of any other nodes. A value <= 0 will turn the audit off. Any other value will override # the default of 600000 ms. -refresh_state_audit_interval_ms=600000 +refresh_state_audit_interval_ms=-1000 # Repository audit properties # Flag to control the execution of the subsystemTest for the Nexus Maven repository -repository.audit.is.active=false +repository.audit.is.active=true repository.audit.ignore.errors=true +# Timeout in seconds +repository.audit.timeout=5 +repository.audit.id=statemanagement +repository.audit.url=jdbc:h2:file:./sql/statemanagement +repository.audit.username=sa +repository.audit.password= # DB Audit Properties # Flag to control the execution of the subsystemTest for the Database -db.audit.is.active=false +db.audit.is.active=true |