From e88242da2117cc06bba3b3410f1a6faa9acb5035 Mon Sep 17 00:00:00 2001 From: Lasse Kaihlavirta Date: Wed, 31 Mar 2021 15:02:48 +0300 Subject: 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 Change-Id: I3ca21d3a96e9dd7a6a86202b04b6c506c367ff01 --- tests/optf-osdf/osdf/optf_osdf_test.robot | 48 ------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 tests/optf-osdf/osdf/optf_osdf_test.robot (limited to 'tests/optf-osdf/osdf/optf_osdf_test.robot') 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']} - - - - - -- cgit 1.2.3-korg