diff options
Diffstat (limited to 'src')
4 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/onap/clamp/policy/operational/OperationalPolicyRepresentationBuilder.java b/src/main/java/org/onap/clamp/policy/operational/OperationalPolicyRepresentationBuilder.java index 5f6cb31b..ee403065 100644 --- a/src/main/java/org/onap/clamp/policy/operational/OperationalPolicyRepresentationBuilder.java +++ b/src/main/java/org/onap/clamp/policy/operational/OperationalPolicyRepresentationBuilder.java @@ -130,7 +130,7 @@ public class OperationalPolicyRepresentationBuilder { properties.add(TYPE, createSchemaProperty("Type", STRING, "VNF", "True", null)); } properties.add("resourceID", createSchemaProperty("Resource ID", STRING, - modelVnfs.get(entry.getKey()).getAsJsonObject().get("name").getAsString(), "True", null)); + modelVnfs.get(entry.getKey()).getAsJsonObject().get("invariantUUID").getAsString(), "True", null)); vnfOneOfSchema.add(PROPERTIES, properties); vnfSchemaArray.add(vnfOneOfSchema); diff --git a/src/test/resources/tosca/new-converter/tosca_apex_with_metadata.json b/src/test/resources/tosca/new-converter/tosca_apex_with_metadata.json index e03e48fc..f6713aff 100644 --- a/src/test/resources/tosca/new-converter/tosca_apex_with_metadata.json +++ b/src/test/resources/tosca/new-converter/tosca_apex_with_metadata.json @@ -267,7 +267,7 @@ "resourceID": { "title": "Resource ID", "type": "string", - "default": "vLoadBalancerMS", + "default": "1a31b9f2-e50d-43b7-89b3-a040250cf506", "readOnly": "True" } } diff --git a/src/test/resources/tosca/operational-policy-cds-payload-with-list.json b/src/test/resources/tosca/operational-policy-cds-payload-with-list.json index 190636c4..9a9308e3 100644 --- a/src/test/resources/tosca/operational-policy-cds-payload-with-list.json +++ b/src/test/resources/tosca/operational-policy-cds-payload-with-list.json @@ -386,7 +386,7 @@ "resourceID": { "title": "Resource ID", "type": "string", - "default": "vLoadBalancerMS", + "default": "1a31b9f2-e50d-43b7-89b3-a040250cf506", "readOnly": "True" } } diff --git a/src/test/resources/tosca/operational-policy-json-schema.json b/src/test/resources/tosca/operational-policy-json-schema.json index 32adce9b..e8363b46 100644 --- a/src/test/resources/tosca/operational-policy-json-schema.json +++ b/src/test/resources/tosca/operational-policy-json-schema.json @@ -744,7 +744,7 @@ "resourceID": { "title": "Resource ID", "type": "string", - "default": "vLoadBalancerMS", + "default": "1a31b9f2-e50d-43b7-89b3-a040250cf506", "readOnly": "True" } } |