Add persistence test for all policy examples 97/83297/2
authorliamfallon <liam.fallon@est.tech>
Tue, 26 Mar 2019 15:42:42 +0000 (15:42 +0000)
committerliamfallon <liam.fallon@est.tech>
Tue, 26 Mar 2019 15:42:42 +0000 (15:42 +0000)
commit28eb9406c035f73baa99f585fc576ad2b0a2b81b
tree30c80a60511dda49141153d17b5e040871cf7dfb
parent2c5a396554a34cddc2f43d98c72665d5b1496f85
Add persistence test for all policy examples

The test checks the TOSCA policy examples and ensures they can be
persisted and read back from persistence.

Test against the expected outcome will be added in later reviews.
Tests for legacy and PDP-A policies willbe added in later reviews.

Issue-ID: POLICY-1095
Change-Id: Ie06bbd477ff63618f126b01c9ab49bfc45b19ae9
Signed-off-by: liamfallon <liam.fallon@est.tech>
models-examples/src/main/resources/policies/vDNS.policy.monitoring.input.tosca.json
models-examples/src/main/resources/policies/vFirewall.policy.monitoring.input.tosca.json
models-provider/src/test/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderTest.java
models-provider/src/test/java/org/onap/policy/models/provider/impl/MonitoringPolicyPersistenceTest.java [deleted file]
models-provider/src/test/java/org/onap/policy/models/provider/impl/PolicyPersistenceTest.java [new file with mode: 0644]
models-tosca/src/main/java/org/onap/policy/models/tosca/simple/concepts/ToscaProperty.java
models-tosca/src/main/java/org/onap/policy/models/tosca/simple/serialization/ToscaServiceTemplateJsonAdapter.java
models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/concepts/TestPojos.java
models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/mapping/PlainToscaServiceTemplateMapperTest.java
models-tosca/src/test/java/org/onap/policy/models/tosca/simple/serialization/MonitoringPolicySerializationTest.java