diff options
author | rope252 <gareth.roper@est.tech> | 2019-07-25 16:04:10 +0000 |
---|---|---|
committer | rope252 <gareth.roper@est.tech> | 2019-07-25 16:04:10 +0000 |
commit | 1537edfe63b65e6755f7a7f7f26da4cb1879c05a (patch) | |
tree | 02bcf32365299bb4de0fc74314e65b754382f358 /tests/so | |
parent | f6672381e1d5bdc4cf6071dcedde5a4b0848f178 (diff) |
Simulate Service Distribution of SDC Service in Catalog DB
Change-Id: I9437305940dacd985ad12d0af3c19ba2b78eca0b
Issue-ID: SO-1948
Signed-off-by: rope252 <gareth.roper@est.tech>
Diffstat (limited to 'tests/so')
-rw-r--r-- | tests/so/etsi/data/distributeServiceTemplate.json | 103 | ||||
-rw-r--r-- | tests/so/etsi/etsi_tests.robot | 20 |
2 files changed, 123 insertions, 0 deletions
diff --git a/tests/so/etsi/data/distributeServiceTemplate.json b/tests/so/etsi/data/distributeServiceTemplate.json new file mode 100644 index 00000000..11b98807 --- /dev/null +++ b/tests/so/etsi/data/distributeServiceTemplate.json @@ -0,0 +1,103 @@ +{ + "distributionID": "cfe30d6c-eb67-4ffb-ba98-4b654162223a", + "serviceName": "manualDistributionTestService", + "serviceVersion": "1.0", + "serviceUUID": "28d4acf3-4791-4998-8d06-1cdf6d1767a9", + "serviceDescription": "Test", + "serviceInvariantUUID": "0ddc448d-5513-44bc-8b02-5759d84600d5", + "resources": [ + { + "resourceInstanceName": "manualDistributionTestVNF 0", + "resourceCustomizationUUID": "82ad3aa0-edc6-410c-a217-655fb064323f", + "resourceName": "manualDistributionTestVNF", + "resourceVersion": "1.0", + "resoucreType": "VF", + "resourceUUID": "e8e39dc4-4761-4da7-aedf-7d1fd3637772", + "resourceInvariantUUID": "0a0b9979-863d-4b7e-b7f4-d27725a182b3", + "category": "Application L4+", + "subcategory": "Media Servers", + "artifacts": [ + { + "artifactName": "manualdistributiontestvnf0_modules.json", + "artifactType": "VF_MODULES_METADATA", + "artifactURL": "/sdc/v1/catalog/services/Manualdistributiontestservice/1.0/resourceInstances/manualdistributiontestvnf0/artifacts/manualdistributiontestvnf0_modules.json", + "artifactChecksum": "NTc0NDlkNzdmYzVmMDM3ZjMxMTE2NDBmYWJiMDM1NzY\u003d", + "artifactDescription": "Auto-generated VF Modules information artifact", + "artifactTimeout": 120, + "artifactVersion": "1", + "artifactUUID": "a10f397a-6546-4a27-843f-25821955ef3e", + "relatedArtifactsInfo": [] + }, + { + "artifactName": "base_ves_med1.yaml", + "artifactType": "HEAT", + "artifactURL": "/sdc/v1/catalog/services/Manualdistributiontestservice/1.0/resourceInstances/manualdistributiontestvnf0/artifacts/base_ves_med1.yaml", + "artifactChecksum": "YTAwNTQ3NjczY2Y5MmUwZjUzZTY1ZjNhNTA0NGQyMDY\u003d", + "artifactDescription": "created from csar", + "artifactTimeout": 120, + "artifactVersion": "2", + "artifactUUID": "e216d9da-18c4-460f-8b2b-d7f8dd9e9295", + "generatedArtifact": { + "artifactName": "base_ves_med1.env", + "artifactType": "HEAT_ENV", + "artifactURL": "/sdc/v1/catalog/services/Manualdistributiontestservice/1.0/resourceInstances/manualdistributiontestvnf0/artifacts/base_ves_med1.env", + "artifactChecksum": "Mjg5YTVhNTlmYTdjYTFlYjYxMDlhODYzNmJhZGJiZGE\u003d", + "artifactDescription": "Auto-generated HEAT Environment deployment artifact", + "artifactTimeout": 120, + "artifactVersion": "2", + "artifactUUID": "6243747f-e794-4519-82b2-6399846f1951", + "generatedFromUUID": "e216d9da-18c4-460f-8b2b-d7f8dd9e9295" + }, + "relatedArtifactsInfo": [] + }, + { + "artifactName": "base_ves_med1.env", + "artifactType": "HEAT_ENV", + "artifactURL": "/sdc/v1/catalog/services/Manualdistributiontestservice/1.0/resourceInstances/manualdistributiontestvnf0/artifacts/base_ves_med1.env", + "artifactChecksum": "Mjg5YTVhNTlmYTdjYTFlYjYxMDlhODYzNmJhZGJiZGE\u003d", + "artifactDescription": "Auto-generated HEAT Environment deployment artifact", + "artifactTimeout": 120, + "artifactVersion": "2", + "artifactUUID": "6243747f-e794-4519-82b2-6399846f1951", + "relatedArtifactsInfo": [] + }, + { + "artifactName": "TOSCA.meta", + "artifactType": "OTHER", + "artifactURL": "/sdc/v1/catalog/services/Manualdistributiontestservice/1.0/resourceInstances/manualdistributiontestvnf0/artifacts/TOSCA.meta", + "artifactChecksum": "NWE2ODcyOWY0NGI2MzEyOGViYjUxNTEwMjU5OWRhZmI\u003d", + "artifactDescription": "created from csar", + "artifactTimeout": 120, + "artifactVersion": "1", + "artifactUUID": "6c64d38b-186f-4339-9a76-a266c40f40ec", + "relatedArtifactsInfo": [] + }, + { + "artifactName": "descriptor.yaml", + "artifactType": "OTHER", + "artifactURL": "/sdc/v1/catalog/services/Manualdistributiontestservice/1.0/resourceInstances/manualdistributiontestvnf0/artifacts/descriptor.yaml", + "artifactChecksum": "YWZkNTg2ZGMzZjRhZjgxNzNkODJiNjgwZmRlZjlmNDE\u003d", + "artifactDescription": "created from csar", + "artifactTimeout": 120, + "artifactVersion": "1", + "artifactUUID": "4bd0cdf6-0b12-4d19-b3d8-6dbc34fe397e", + "relatedArtifactsInfo": [] + } + ] + } + ], + "serviceArtifacts": [ + { + "artifactName": "service-Manualdistributiontestservice-csar.csar", + "artifactType": "TOSCA_CSAR", + "artifactURL": "/sdc/v1/catalog/services/Manualdistributiontestservice/1.0/artifacts/service-Manualdistributiontestservice-csar.csar", + "artifactChecksum": "YWYxNmUxNTlhMmE3MjA1NGVhNTBhYTdkMmU0OTZjNzM\u003d", + "artifactDescription": "TOSCA definition package of the asset", + "artifactTimeout": 0, + "artifactVersion": "1", + "artifactUUID": "e6e8c36a-b939-4845-995a-41c50be890a0" + } + ], + "workloadContext": "Production" +} + diff --git a/tests/so/etsi/etsi_tests.robot b/tests/so/etsi/etsi_tests.robot new file mode 100644 index 00000000..e3d0a950 --- /dev/null +++ b/tests/so/etsi/etsi_tests.robot @@ -0,0 +1,20 @@ +*** Settings *** +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json + +*** Variables *** +${MESSAGE} Hello, world! + +*** Test Cases *** + +Distribute Service Template + Create Session refrepo http://${REPO_IP}:8085 + ${data}= Get Binary File ${CURDIR}${/}data${/}distributeServiceTemplate.json + &{headers}= Create Dictionary Authorization=Basic bXNvX2FkbWluOnBhc3N3b3JkMSQ= resource-location=/distribution-test-zip/unzipped Content-Type=application/json Accept=application/json + log to console \nAbout to POST ${REPO_IP} + ${resp}= Post Request refrepo /test/treatNotification/v1 data=${data} headers=${headers} + log to console \nAFRTE POST + Run Keyword If '${resp.status_code}' == '200' log to console \nexecuted with expected result + |