diff options
Diffstat (limited to 'tests')
10 files changed, 50 insertions, 21 deletions
diff --git a/tests/dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Ftp-suite/FuncSingleFileFtp.robot b/tests/dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Ftp-suite/FuncSingleFileFtp.robot index cecb8d11..bb70b502 100755 --- a/tests/dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Ftp-suite/FuncSingleFileFtp.robot +++ b/tests/dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Ftp-suite/FuncSingleFileFtp.robot @@ -109,3 +109,5 @@ Set Default Environment Variables Set Environment Variable HTTP_SIMS http-https-server0:80 Set Environment Variable HTTPS_SIMS http-https-server0:443 Set Environment Variable HTTPS_SIMS_NO_AUTH http-https-server0:8080 + Set Environment Variable HTTP_JWT_SIMS http-https-server0:32000 + Set Environment Variable HTTPS_JWT_SIMS http-https-server0:32100 diff --git a/tests/dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Http-suite/FuncSingleFileHttp.robot b/tests/dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Http-suite/FuncSingleFileHttp.robot index f279391c..f96c2f96 100755 --- a/tests/dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Http-suite/FuncSingleFileHttp.robot +++ b/tests/dcaegen2-collectors-datafile/testsuites/Functional-Single-File-Http-suite/FuncSingleFileHttp.robot @@ -112,3 +112,5 @@ Set Default Environment Variables Set Environment Variable HTTP_SIMS http-https-server0:80 Set Environment Variable HTTPS_SIMS http-https-server0:443 Set Environment Variable HTTPS_SIMS_NO_AUTH http-https-server0:8080 + Set Environment Variable HTTP_JWT_SIMS http-https-server0:32000 + Set Environment Variable HTTPS_JWT_SIMS http-https-server0:32100 diff --git a/tests/dcaegen2-collectors-datafile/testsuites/HTTPS-Various-Connection-Types-suite/HttpsVariousConnectionTypes.robot b/tests/dcaegen2-collectors-datafile/testsuites/HTTP-Various-Connection-Types-suite/HttpVariousConnectionTypes.robot index c8d09c2b..9e69e536 100755 --- a/tests/dcaegen2-collectors-datafile/testsuites/HTTPS-Various-Connection-Types-suite/HttpsVariousConnectionTypes.robot +++ b/tests/dcaegen2-collectors-datafile/testsuites/HTTP-Various-Connection-Types-suite/HttpVariousConnectionTypes.robot @@ -22,16 +22,29 @@ Verify single event with single 1MB file with HTTPS connection (basic authentica Verify single event with single 1MB file HTTPS connection (client certificate authentication). From event poll to published file [TAGS] DFC_FUNCTIONAL_41 - [Documentation] Verify single event with single HTTPS (basic authentication) 5MB file from event poll to published file. + [Documentation] Verify single event with single 1MB file HTTPS connection (client certificate authentication). From event poll to published file Verify Single Event From Event Poll To Published File 1 --tc403 HTTPS Verify single event with single 1MB file HTTPS (no authentication). From event poll to published file [TAGS] DFC_FUNCTIONAL_42 - [Documentation] Verify single event with single HTTPS (basic authentication) 50MB file from event poll to published file. + [Documentation] Verify single event with single 1MB file HTTPS (no authentication). From event poll to published file Verify Single Event From Event Poll To Published File 1 --tc404 HTTPS +Verify single event with single 1MB file with HTTP JWT. From event poll to published file + [TAGS] DFC_FUNCTIONAL_43 + [Documentation] Verify single event with single 1MB file with HTTP JWT. From event poll to published file + ${cli_cmd_output}= Run Process ${DFC_ROOT}/../dfc-containers-clean.sh stderr=STDOUT + Verify Single Event From Event Poll To Published File 1 --tc303 HTTP + + +Verify single event with single 1MB file with HTTPS JWT. From event poll to published file + [TAGS] DFC_FUNCTIONAL_44 + [Documentation] Verify single event with single 1MB file with HTTPS JWT. From event poll to published file + ${cli_cmd_output}= Run Process ${DFC_ROOT}/../dfc-containers-clean.sh stderr=STDOUT + Verify Single Event From Event Poll To Published File 1 --tc405 HTTPS + *** Keywords *** Verify Single Event From Event Poll To Published File @@ -93,3 +106,5 @@ Set Default Environment Variables Set Environment Variable HTTP_SIMS http-https-server0:80 Set Environment Variable HTTPS_SIMS http-https-server0:443 Set Environment Variable HTTPS_SIMS_NO_AUTH http-https-server0:8080 + Set Environment Variable HTTP_JWT_SIMS http-https-server0:32000 + Set Environment Variable HTTPS_JWT_SIMS http-https-server0:32100 diff --git a/tests/dcaegen2-collectors-datafile/testsuites/HTTP-Various-Connection-Types-suite/__init__.robot b/tests/dcaegen2-collectors-datafile/testsuites/HTTP-Various-Connection-Types-suite/__init__.robot new file mode 100755 index 00000000..b4fa2714 --- /dev/null +++ b/tests/dcaegen2-collectors-datafile/testsuites/HTTP-Various-Connection-Types-suite/__init__.robot @@ -0,0 +1,2 @@ +*** Settings *** +Documentation DFC HTTP/HTTPS various connection types test suite. Single event with single file. diff --git a/tests/dcaegen2-collectors-datafile/testsuites/HTTPS-Various-Connection-Types-suite/__init__.robot b/tests/dcaegen2-collectors-datafile/testsuites/HTTPS-Various-Connection-Types-suite/__init__.robot deleted file mode 100755 index dac245f8..00000000 --- a/tests/dcaegen2-collectors-datafile/testsuites/HTTPS-Various-Connection-Types-suite/__init__.robot +++ /dev/null @@ -1,2 +0,0 @@ -*** Settings *** -Documentation DFC HTTPS various connection types test suite. Single event with single file. diff --git a/tests/dcaegen2-collectors-datafile/testsuites/Strict-Host-Checking-suite/StrictHostChecking.robot b/tests/dcaegen2-collectors-datafile/testsuites/Strict-Host-Checking-suite/StrictHostChecking.robot index 9baf11f6..61f689d1 100755 --- a/tests/dcaegen2-collectors-datafile/testsuites/Strict-Host-Checking-suite/StrictHostChecking.robot +++ b/tests/dcaegen2-collectors-datafile/testsuites/Strict-Host-Checking-suite/StrictHostChecking.robot @@ -93,6 +93,8 @@ Setup Strict Host Key Checking Test Set Environment Variable HTTP_SIMS http-https-server0:80 Set Environment Variable HTTPS_SIMS http-https-server0:443 Set Environment Variable HTTPS_SIMS_NO_AUTH http-https-server0:8080 + Set Environment Variable HTTP_JWT_SIMS http-https-server0:32000 + Set Environment Variable HTTPS_JWT_SIMS http-https-server0:32100 ${cli_cmd_output}= Run Process ./simulators-start.sh cwd=${SIMGROUP_ROOT} Log To Console Simulator-start: diff --git a/tests/dcaegen2/testcases/assets/json_events/ves7_pnf_registration_event.json b/tests/dcaegen2/testcases/assets/json_events/ves7_pnf_registration_event.json index dcd3aa5d..1726e064 100644 --- a/tests/dcaegen2/testcases/assets/json_events/ves7_pnf_registration_event.json +++ b/tests/dcaegen2/testcases/assets/json_events/ves7_pnf_registration_event.json @@ -28,7 +28,7 @@ "unitFamily": "BBU", "vendorName": "Nokia", "oamV4IpAddress": "10.11.12.13", - "oamV6IpAddress": "1::::9", + "oamV6IpAddress": "2001:db2:31:1041:204a::1337", "softwareVersion": "val7" } } diff --git a/tests/dmaap-buscontroller/ssl_suite/test1.robot b/tests/dmaap-buscontroller/ssl_suite/test1.robot index 999c6baf..b5723377 100644 --- a/tests/dmaap-buscontroller/ssl_suite/test1.robot +++ b/tests/dmaap-buscontroller/ssl_suite/test1.robot @@ -20,28 +20,28 @@ Dir Test Url Test [Documentation] Check if www.onap.org can be reached - Create Session openo http://www.onap.org + Create Session openo http://www.onap.org disable_warnings=True CheckUrl openo / 200 HTTPS Heartbeat Test [Documentation] Check ${DBC_URI}/info SSL endpoint - Create Session heartbeat https://${DMAAPBC_IP}:8443 + Create Session heartbeat https://${DMAAPBC_IP}:8443 disable_warnings=True CheckUrl heartbeat ${DBC_URI}/info 204 HTTPS Dmaap Init Test [Documentation] Check ${DBC_URI}/dmaap SSL endpoint - Create Session heartbeat https://${DMAAPBC_IP}:8443 - CheckStatus heartbeat ${DBC_URI}/dmaap "VALID" + Create Session heartbeat https://${DMAAPBC_IP}:8443 disable_warnings=True + CheckStatus heartbeat ${DBC_URI}/dmaap "VALID" HTTPS Dmaap dcaeLocations Test [Documentation] Check ${DBC_URI}/dcaeLocations SSL endpoint - Create Session heartbeat https://${DMAAPBC_IP}:8443 - CheckStatus0 heartbeat ${DBC_URI}/dcaeLocations "VALID" + Create Session heartbeat https://${DMAAPBC_IP}:8443 disable_warnings=True + CheckStatus0 heartbeat ${DBC_URI}/dcaeLocations "VALID" HTTPS Dmaap mr_clusters Test [Documentation] Check ${DBC_URI}/mr_clusters SSL endpoint - Create Session heartbeat https://${DMAAPBC_IP}:8443 - CheckStatus0 heartbeat ${DBC_URI}/mr_clusters "VALID" + Create Session heartbeat https://${DMAAPBC_IP}:8443 disable_warnings=True + CheckStatus0 heartbeat ${DBC_URI}/mr_clusters "VALID" *** Keywords *** @@ -51,12 +51,12 @@ CheckDir CheckUrl [Arguments] ${session} ${path} ${expect} - ${resp}= Get Request ${session} ${path} + ${resp}= RequestsLibrary.Get On Session ${session} ${path} Should Be Equal As Integers ${resp.status_code} ${expect} CheckStatus [Arguments] ${session} ${path} ${expect} - ${resp}= Get Request ${session} ${path} + ${resp}= RequestsLibrary.Get On Session ${session} ${path} log ${resp.content} ${val}= Get Json value ${resp.content} /status log ${val} @@ -64,7 +64,7 @@ CheckStatus CheckStatus0 [Arguments] ${session} ${path} ${expect} - ${resp}= Get Request ${session} ${path} + ${resp}= RequestsLibrary.Get On Session ${session} ${path} log ${resp.json()} log ${resp.content} # silliness to strip off the brackets returned for a List to get a Dict diff --git a/tests/so/etsi/etsi_nfvo_ns_lcm_tests.robot b/tests/so/etsi/etsi_nfvo_ns_lcm_tests.robot index 91bbe6e5..23995d93 100644 --- a/tests/so/etsi/etsi_nfvo_ns_lcm_tests.robot +++ b/tests/so/etsi/etsi_nfvo_ns_lcm_tests.robot @@ -9,6 +9,12 @@ Library ArchiveLibrary ${NFVO_NS_LCM_BASE_URL}= /so/so-etsi-nfvo-ns-lcm/v1/api/nslcm/v1 ${BASIC_AUTH}= Basic c28tZXRzaS1uZnZvLW5zLWxjbTpwYXNzd29yZDEk +Documentation Test cases for ETSI NFVO NS Lifecycle Management Operations +... Create and Delete tests are synchronous +... Instantiate and Terminate tests are asynchronous, test status checked through request to NS_LCM_OP_OCCs endpoint +... Note, relies on: +... -Network Service package being onboarded in etsi_package_onboarding_tests + *** Test Cases *** Invoke Create Network Service diff --git a/tests/so/etsi/etsi_package_onboarding_tests.robot b/tests/so/etsi/etsi_package_onboarding_tests.robot index c48101c8..5b8a9013 100644 --- a/tests/so/etsi/etsi_package_onboarding_tests.robot +++ b/tests/so/etsi/etsi_package_onboarding_tests.robot @@ -3,11 +3,13 @@ Library Collections Library RequestsLibrary Library OperatingSystem Library json -Documentation Test cases for onboarding and distributing a VNF package -... Note: onboarded VNF package is used in later VNF tests including: -... -etsi_vnf_lcm_tests.robot -... -etsi_vnf_package_management_tests.robot -... -etsi_vnf_notification_tests.robot +Documentation Test cases for onboarding a VNF and Network Service package and distributing the VNF Package +... Note: onboarded VNF package is used in later VNF tests including: +... -etsi_vnf_lcm_tests.robot +... -etsi_vnf_package_management_tests.robot +... -etsi_vnf_notification_tests.robot +... Note: onboarded Network Service package is used in later test: +... -etsi_nfvo_ns_lcm_tests.robot *** Variables *** ${SLEEP_INTERVAL_SEC}= 5 |