aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-elalto/features/so
diff options
context:
space:
mode:
authorItohan <itohan.ukponmwan@intel.com>2019-09-30 23:39:44 +0000
committerItohan <itohan.ukponmwan@intel.com>2019-10-01 17:42:35 +0000
commita52f00e9d0af1181d3e9c87508789fb4ced022f5 (patch)
treedfb05a7683f0cecf86783d0623dbcf1b85ade70d /products/onap-elalto/features/so
parent1d4b83754009114523cae90c759daffa9188eb3e (diff)
Minor bug fixes in CLI
- Added USER_ID header for SDC - Changed multicloud url - Added samples for commands - Fixed Bug in service-create command Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com> Issue-ID: CLI-229 Change-Id: I9ec94d6dd390d2b5bf059c2f8a82c67b65fbeb34
Diffstat (limited to 'products/onap-elalto/features/so')
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-sample/service-create-schema-elalto-moco.json72
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-sample/service-create-schema-elalto-sample.yaml14
-rw-r--r--products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-create-schema-elalto.yaml3
3 files changed, 89 insertions, 0 deletions
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-sample/service-create-schema-elalto-moco.json b/products/onap-elalto/features/so/src/main/resources/open-cli-sample/service-create-schema-elalto-moco.json
new file mode 100644
index 00000000..1d87b02e
--- /dev/null
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-sample/service-create-schema-elalto-moco.json
@@ -0,0 +1,72 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/onap/so/infra/serviceInstantiation/v7/serviceInstances",
+ "headers" : {
+ "Authorization" : "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "4ae21be0-1766-482c-9462-3ef31328b969",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "requestDetails" : {
+ "modelInfo" : {
+ "modelType" : "service",
+ "modelInvariantId" : "51e3401d-2924-40e7-827f-ca7ec567e5de",
+ "modelUuid" : "a9031c62-bb9e-4db4-bee0-691768ed94f4",
+ "modelName" : "vfw-hpa-01",
+ "modelVersion" : "1.0",
+ "modelVersionId" : "a9031c62-bb9e-4db4-bee0-691768ed94f4",
+ "modelInvariantUuid" : "51e3401d-2924-40e7-827f-ca7ec567e5de"
+ },
+ "subscriberInfo" : {
+ "globalSubscriberId" : "hpa_cust",
+ "subscriberName" : "hpa_cust"
+ },
+ "requestInfo" : {
+ "requestorId" : "demo",
+ "instanceName" : "hpa-instance-vFW",
+ "source" : "CLI",
+ "suppressRollback" : "false"
+ },
+ "requestParameters" : {
+ "subscriptionServiceType" : "vFW",
+ "aLaCarte" : "True",
+ "testApi" : "VNF_API",
+ "userParams" : [ {
+ "name" : "Customer_Location",
+ "value" : {
+ "customerLatitude" : "32.897480",
+ "customerLongitude" : "97.040443",
+ "customerName" : "some_company"
+ }
+ }, {
+ "name" : "Homing_Solution",
+ "value" : "oof"
+ }, {
+ "name" : "orchestrator",
+ "value" : "multicloud"
+ } ]
+ },
+ "project" : {
+ "projectName" : "Project-Demonstration"
+ },
+ "owningEntity" : {
+ "owningEntityId" : "98d5c337-ccd0-49d7-87b6-14b9a33d4c8a",
+ "owningEntityName" : "OE-Demonstration"
+ }
+ }
+ }
+ },
+ "response" : {
+ "status" : 202,
+ "json" : {
+ "requestReferences" : {
+ "requestId" : "4ae21be0-1766-482c-9462-3ef31328b969",
+ "instanceId" : "d7fd79c9-d0df-4f2f-a3b1-a9361304a991",
+ "requestSelfLink" : "http://10.12.5.110:30277/orchestrationRequests/v7/4ae21be0-1766-482c-9462-3ef31328b969"
+ }
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-sample/service-create-schema-elalto-sample.yaml b/products/onap-elalto/features/so/src/main/resources/open-cli-sample/service-create-schema-elalto-sample.yaml
new file mode 100644
index 00000000..6b4e114f
--- /dev/null
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-sample/service-create-schema-elalto-sample.yaml
@@ -0,0 +1,14 @@
+open_cli_sample_version: 1.0
+name: service-create
+version: onap-elalto
+samples:
+ sample1:
+ name: service-create
+ input: -w vFW -la 32.897480 -lo 97.040443 -o multicloud -A True -i vfw-hpa-01 -y some_company -x Project-Demonstration -q demo -O OE-Demonstration -k hpa-instance-vFW -P VNF_API -H oof -n a9031c62-bb9e-4db4-bee0-691768ed94f4 -e 51e3401d-2924-40e7-827f-ca7ec567e5de -j 1.0 -S hpa_cust -g a9031c62-bb9e-4db4-bee0-691768ed94f4 -z 98d5c337-ccd0-49d7-87b6-14b9a33d4c8a -c hpa_cust -u InfraPortalClient -p password1$ -m http://10.12.5.110:30277 --debug
+ moco: service-create-schema-elalto-moco.json
+ output: |
+ +------------+--------------------------------------+
+ |property |value |
+ +------------+--------------------------------------+
+ |service-id |d7fd79c9-d0df-4f2f-a3b1-a9361304a991 |
+ +------------+--------------------------------------+
diff --git a/products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-create-schema-elalto.yaml b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-create-schema-elalto.yaml
index 0755729d..bd86ad53 100644
--- a/products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-create-schema-elalto.yaml
+++ b/products/onap-elalto/features/so/src/main/resources/open-cli-schema/service-create-schema-elalto.yaml
@@ -167,6 +167,9 @@ http:
request:
uri: /onap/so/infra/serviceInstantiation/v7/serviceInstances
method: POST
+ headers:
+ X-TransactionId: $s{uuid}
+
body: '{
"requestDetails":{
"modelInfo":{