requiring custom rcord service for rcordsubscriber creation
Change-Id: Ib108e62f37c6c3c70ff0f01e33219899895cc007
diff --git a/src/test/cord-api/Tests/targets/xoslibrary.xtarget b/src/test/cord-api/Tests/targets/xoslibrary.xtarget
index f052731..6c1d35c 100644
--- a/src/test/cord-api/Tests/targets/xoslibrary.xtarget
+++ b/src/test/cord-api/Tests/targets/xoslibrary.xtarget
@@ -140,9 +140,10 @@
${json_{{ m.name | lower}}_amend_1}= Set Json Value ${json_{{ m.name | lower }}_amend_1} /CellIndividualOffset "1"
{% endif %}
{% if m.name == "RCORDSubscriber" -%}
- ## Create req service owner for rcord subscriber
+ ## Create req service owner for rcord subscriber and
CORD Post /xosapi/v1/rcord/rcordservices {"name": "testrcordservice", "access": "unknown"}
${json_{{ m.name | lower}}_1}= Set Json Value ${json_{{ m.name | lower }}_1} /owner_id ${id}
+ ${rcord_tmp_service_id}= Set Suite Variable ${id}
{% endif %}
{% if m.name == "HippieOSSServiceInstance" -%}
## Create req service owner for hippie oss service instance
@@ -224,6 +225,9 @@
{% if m.name == "Network" -%}
${json_{{ m.name | lower}}_tmp}= Set Json Value ${json_{{ m.name | lower }}_tmp} /permit_all_slices true
{% endif %}
+ {% if m.name == "RCORDSubscriber" -%}
+ ${json_{{ m.name | lower}}_tmp}= Set Json Value ${json_{{ m.name | lower }}_tmp} /owner_id ${rcord_tmp_service_id}
+ {% endif %}
${json_{{ m.name | lower}}_tmp}= Set Json Value ${json_{{ m.name | lower }}_tmp} /no_policy true
${json_{{ m.name | lower}}_tmp}= Set Json Value ${json_{{ m.name | lower }}_tmp} /no_sync true
${json_{{ m.name | lower }}_tmp}= To JSON ${json_{{ m.name | lower }}_tmp}