aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-tosca-lib/src/test/java
diff options
context:
space:
mode:
authoraribeiro <anderson.ribeiro@est.tech>2019-09-26 13:20:28 +0100
committerOren Kleks <oren.kleks@amdocs.com>2019-10-29 14:15:57 +0000
commitc42c9f75adb72f80e57694b5bf67db7c94f33a89 (patch)
treef5e16e64400af3f795061dceb02fee8522ed4245 /openecomp-be/lib/openecomp-tosca-lib/src/test/java
parent145e960db3614cf499aa0be0dbb4f19b3ba3183e (diff)
Fix for status properties value.
These changes were made to align the normative types to the TOSCA property definition requirements. Issue-ID: SDC-322 Change-Id: I32e815dd26990dd6c82c859ad051b271db3c8029 Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Diffstat (limited to 'openecomp-be/lib/openecomp-tosca-lib/src/test/java')
-rw-r--r--openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityDefinitionTest.java4
-rw-r--r--openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImplTest.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityDefinitionTest.java b/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityDefinitionTest.java
index 314e071c9e..1e3024d950 100644
--- a/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityDefinitionTest.java
+++ b/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/datatypes/model/CapabilityDefinitionTest.java
@@ -75,7 +75,7 @@ public class CapabilityDefinitionTest {
propertyDefinition.set_default(5);
propertyDefinition.setEntry_schema(getMockEntrySchema());
propertyDefinition.setRequired(false);
- propertyDefinition.setStatus(Status.UNSUPPORTED);
+ propertyDefinition.setStatus(Status.UNSUPPORTED.getName());
return propertyDefinition;
}
@@ -102,7 +102,7 @@ public class CapabilityDefinitionTest {
attributeDefinition.setType("type1");
attributeDefinition.set_default("none");
attributeDefinition.setEntry_schema(getMockEntrySchema());
- attributeDefinition.setStatus(Status.UNSUPPORTED);
+ attributeDefinition.setStatus(Status.UNSUPPORTED.getName());
return attributeDefinition;
}
diff --git a/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImplTest.java b/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImplTest.java
index f8e6759555..7dca84bd40 100644
--- a/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImplTest.java
+++ b/openecomp-be/lib/openecomp-tosca-lib/src/test/java/org/openecomp/sdc/tosca/services/impl/ToscaAnalyzerServiceImplTest.java
@@ -1099,10 +1099,10 @@ public class ToscaAnalyzerServiceImplTest {
parameterDefinitionInput.setRequired(true);
parameterDefinitionInput.set_default("default");
parameterDefinitionInput.setConstraints(Collections.singletonList(new Constraint()));
- parameterDefinitionInput.setStatus(Status.SUPPORTED);
+ parameterDefinitionInput.setStatus(Status.SUPPORTED.getName());
ParameterDefinition parameterDefinitionOutput = new ParameterDefinition();
- parameterDefinitionOutput.setStatus(Status.SUPPORTED);
+ parameterDefinitionOutput.setStatus(Status.SUPPORTED.getName());
ServiceTemplate serviceTemplate = new ServiceTemplate();
serviceTemplate.setTopology_template(new TopologyTemplate());