From f478ff5df4713f2c14d2bb21ddf5662f13f923fe Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Fri, 27 Oct 2017 14:39:58 +0530 Subject: Samples for ems-register CLI-57 Change-Id: I4f0926d5b84f4a52d5d7b73b27e284c1056424d6 Signed-off-by: Kanagaraj Manickam k00365106 --- .../esr/ems/ems-create-sample-1.1.yaml | 8 ----- .../esr/ems/ems-create-schema-1.1-moco.json | 42 ++++++++++++++++++++++ .../esr/ems/ems-create-schema-1.1-sample.yaml | 9 +++++ 3 files changed, 51 insertions(+), 8 deletions(-) delete mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-moco.json create mode 100644 plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-sample.yaml (limited to 'plugins') diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml deleted file mode 100644 index 2856ba62..00000000 --- a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-sample-1.1.yaml +++ /dev/null @@ -1,8 +0,0 @@ -onap_cli_sample_version: 1.0 - -name: ems-register -version: onap-1.1 -samples: - sample1: - name: Create a ems - input: -z f962fa1e-d439-4b02-a122-cc38fd0da07c -b ems-1 -c OpenStack -e HW -q 1.0 -g http://locahost -i user -j password -x remote-path -d diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-moco.json new file mode 100644 index 00000000..d14653f6 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-moco.json @@ -0,0 +1,42 @@ +[ { + "request" : { + "method" : "put", + "uri" : "/aai/v11/external-system/esr-ems-list/esr-ems/51a480ed-649c-4c47-a84b-f966dc4f9554", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "X-TransactionId" : "req-8552f11b-5e79-4d98-9e05-ccc4e66c42c0", + "Content-Type" : "application/json" + }, + "json" : { + "ems-id" : "51a480ed-649c-4c47-a84b-f966dc4f9554", + "passive" : true, + "remote-path" : "sample", + "esr-system-info-list" : { + "esr-system-info" : [ { + "esr-system-info-id" : "51a480ed-649c-4c47-a84b-f966dc4f9554", + "system-name" : "ems1", + "type" : "ems", + "vendor" : "boco", + "version" : "1.0", + "service-url" : "http://10.0.0.1", + "user-name" : "admin", + "password" : "password", + "system-type" : "ems", + "protocal" : "", + "ssl-cacert" : "", + "ssl-insecure" : "", + "ip-address" : "", + "port" : "", + "cloud-domain" : "", + "default-tenant" : "" + } ] + } + } + }, + "response" : { + "status" : 201, + "json" : null + } +} ] \ No newline at end of file diff --git a/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-sample.yaml new file mode 100644 index 00000000..f0306caf --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/esr/ems/ems-create-schema-1.1-sample.yaml @@ -0,0 +1,9 @@ +onap_cli_sample_version: 1.0 +name: ems-register +version: onap-1.1 +samples: + sample1: + name: ems-register + input: --name ems1 --type ems --vendor boco --ems-version 1.0 --url http://10.0.0.1 --username admin --password password --remote-path sample + moco: ems-create-schema-1.1-moco.json + ouput: \ No newline at end of file -- cgit 1.2.3-korg