adding public_ip field to json data for addressmanagerserviceinstance tests
Change-Id: I8bb0fc7b8f45e0f6d4ba0dfbf048b80a8ce74ada
diff --git a/src/test/cord-api/Tests/targets/xoslibrary.xtarget b/src/test/cord-api/Tests/targets/xoslibrary.xtarget
index ab5a15f..3b79207 100644
--- a/src/test/cord-api/Tests/targets/xoslibrary.xtarget
+++ b/src/test/cord-api/Tests/targets/xoslibrary.xtarget
@@ -127,6 +127,10 @@
CORD Post /xosapi/v1/hippie-oss/hippieossservices {"name": "testhippieservice"}
${json_{{ m.name | lower}}_1}= Set Json Value ${json_{{ m.name | lower }}_1} /owner_id ${id}
{% endif %}
+ {% if m.name == "AddressManagerServiceInstance" -%}
+ ${json_{{ m.name | lower}}_1}= Set Json Value ${json_{{ m.name | lower }}_1} /public_ip "2.2.2.2"
+ ${json_{{ m.name | lower}}_updated_1}= Set Json Value ${json_{{ m.name | lower }}_updated_1} /public_ip "3.3.3.3"
+ {% endif %}
${json_{{ m.name | lower }}_1}= To JSON ${json_{{ m.name | lower }}_1}
${json_{{ m.name | lower }}_updated_1}= To JSON ${json_{{ m.name | lower }}_updated_1}
Set Suite Variable ${json_{{ m.name | lower }}_1}