summaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 17:00:19 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 17:00:19 +0530
commitb517a8e211ef4db0c14842f239b10141c084bda5 (patch)
treec2d4dfccf1e0ea31c9e939c0c8791f09867bb33d /products/onap-dublin/features
parent0b97a9bcd5c125a272a44dca91a0da2eb22fe449 (diff)
location create samples
Change-Id: I72949705e5dd04f98550842278d24be673a7da9d Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin/features')
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json34
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml32
2 files changed, 27 insertions, 39 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json
index 350a02e0..3b4a94f5 100644
--- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-moco.json
@@ -1,31 +1,31 @@
[ {
"request" : {
"method" : "put",
- "uri" : "/aai/v14//aai/v14/cloud-infrastructure/complexes/complex/clli3",
+ "uri" : "/aai/v14/cloud-infrastructure/complexes/complex/ocomp-region",
"headers" : {
"Authorization" : "Basic QUFJOkFBSQ==",
"X-FromAppId" : "ONAP CLI",
"Accept" : "application/json",
- "X-TransactionId" : "req-f84bd111-614f-4f6e-9bea-f076a8b63810",
+ "X-TransactionId" : "req-230ff595-12b3-480a-86c4-f5e3b1f8d5b0",
"Content-Type" : "application/json"
},
"json" : {
- "physical-location-id" : "clli3",
- "data-center-code" : "code6",
- "complex-name" : "clli3",
- "identity-url" : "url",
+ "physical-location-id" : "ocomp-region",
+ "data-center-code" : "ocomp",
+ "complex-name" : "ocomp-region",
+ "identity-url" : "http://10.12.11.1:5000/v3",
"physical-location-type" : "phy_type",
- "street1" : "street1",
- "street2" : "street2",
- "city" : "HIlls",
- "state" : "CA",
- "postal-code" : "88888",
- "country" : "usa",
- "region" : "region_val",
- "latitude" : "10.2",
- "longitude" : "30.8",
- "elevation" : "elev",
- "lata" : "lata"
+ "street1" : "ocomp-street1",
+ "street2" : "ocomp-street2",
+ "city" : "ocomp-city",
+ "state" : "ocomp-state",
+ "postal-code" : "001481",
+ "country" : "abc",
+ "region" : "onap",
+ "latitude" : "1.0",
+ "longitude" : "1.0",
+ "elevation" : "ocomp-elelation",
+ "lata" : "ocomp-lata"
}
},
"response" : {
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml
index 044d5f6f..c748579b 100644
--- a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-dublin-sample.yaml
@@ -1,22 +1,10 @@
-# Copyright © Intel Corporation 2019
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
- open_cli_sample_version: 1.0
- name: complex-create
- version: onap-dublin
- samples:
- sample1:
- name: complex-create
- input: -j street2 -r phy_type -x clli3 -y code6 -lt 10.2 -l region_val -i street1 -lo 30.8 -S CA -la lata -g HIlls -w 88888 -z clli3 -k usa -o elev -q url
- moco: complex-create-schema-dublin-moco.json
- output: \ No newline at end of file
+open_cli_sample_version: 1.0
+name: complex-create
+version: onap-dublin
+samples:
+ sample1:
+ name: complex-create
+ input: --format json --city ocomp-city --data-center-code ocomp --street1 ocomp-street1 --street2 ocomp-street2 --physical-location-id ocomp-region --identity-url http://10.12.11.1:5000/v3 --lata ocomp-lata --elevation ocomp-elelation --state ocomp-state --physical-location-type phy_type --longitude 1.0 --country abc --latitude 1.0 --complex-name ocomp-region --postal-code 001481 --region onap
+ moco: complex-create-schema-dublin-moco.json
+ output: |
+ [{}]