CORD-2793 Add owner service for e-cord subscribers

Change-Id: Ic5d30ef56149a60ff38674c29bca8e5c224c1361
diff --git a/templates/ecord-services.yaml.j2 b/templates/ecord-services.yaml.j2
index fad4bde..5fc5e6b 100644
--- a/templates/ecord-services.yaml.j2
+++ b/templates/ecord-services.yaml.j2
@@ -29,6 +29,7 @@
   - custom_types/nodelabel.yaml
   - custom_types/onosapp.yaml
   - custom_types/onosservice.yaml
+  - custom_types/service.yaml
   - custom_types/servicedependency.yaml
   - custom_types/serviceinstanceattribute.yaml
   - custom_types/serviceinstancelink.yaml
@@ -59,6 +60,12 @@
         must-exist: true
         name: management
 
+# service that holds ecord subscribers
+    service#ecord:
+      type: tosca.nodes.Service
+      properties:
+        name: ecord
+
 {% if use_vtn_net_management_host %}
     management_host:
       type: tosca.nodes.Network
diff --git a/test/roles/test-ecord-local-subscriber/templates/test-ecord-local-subscriber.yaml.j2 b/test/roles/test-ecord-local-subscriber/templates/test-ecord-local-subscriber.yaml.j2
index 7ffc11d..93fa809 100644
--- a/test/roles/test-ecord-local-subscriber/templates/test-ecord-local-subscriber.yaml.j2
+++ b/test/roles/test-ecord-local-subscriber/templates/test-ecord-local-subscriber.yaml.j2
@@ -23,6 +23,7 @@
    - custom_types/site.yaml
    - custom_types/slice.yaml
    - custom_types/user.yaml
+   - custom_types/service.yaml
    - custom_types/serviceinstance.yaml
    - custom_types/serviceinstancelink.yaml
    - custom_types/vegservice.yaml
@@ -60,6 +61,12 @@
         name: veg
         must-exist: true
 
+    service#ecord:
+      type: tosca.nodes.Service
+      properties:
+        name: ecord
+        must-exist: true
+
 # Test subscriber
 
     # Let's add a user who can be administrator of the household
@@ -82,6 +89,11 @@
       properties:
         name: my_enterprise
         service_specific_id: "123"
+      requirements:
+        - owner:
+            node: service#ecord
+            relationship: tosca.relationships.BelongsToOne
+
 
     my_vEG:
       type: tosca.nodes.VEGTenant