diff options
Diffstat (limited to 'tests')
8 files changed, 32 insertions, 24 deletions
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/policy/apex-pdp/apex-pdp-test.robot b/tests/policy/apex-pdp/apex-pdp-test.robot index 9fdbc12e..54838a39 100644 --- a/tests/policy/apex-pdp/apex-pdp-test.robot +++ b/tests/policy/apex-pdp/apex-pdp-test.robot @@ -48,7 +48,7 @@ DeployPolicy ${resp}= Post Request policy /policy/pap/v1/pdps/deployments/batch data=${postjson} headers=${headers} Log Received response from policy5 ${resp.text} ${postjsonobject} To Json ${postjson} - Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.status_code} 202 RunEventOnApexEngine Create Session apexSession http://${APEX_IP}:23324 max_retries=1 diff --git a/tests/policy/drools-applications/drools-applications-test.robot b/tests/policy/drools-applications/drools-applications-test.robot index 0b73ccf8..2ab05810 100644 --- a/tests/policy/drools-applications/drools-applications-test.robot +++ b/tests/policy/drools-applications/drools-applications-test.robot @@ -122,7 +122,7 @@ DeployXacmlPolicies ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= Post Request policy /policy/pap/v1/pdps/deployments/batch data=${postjson} headers=${headers} Log Received response from pap ${resp.text} - Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.status_code} 202 ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-PDP-PAP ... responseTo xacml ACTIVE restart Log Received status ${result.stdout} @@ -140,7 +140,7 @@ DeployDroolsPolicies ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= Post Request policy /policy/pap/v1/pdps/deployments/batch data=${postjson} headers=${headers} Log Received response from pap ${resp.text} - Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.status_code} 202 ${result}= Run Process ${SCR2}/wait_topic.sh POLICY-PDP-PAP ... responseTo drools ACTIVE Log Received status ${result.stdout} diff --git a/tests/policy/pap/pap-test.robot b/tests/policy/pap/pap-test.robot index 3e8bc211..d0837fa9 100644 --- a/tests/policy/pap/pap-test.robot +++ b/tests/policy/pap/pap-test.robot @@ -81,7 +81,7 @@ DeployPdpGroups ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= Post Request policy /policy/pap/v1/pdps/deployments/batch data=${postjson} headers=${headers} Log Received response from policy ${resp.text} - Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.status_code} 202 UndeployPolicy [Documentation] Runs Policy PAP Undeploy a Policy from PDP Groups @@ -91,7 +91,7 @@ UndeployPolicy ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= Delete Request policy /policy/pap/v1/pdps/policies/onap.restart.tca headers=${headers} Log Received response from policy ${resp.text} - Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.status_code} 202 QueryPdpGroupsAfterUndeploy [Documentation] Runs Policy PAP Query PDP Groups after Undeploy diff --git a/tests/policy/xacml-pdp/xacml-pdp-test.robot b/tests/policy/xacml-pdp/xacml-pdp-test.robot index 150c97e6..03b0ca7a 100644 --- a/tests/policy/xacml-pdp/xacml-pdp-test.robot +++ b/tests/policy/xacml-pdp/xacml-pdp-test.robot @@ -83,7 +83,7 @@ DeployPolicies ${resp}= Post Request policy /policy/pap/v1/pdps/policies data=${postjson} headers=${headers} Log Received response from policy5 ${resp.text} ${postjsonobject} To Json ${postjson} - Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.status_code} 202 ${result}= Run Process ${SCR_DMAAP}/wait_topic.sh POLICY-PDP-PAP ... responseTo xacml ACTIVE onap.restart.tca @@ -202,7 +202,7 @@ UndeployMonitorPolicy ${headers}= Create Dictionary Accept=application/json Content-Type=application/json ${resp}= Delete Request policy /policy/pap/v1/pdps/policies/onap.restart.tca headers=${headers} Log Received response from policy ${resp.text} - Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.status_code} 202 GetStatisticsAfterUndeploy [Documentation] Runs Policy Xacml PDP Statistics after policy is undeployed 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 |