Make type and type_version mandatory on policies 56/107256/1
authorliamfallon <liam.fallon@est.tech>
Wed, 6 May 2020 16:02:23 +0000 (17:02 +0100)
committerliamfallon <liam.fallon@est.tech>
Wed, 6 May 2020 16:02:27 +0000 (17:02 +0100)
commitf4ca53652d2db9624e1f267bee5b511600ff0e5d
treef74d5536f3bd8235b8d637c16ba5ce155a1e9fb0
parentd4f82c0db1d9686861792c6785a42acbd8c5dc6c
Make type and type_version mandatory on policies

Up until now, the "type" and "type_version" fields defaulted to "NULL"
and "0.0.0" respectively when they were not specified because the
"type_version" field was not always specified on policies in previous
releases. In cases where the "type_version" field was not specified, it
was assumend that a "0.0.0" version of the policy type existed. In
parallel, if the version field was not specified on the policy type, the
version was stored as 0.0.0.

This behaviour is now changed and the "type" and "type_version" fields
are now always mandatory.

Issue-ID: POLICY-2538
Change-Id: Ieec97f4a111edd13dbe31116c7549f07c19ef0aa
Signed-off-by: liamfallon <liam.fallon@est.tech>
main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java
main/src/test/java/org/onap/policy/api/main/rest/provider/TestPolicyProvider.java