diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-11-02 14:17:18 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-11-02 14:17:18 +0530 |
commit | d9a02d3c870e72755ad14bb717daa9ec236480ba (patch) | |
tree | 7f90fcfd50992d7cdd03c634916459d020484cf6 /plugins/sdc/src/test/resources/onap-cli-sample | |
parent | 22554d46acba7dfb26dff3e346af40b54e7bca1f (diff) |
Test VF model in SDC and cerify it
CLI-57
Change-Id: I71903c7d5cf5a6eb6ad531b7151d33b49b009b36
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/sdc/src/test/resources/onap-cli-sample')
6 files changed, 217 insertions, 0 deletions
diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-complete-schema-1.1-moco.json b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-complete-schema-1.1-moco.json new file mode 100644 index 00000000..48df97c4 --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-complete-schema-1.1-moco.json @@ -0,0 +1,64 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/sdc2/rest/v1/catalog/resources/66269482-0b27-40e3-9c4d-6a26fb67d9ff/lifecycleState/certify", + "headers" : { + "Authorization" : "Basic am0wMDA3OmRlbW8xMjM0NTYh", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "USER_ID" : "jm0007", + "X-TransactionId" : "req-73b3c203-84d7-4484-8d8e-7632856193dd", + "Content-Type" : "application/json" + }, + "json" : { + "userRemarks" : "Completing certification via CLI" + } + }, + "response" : { + "status" : 200, + "json" : { + "uniqueId" : "828be6cf-c11b-4759-ac37-b1b79f86a4b4", + "name" : "kanag-cli-VLB", + "version" : "1.0", + "isHighestVersion" : true, + "creationDate" : 1509603052084, + "lastUpdateDate" : 1509603385031, + "description" : "VF created from CLI", + "lifecycleState" : "CERTIFIED", + "tags" : [ "CLI", "kanag-cli-VLB" ], + "icon" : "defaulticon", + "normalizedName" : "kanagclivlb", + "systemName" : "KanagCliVlb", + "contactId" : "cs0008", + "allVersions" : { + "1.0" : "828be6cf-c11b-4759-ac37-b1b79f86a4b4" + }, + "csarUUID" : "f19cad8343794e93acb9cda2e4126281", + "csarVersion" : "2.0", + "importedToscaChecksum" : "NDQzNmIwOWE1NjQ2NjU2YTNkMWVmNzcxMTczMjRmNDE=", + "invariantUUID" : "2d455337-57eb-4edf-a8b9-9f87fd85bc0e", + "componentType" : "RESOURCE", + "categories" : [ { + "name" : "Generic", + "normalizedName" : "generic", + "uniqueId" : "resourceNewCategory.generic", + "subcategories" : [ { + "name" : "Abstract", + "normalizedName" : "abstract", + "uniqueId" : "resourceNewCategory.generic.abstract", + "icons" : [ "objectStorage", "compute" ] + } ] + } ], + "creatorUserId" : "jm0007", + "creatorFullName" : "Joni Mitchell", + "lastUpdaterUserId" : "jm0007", + "lastUpdaterFullName" : "Joni Mitchell", + "vendorName" : "Kanag-cli", + "vendorRelease" : "1.0", + "resourceVendorModelNumber" : "", + "resourceType" : "VF", + "toscaResourceName" : "org.openecomp.resource.vf.KanagCliVlb", + "uuid" : "46c89121-b37f-4192-8841-25c93165b843" + } + } +} ]
\ No newline at end of file diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-complete-schema-1.1-sample.yaml b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-complete-schema-1.1-sample.yaml new file mode 100644 index 00000000..d6655c18 --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-complete-schema-1.1-sample.yaml @@ -0,0 +1,9 @@ +onap_cli_sample_version: 1.0 +name: vf-model-certify-complete +version: onap-1.1 +samples: + sample1: + name: vf-model-certify-complete + input: --vf-id 66269482-0b27-40e3-9c4d-6a26fb67d9ff + moco: vf-model-certify-complete-schema-1.1-moco.json + ouput:
\ No newline at end of file diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-request-schema-1.1-moco.json b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-request-schema-1.1-moco.json new file mode 100644 index 00000000..5160e68f --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-request-schema-1.1-moco.json @@ -0,0 +1,64 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/sdc2/rest/v1/catalog/resources/66269482-0b27-40e3-9c4d-6a26fb67d9ff/lifecycleState/certificationRequest", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-bdb48dbf-757d-4ca0-afa6-e8cae0dc3a81", + "Content-Type" : "application/json" + }, + "json" : { + "userRemarks" : "Requesting certification via CLI" + } + }, + "response" : { + "status" : 200, + "json" : { + "uniqueId" : "66269482-0b27-40e3-9c4d-6a26fb67d9ff", + "name" : "kanag-cli-VLB", + "version" : "0.1", + "isHighestVersion" : true, + "creationDate" : 1509603052084, + "lastUpdateDate" : 1509603313829, + "description" : "VF created from CLI", + "lifecycleState" : "READY_FOR_CERTIFICATION", + "tags" : [ "CLI", "kanag-cli-VLB" ], + "icon" : "defaulticon", + "normalizedName" : "kanagclivlb", + "systemName" : "KanagCliVlb", + "contactId" : "cs0008", + "allVersions" : { + "0.1" : "66269482-0b27-40e3-9c4d-6a26fb67d9ff" + }, + "csarUUID" : "f19cad8343794e93acb9cda2e4126281", + "csarVersion" : "2.0", + "importedToscaChecksum" : "NDQzNmIwOWE1NjQ2NjU2YTNkMWVmNzcxMTczMjRmNDE=", + "invariantUUID" : "2d455337-57eb-4edf-a8b9-9f87fd85bc0e", + "componentType" : "RESOURCE", + "categories" : [ { + "name" : "Generic", + "normalizedName" : "generic", + "uniqueId" : "resourceNewCategory.generic", + "subcategories" : [ { + "name" : "Abstract", + "normalizedName" : "abstract", + "uniqueId" : "resourceNewCategory.generic.abstract", + "icons" : [ "objectStorage", "compute" ] + } ] + } ], + "creatorUserId" : "cs0008", + "creatorFullName" : "Carlos Santana", + "lastUpdaterUserId" : "cs0008", + "lastUpdaterFullName" : "Carlos Santana", + "vendorName" : "Kanag-cli", + "vendorRelease" : "1.0", + "resourceVendorModelNumber" : "", + "resourceType" : "VF", + "toscaResourceName" : "org.openecomp.resource.vf.KanagCliVlb", + "uuid" : "46c89121-b37f-4192-8841-25c93165b843" + } + } +} ]
\ No newline at end of file diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-request-schema-1.1-sample.yaml b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-request-schema-1.1-sample.yaml new file mode 100644 index 00000000..5c814047 --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-request-schema-1.1-sample.yaml @@ -0,0 +1,9 @@ +onap_cli_sample_version: 1.0 +name: vf-model-certify-request +version: onap-1.1 +samples: + sample1: + name: vf-model-certify-request + input: --vf-id 66269482-0b27-40e3-9c4d-6a26fb67d9ff + moco: vf-model-certify-request-schema-1.1-moco.json + ouput:
\ No newline at end of file diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-start-schema-1.1-moco.json b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-start-schema-1.1-moco.json new file mode 100644 index 00000000..e5332cb8 --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-start-schema-1.1-moco.json @@ -0,0 +1,62 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/sdc2/rest/v1/catalog/resources/66269482-0b27-40e3-9c4d-6a26fb67d9ff/lifecycleState/startCertification", + "headers" : { + "Authorization" : "Basic am0wMDA3OmRlbW8xMjM0NTYh", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "USER_ID" : "jm0007", + "X-TransactionId" : "req-d67bfed1-9d18-47b9-a636-d904b51bfbf0", + "Content-Type" : "application/json" + }, + "json" : { } + }, + "response" : { + "status" : 200, + "json" : { + "uniqueId" : "66269482-0b27-40e3-9c4d-6a26fb67d9ff", + "name" : "kanag-cli-VLB", + "version" : "0.1", + "isHighestVersion" : true, + "creationDate" : 1509603052084, + "lastUpdateDate" : 1509603385031, + "description" : "VF created from CLI", + "lifecycleState" : "CERTIFICATION_IN_PROGRESS", + "tags" : [ "CLI", "kanag-cli-VLB" ], + "icon" : "defaulticon", + "normalizedName" : "kanagclivlb", + "systemName" : "KanagCliVlb", + "contactId" : "cs0008", + "allVersions" : { + "0.1" : "66269482-0b27-40e3-9c4d-6a26fb67d9ff" + }, + "csarUUID" : "f19cad8343794e93acb9cda2e4126281", + "csarVersion" : "2.0", + "importedToscaChecksum" : "NDQzNmIwOWE1NjQ2NjU2YTNkMWVmNzcxMTczMjRmNDE=", + "invariantUUID" : "2d455337-57eb-4edf-a8b9-9f87fd85bc0e", + "componentType" : "RESOURCE", + "categories" : [ { + "name" : "Generic", + "normalizedName" : "generic", + "uniqueId" : "resourceNewCategory.generic", + "subcategories" : [ { + "name" : "Abstract", + "normalizedName" : "abstract", + "uniqueId" : "resourceNewCategory.generic.abstract", + "icons" : [ "objectStorage", "compute" ] + } ] + } ], + "creatorUserId" : "cs0008", + "creatorFullName" : "Carlos Santana", + "lastUpdaterUserId" : "jm0007", + "lastUpdaterFullName" : "Joni Mitchell", + "vendorName" : "Kanag-cli", + "vendorRelease" : "1.0", + "resourceVendorModelNumber" : "", + "resourceType" : "VF", + "toscaResourceName" : "org.openecomp.resource.vf.KanagCliVlb", + "uuid" : "46c89121-b37f-4192-8841-25c93165b843" + } + } +} ]
\ No newline at end of file diff --git a/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-start-schema-1.1-sample.yaml b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-start-schema-1.1-sample.yaml new file mode 100644 index 00000000..de74f37f --- /dev/null +++ b/plugins/sdc/src/test/resources/onap-cli-sample/vf/vf-model-certify-start-schema-1.1-sample.yaml @@ -0,0 +1,9 @@ +onap_cli_sample_version: 1.0 +name: vf-model-certify-start +version: onap-1.1 +samples: + sample1: + name: vf-model-certify-start + input: --vf-id 66269482-0b27-40e3-9c4d-6a26fb67d9ff + moco: vf-model-certify-start-schema-1.1-moco.json + ouput:
\ No newline at end of file |