diff options
author | 2021-03-31 15:02:48 +0300 | |
---|---|---|
committer | 2021-04-02 08:52:14 +0000 | |
commit | e88242da2117cc06bba3b3410f1a6faa9acb5035 (patch) | |
tree | a4975dfa54173770a12b509450ebfb9a52fdcba1 /tests/optf-osdf/osdf | |
parent | ddd487752cf6eddd891d7b8fe5062316a932414d (diff) |
Remove redundant optf CSIT tests
- optf-has and optf-osdf CSITs have been moved to their
respective project repositories:
https://gerrit.onap.org/r/c/ci-management/+/120040
https://gerrit.onap.org/r/c/optf/osdf/+/119471
https://gerrit.onap.org/r/c/optf/has/+/119424
Issue-ID: OPTFRA-930
Signed-off-by: Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>
Change-Id: I3ca21d3a96e9dd7a6a86202b04b6c506c367ff01
Diffstat (limited to 'tests/optf-osdf/osdf')
-rw-r--r-- | tests/optf-osdf/osdf/__init__.robot | 4 | ||||
-rw-r--r-- | tests/optf-osdf/osdf/data/pci-opt-request.json | 20 | ||||
-rw-r--r-- | tests/optf-osdf/osdf/data/placement_request.json | 102 | ||||
-rw-r--r-- | tests/optf-osdf/osdf/optf_osdf_setup.robot | 12 | ||||
-rw-r--r-- | tests/optf-osdf/osdf/optf_osdf_test.robot | 48 | ||||
-rw-r--r-- | tests/optf-osdf/osdf/resources/common-keywords.robot | 50 |
6 files changed, 0 insertions, 236 deletions
diff --git a/tests/optf-osdf/osdf/__init__.robot b/tests/optf-osdf/osdf/__init__.robot deleted file mode 100644 index fb654d7b..00000000 --- a/tests/optf-osdf/osdf/__init__.robot +++ /dev/null @@ -1,4 +0,0 @@ -*** Settings *** -Documentation Integration - Suite 1 - - diff --git a/tests/optf-osdf/osdf/data/pci-opt-request.json b/tests/optf-osdf/osdf/data/pci-opt-request.json deleted file mode 100644 index 7ec9ab5f..00000000 --- a/tests/optf-osdf/osdf/data/pci-opt-request.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "requestInfo": { - "transactionId": "xxx-xxx-xxxx", - "requestId": "yyy-yyy-yyyy", - "callbackUrl": "https://wiki.onap.org:5000/callbackUrl/", - "sourceId": "SO", - "requestType": "create", - "numSolutions": 1, - "optimizers": [ - "placement" - ], - "timeout": 600 - }, - "cellInfo": { - "networkId": "1000", - "cellIdList": [ - "cell0" - ] - } -}
\ No newline at end of file diff --git a/tests/optf-osdf/osdf/data/placement_request.json b/tests/optf-osdf/osdf/data/placement_request.json deleted file mode 100644 index d9b16ca5..00000000 --- a/tests/optf-osdf/osdf/data/placement_request.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "requestInfo": { - "transactionId": "xxx-xxx-xxxx", - "requestId": "yyy-yyy-yyyy", - "callbackUrl": "https://wiki.onap.org:5000/callbackUrl/", - "sourceId": "SO", - "requestType": "create", - "numSolutions": 1, - "optimizers": ["placement"], - "timeout": 600 - }, - "placementInfo": { - "requestParameters": { "customerLatitude": 32.89748, "customerLongitude": -97.040443, "customerName": "xyz" }, - "subscriberInfo": {"globalSubscriberId": "xxx-xx-xxx", "subscriberName": "subscriber_x"}, - "placementDemands": [ - { - "resourceModuleName": "vGMuxInfra", - "serviceResourceId": "vGMuxInfra-xx", - "tenantId": "vGMuxInfra-tenant", - "resourceModelInfo": { - "modelInvariantId": "vGMuxInfra-modelInvariantId", - "modelVersionId": "vGMuxInfra-versionId", - "modelName": "vGMuxInfra-model", - "modelType": "resource", - "modelVersion": "1.0", - "modelCustomizationName": "vGMuxInfra-customeModelName" - } - }, - { - "resourceModuleName": "vG", - "serviceResourceId": "71d563e8-e714-4393-8f99-cc480144a05e", - "tenantId": "vG-tenant", - "resourceModelInfo": { - "modelInvariantId": "vG-modelInvariantId", - "modelVersionId": "vG-versionId", - "modelName": "vG-model", - "modelType": "resource", - "modelVersion": "1.0", - "modelCustomizationName": "vG-customeModelName" - }, - "existingCandidates": [ - { - "identifierType": "serviceInstanceId", - "cloudOwner": "", - "identifiers": ["gjhd-098-fhd-987"] - } - ], - "excludedCandidates": [ - { - "identifierType": "serviceInstanceId", - "cloudOwner": "", - "identifiers": ["gjhd-098-fhd-987"] - }, - { - "identifierType": "vimId", - "cloudOwner": "vmware", - "identifiers": ["NYMDT67"] - } - ], - "requiredCandidates": [ - { - "identifierType": "vimId", - "cloudOwner": "amazon", - "identifiers": ["TXAUS219"] - } - ] - } - ] - }, - "serviceInfo": { - "serviceInstanceId": "d61b2543-5914-4b8f-8e81-81e38575b8ec", - "serviceName": "vCPE", - "modelInfo": { - "modelInvariantId": "vCPE-invariantId", - "modelVersionId": "vCPE-versionId", - "modelName": "vCPE-model", - "modelType": "service", - "modelVersion": "1.0", - "modelCustomizationName": "vCPE-customeModelName" - } - }, - "licenseInfo": { - "licenseDemands": [ - { - "resourceModuleName": "vGMuxInfra", - "serviceResourceId": "vGMuxInfra-xx", - "resourceModelInfo": { - "modelInvariantId": "vGMuxInfra-modelInvariantId", - "modelVersionId": "vGMuxInfra-versionId", - "modelName": "vGMuxInfra-model", - "modelType": "resource", - "modelVersion": "1.0", - "modelCustomizationName": "vGMuxInfra-customeModelName" - }, - "existingLicenses": { - "entitlementPoolUUID": ["87257b49-9602-4ca1-9817-094e52bc873b", "43257b49-9602-4fe5-9337-094e52bc9435"], - "licenseKeyGroupUUID": ["87257b49-9602-4ca1-9817-094e52bc873b", "43257b49-9602-4fe5-9337-094e52bc9435"] - } - } - ] - } -}
\ No newline at end of file diff --git a/tests/optf-osdf/osdf/optf_osdf_setup.robot b/tests/optf-osdf/osdf/optf_osdf_setup.robot deleted file mode 100644 index fdf7f3e3..00000000 --- a/tests/optf-osdf/osdf/optf_osdf_setup.robot +++ /dev/null @@ -1,12 +0,0 @@ -*** Settings *** -Documentation Suite description -Resource ./resources/common-keywords.robot - -*** Test Cases *** -Check OSDF_SIM Docker Container - [Documentation] It checks osdf_simulator docker container is running - Verify Docker RC Status osdf_sim - -Check OSDF Docker Container - [Documentation] It checks optf-osdf docker container is running - Verify Docker RC Status optf-osdf
\ No newline at end of file diff --git a/tests/optf-osdf/osdf/optf_osdf_test.robot b/tests/optf-osdf/osdf/optf_osdf_test.robot deleted file mode 100644 index 79a5750e..00000000 --- a/tests/optf-osdf/osdf/optf_osdf_test.robot +++ /dev/null @@ -1,48 +0,0 @@ -*** Settings *** -Library json -Library OperatingSystem -Resource ./resources/common-keywords.robot - -Suite Teardown Delete All Sessions - -*** Variables *** -${osdf_host} ${OSDF_HOSTNAME}:${OSDF_PORT} -&{placement_auth} = username=test password=testpwd -&{wrong_authorization} = username=test password=test -&{pci_auth}= username=pci_test password=pci_testpwd - -*** Test Cases *** -Healthcheck - [Documentation] It sends a REST GET request to healthcheck url - ${resp}= Http Get ${osdf_host} /api/oof/v1/healthcheck - Should Be Equal As Integers ${resp.status_code} 200 - -SendPlacementWithInvalidAuth - [Documentation] It sends a POST request to osdf fail authentication - ${data}= Get Binary File ${CURDIR}${/}data${/}placement_request.json - ${resp}= Http Post host=${osdf_host} restUrl=/api/oof/v1/placement data=${data} auth=${wrong_authorization} - ${response_json} json.loads ${resp.content} - Should Be Equal Unauthorized, check username and password ${response_json['serviceException']['text']} - Should Be Equal As Integers ${resp.status_code} 401 - -SendPlacementWithValidAuth - [Documentation] It sends a POST request to osdf with correct authentication - ${data}= Get Binary File ${CURDIR}${/}data${/}placement_request.json - ${resp}= Http Post host=${osdf_host} restUrl=/api/oof/v1/placement data=${data} auth=${placement_auth} - ${response_json} json.loads ${resp.content} - Should Be Equal As Integers ${resp.status_code} 202 - Should Be Equal accepted ${response_json['requestStatus']} - -SendPCIOptimizationWithAuth - [Documentation] It sends a POST request PCI Optimization service - - ${data}= Get Binary File ${CURDIR}${/}data${/}pci-opt-request.json - ${resp}= Http Post host=${osdf_host} restUrl=/api/oof/v1/pci data=${data} auth=${pci_auth} - ${response_json} json.loads ${resp.content} - Should Be Equal As Integers ${resp.status_code} 202 - Should Be Equal accepted ${response_json['requestStatus']} - - - - - diff --git a/tests/optf-osdf/osdf/resources/common-keywords.robot b/tests/optf-osdf/osdf/resources/common-keywords.robot deleted file mode 100644 index ea45f09d..00000000 --- a/tests/optf-osdf/osdf/resources/common-keywords.robot +++ /dev/null @@ -1,50 +0,0 @@ -*** Settings *** -Documentation Suite description -Library OperatingSystem -Library RequestsLibrary -Library json -Library RequestsLibrary -*** Variables *** -&{headers}= Content-Type=application/json Accept=application/json -*** Keywords *** -Verify Docker RC Status - [Documentation] Method to verify whether docker instance is up and running - [Arguments] ${process_name} - ${rc} ${output}= Run and Return RC and Output docker ps - Log To Console ********************* - Log To Console retrurn_code = ${rc} - Log To Console output = ${output} - Should Be Equal As Integers ${rc} 0 - Should Contain ${output} ${process_name} - -Http Get - [Documentation] Wrapper for Http GET - [Arguments] ${host} ${restUrl} - Create Session optf-osdf ${host} - ${resp}= Get Request optf-osdf ${restUrl} headers=${headers} - Log To Console ********************* - Log To Console response = ${resp} - Log To Console body = ${resp.text} - [Return] ${resp} - -Http Post - [Documentation] Wrapper for Http POST - [Arguments] ${host} ${restUrl} ${auth} ${data} - ${pci_auth}= Create List ${auth['username']} ${auth['password']} - Create Session optf-osdf ${host} headers=${headers} auth=${pci_auth} - ${resp}= Post Request optf-osdf ${restUrl} data=${data} headers=${headers} - Log To Console ********************* - Log To Console response = ${resp} - Log To Console body = ${resp.text} - [Return] ${resp} - -Http Put - [Documentation] Wrapper for Http PUT - [Arguments] ${host} ${restUrl} ${auth} ${data} - ${pci_auth}= Create List ${auth['username']} ${auth['password']} - Create Session optf-osdf ${host} headers=${headers} auth=${pci_auth} - ${resp}= Put Request optf-osdf ${restUrl} data=${data} headers=${headers} - Log To Console ********************* - Log To Console response = ${resp} - Log To Console body = ${resp.text} - [Return] ${resp}
\ No newline at end of file |