diff options
author | ramverma <ram.krishna.verma@est.tech> | 2019-04-09 16:49:43 +0000 |
---|---|---|
committer | ramverma <ram.krishna.verma@est.tech> | 2019-04-09 16:49:43 +0000 |
commit | 63d40cdd0f11bf195163facdc6233a89dd8e89e9 (patch) | |
tree | 14ad383e213bf1d2ba0c076fc4ea0122fbae8101 /main/src/test/java | |
parent | 0510ea5ac447d2a348775fac5095cee956b34c55 (diff) |
Adding PdpGroup query & statechange providers
1) Adding implementation of PdpGroup Query & State change providers for
PAP REST API.
2) Adding support for unregistering Pdp after recieving TERMINATED state
in PdpStatus message.
3) Updating PdpStatusMessageHandler with new filter changes in models.
4) Removing updatePdpStatistics method as we will implement db provider
and REST provider in next release.
5) Fixing few bugs found during Pdp registration testing.
6) Updating the existing test cases to work.
7) Will be adding more exhaustive test cases in another review.
Change-Id: I7aa20bf422671fdc1e06dab5e90aef4ee19a6a02
Issue-ID: POLICY-1541
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Diffstat (limited to 'main/src/test/java')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java b/main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java index 38d8621e..7de63cc2 100644 --- a/main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java +++ b/main/src/test/java/org/onap/policy/pap/main/parameters/CommonTestData.java @@ -31,6 +31,7 @@ import org.onap.policy.common.utils.coder.Coder; import org.onap.policy.common.utils.coder.CoderException; import org.onap.policy.common.utils.coder.StandardCoder; import org.onap.policy.models.provider.PolicyModelsProviderParameters; +import org.onap.policy.models.provider.impl.DatabasePolicyModelsProviderImpl; /** * Class to hold/create all parameters for test cases. @@ -169,11 +170,11 @@ public class CommonTestData { public Map<String, Object> getPolicyModelsProviderParametersMap() { final Map<String, Object> map = new TreeMap<>(); map.put("name", PolicyModelsProviderParameters.class.getSimpleName()); - map.put("implementation", REST_SERVER_HTTPS); + map.put("implementation", DatabasePolicyModelsProviderImpl.class.getCanonicalName()); map.put("databaseUrl", "jdbc:h2:mem:testdb"); map.put("databaseUser", "policy"); map.put("databasePassword", Base64.getEncoder().encodeToString("P01icY".getBytes())); - map.put("persistenceUnit", "PdpGroupTest"); + map.put("persistenceUnit", "ToscaConceptTest"); return map; } |