diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dcaegen2-pmmapper/pmmapper/__init__.robot | 2 | ||||
-rw-r--r-- | tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot | 21 | ||||
-rw-r--r-- | tests/policy/api/api-test.robot | 28 |
3 files changed, 51 insertions, 0 deletions
diff --git a/tests/dcaegen2-pmmapper/pmmapper/__init__.robot b/tests/dcaegen2-pmmapper/pmmapper/__init__.robot new file mode 100644 index 00000000..7114fd44 --- /dev/null +++ b/tests/dcaegen2-pmmapper/pmmapper/__init__.robot @@ -0,0 +1,2 @@ +*** Settings *** +Documentation 5G Bulk PM E2E Testcases diff --git a/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot b/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot new file mode 100644 index 00000000..f65ef2b4 --- /dev/null +++ b/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot @@ -0,0 +1,21 @@ +*** Settings *** +Documentation Testing PM Mapper functionality +Library RequestsLibrary +Library OperatingSystem +Library Collections +Library Process + + +*** Variables *** +${GLOBAL_APPLICATION_ID} robot-ves +${CLI_EXEC_CLI} curl http://${CBS_IP}:10000/service_component/pmmapper + + +*** Test Cases *** + +Verify pmmapper configuration in consul through CBS + [Tags] PM_MAPPER_01 + [Documentation] Verify pmmapper configuraiton in consul through CBS + ${cli_cmd_output}= Run Process ${CLI_EXEC_CLI} shell=yes + Log ${cli_cmd_output.stdout} + Should Contain ${cli_cmd_output.stdout} pm-mapper-filter
\ No newline at end of file diff --git a/tests/policy/api/api-test.robot b/tests/policy/api/api-test.robot new file mode 100644 index 00000000..3753b3d8 --- /dev/null +++ b/tests/policy/api/api-test.robot @@ -0,0 +1,28 @@ +*** Settings *** +Library Collections +Library RequestsLibrary +Library OperatingSystem +Library json + +*** Test Cases *** +Healthcheck + [Documentation] Runs Policy Api Health check + ${auth}= Create List healthcheck zb!XztG34 + Log Creating session http://${POLICY_API_IP}:6969 + ${session}= Create Session policy http://${POLICY_API_IP}:6969 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Get Request policy /healthcheck headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.json()['code']} 200 + +Statistics + [Documentation] Runs Policy Api Statistics + ${auth}= Create List healthcheck zb!XztG34 + Log Creating session http://${POLICY_API_IP}:6969 + ${session}= Create Session policy http://${POLICY_API_IP}:6969 auth=${auth} + ${headers}= Create Dictionary Accept=application/json Content-Type=application/json + ${resp}= Get Request policy /statistics headers=${headers} + Log Received response from policy ${resp.text} + Should Be Equal As Strings ${resp.status_code} 200 + Should Be Equal As Strings ${resp.json()['code']} 200
\ No newline at end of file |