adding contraints field to api tests
Change-Id: I3d3a040b3f16ae93b49b8ac07bb4474793609378
diff --git a/src/test/cord-api/Tests/targets/xosapitests.xtarget b/src/test/cord-api/Tests/targets/xosapitests.xtarget
index 1e4121e..e056858 100644
--- a/src/test/cord-api/Tests/targets/xosapitests.xtarget
+++ b/src/test/cord-api/Tests/targets/xosapitests.xtarget
@@ -143,6 +143,10 @@
${json_{{ m.name | lower}}_flavor_tmp}= Set Variable m1.small
${json_{{ m.name | lower}}_1}= Set Json Value ${json_{{ m.name | lower }}_1} /flavor "${json_{{ m.name | lower }}_flavor_tmp}"
{% endif %}
+ {% if m.name == "ServiceGraphConstraint" -%}
+ ${json_{{ m.name | lower}}_constraints_tmp}= Generate Random Value string
+ ${json_{{ m.name | lower}}_1}= Set Json Value ${json_{{ m.name | lower }}_1} /constraints "${json_{{ m.name | lower }}_constraints_tmp}"
+ {% endif %}
{% if m.name == "Slice" -%}
${json_{{ m.name | lower}}_name}= Generate Random Slice Name
${json_{{ m.name | lower}}_1}= Set Json Value ${json_{{ m.name | lower }}_1} /name "${json_{{ m.name | lower }}_name}"
@@ -206,6 +210,10 @@
${json_{{ m.name | lower}}_flavor_tmp}= Set Variable m1.small
${json_{{ m.name | lower}}_tmp}= Set Json Value ${json_{{ m.name | lower }}_tmp} /flavor "${json_{{ m.name | lower }}_flavor_tmp}"
{% endif %}
+ {% if m.name == "ServiceGraphConstraint" -%}
+ ${json_{{ m.name | lower}}_contraints_tmp}= Generate Random Value string
+ ${json_{{ m.name | lower}}_tmp}= Set Json Value ${json_{{ m.name | lower }}_tmp} /contraints "${json_{{ m.name | lower }}_contraints_tmp}"
+ {% endif %}
{% if m.name == "Slice" -%}
${json_{{ m.name | lower}}_name}= Generate Random Slice Name
${json_{{ m.name | lower}}_tmp}= Set Json Value ${json_{{ m.name | lower }}_tmp} /name "${json_{{ m.name | lower }}_name}"