diff options
3 files changed, 30 insertions, 8 deletions
diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-sample-1.1.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-sample-1.1.yaml deleted file mode 100644 index a9d01569..00000000 --- a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-sample-1.1.yaml +++ /dev/null @@ -1,8 +0,0 @@ -onap_cli_sample_version: 1.0 - -name: service-type-create -version: onap-1.1 -samples: - sample1: - name: Create a service type - input: -h https://locahost:8443 -u AAI -p AAI -x vTest -y 26ab7af6-96cc-4c4e-814a-e533af4ef9f6 diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-moco.json b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-moco.json new file mode 100644 index 00000000..5e54f153 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-moco.json @@ -0,0 +1,21 @@ +[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v11/service-design-and-creation/services/service/de1fa33f-f676-42e5-b79a-a39825c19b1d",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-db81a881-11a9-4eca-9611-e0abdfa81597",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "service-description" : "test",
+ "service-id" : "de1fa33f-f676-42e5-b79a-a39825c19b1d"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ]
\ No newline at end of file diff --git a/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-sample.yaml b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-sample.yaml new file mode 100644 index 00000000..0e5d5374 --- /dev/null +++ b/plugins/aai/src/test/resources/onap-cli-sample/service-type/service-type-create-schema-1.1-sample.yaml @@ -0,0 +1,9 @@ +onap_cli_sample_version: 1.0 +name: service-type-create +version: onap-1.1 +samples: + sample1: + name: service-type-create + input: --service-type test + moco: service-type-create-schema-1.1-moco.json + ouput: |