summaryrefslogtreecommitdiffstats
path: root/vnftest/onap/lifecycle/create_customer.yaml
diff options
context:
space:
mode:
authorChris Donley <christopher.donley@huawei.com>2018-05-30 19:55:33 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-30 19:55:33 +0000
commite65155cab8d6d74989f1dd0bd1a493e1c91a30d9 (patch)
tree9112d60bee675751d2bfe0e029929ec8960f49cc /vnftest/onap/lifecycle/create_customer.yaml
parentbfb67b927b59525028420e4477b1310fb6a69335 (diff)
parent82aeca18c66dc4c312a57f24ed3c4c33a2063070 (diff)
Merge "Refactor api definition yamls to support jinja2"
Diffstat (limited to 'vnftest/onap/lifecycle/create_customer.yaml')
-rw-r--r--vnftest/onap/lifecycle/create_customer.yaml67
1 files changed, 31 insertions, 36 deletions
diff --git a/vnftest/onap/lifecycle/create_customer.yaml b/vnftest/onap/lifecycle/create_customer.yaml
index 97327ba..e950eb4 100644
--- a/vnftest/onap/lifecycle/create_customer.yaml
+++ b/vnftest/onap/lifecycle/create_customer.yaml
@@ -13,39 +13,34 @@
##############################################################################
---
-method: "PUT"
-url: "http://{aai_ip}:30232/aai/v8/business/customers/customer/{customer_name}"
-headers: {
- "Content-Type": "application/json",
- "Accept": "application/json",
- "Authorization": "Basic QUFJOkFBSQ==",
- "X-FromAppId": "AAI",
- "X-TransactionId": "get_aai_subscr"
- }
-body: {
- "global-customer-id": "{customer_name}",
- "service-subscriptions": {
- "service-subscription": [{
- "relationship-list": {
- "relationship": [{
- "related-to": "tenant",
- "relationship-data": [{
- "relationship-key": "cloud-region.cloud-owner",
- "relationship-value": "{cloud_owner}"
- },
- {
- "relationship-key": "cloud-region.cloud-region-id",
- "relationship-value": "RegionOne"
- },
- {
- "relationship-key": "tenant.tenant-id",
- "relationship-value": "{tenant_id}"
- }]
- }]
- },
- "service-type": "vFW"
- }]
- },
- "subscriber-name": "{customer_name}",
- "subscriber-type": "INFRA"
- }
+method: PUT
+url: http://{{aai_ip}}:30232/aai/v8/business/customers/customer/{{customer_name}}
+headers:
+ Content-Type: application/json
+ Accept: application/json
+ Authorization: Basic QUFJOkFBSQ==
+ X-FromAppId: AAI
+ X-TransactionId: get_aai_subscr
+
+body:
+ global-customer-id: {{customer_name}}
+ service-subscriptions:
+ service-subscription:
+ -
+ service-type: vFW
+ relationship-list:
+ relationship:
+ -
+ related-to: tenant
+ relationship-data:
+ -
+ relationship-key: cloud-region.cloud-owner
+ relationship-value: {{cloud_owner}}
+ -
+ relationship-key: cloud-region.cloud-region-id
+ relationship-value: RegionOne
+ -
+ relationship-key: tenant.tenant-id
+ relationship-value: {{tenant_id}}
+ subscriber-name: {{customer_name}}
+ subscriber-type: INFRA