blob: 78d7bf30bfe018bb34f45e5a81db4da4190d4647 [file] [log] [blame]
rajendrajaiswal47b64d72019-02-06 16:09:24 +00001*** Settings ***
2Documentation Testing PM Mapper functionality
rajendrajaiswal47b64d72019-02-06 16:09:24 +00003Library Collections
rajendrajaiswal8f0afd82019-02-11 12:30:26 +00004Library OperatingSystem
5Library RequestsLibrary
rajendrajaiswal47b64d72019-02-06 16:09:24 +00006Library Process
7
8
9*** Variables ***
rajendrajaiswala1574702019-02-14 10:29:45 +000010${CLI_EXEC_CLI} curl -k https://${DR_PROV_IP}:8443/internal/prov
rajendrajaiswal47b64d72019-02-06 16:09:24 +000011
12*** Test Cases ***
13
rajendrajaiswala1574702019-02-14 10:29:45 +000014Verify 3GPP PM Mapper Subscribes to Data Router
rajendrajaiswal47b64d72019-02-06 16:09:24 +000015 [Tags] PM_MAPPER_01
rajendrajaiswala1574702019-02-14 10:29:45 +000016 [Documentation] Verify 3gpp pm mapper subscribes to data router
rajendrajaiswal47b64d72019-02-06 16:09:24 +000017 ${cli_cmd_output}= Run Process ${CLI_EXEC_CLI} shell=yes
18 Log ${cli_cmd_output.stdout}
rajendrajaiswala1574702019-02-14 10:29:45 +000019 Should Be Equal As Strings ${cli_cmd_output.rc} 0
20 Should Contain ${cli_cmd_output.stdout} "3gpppmmapper"
rajendrajaiswal8f0afd82019-02-11 12:30:26 +000021
22*** Keywords ***
23
24PostCall
25 [Arguments] ${url} ${data}
26 ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
27 ${resp}= Evaluate requests.post('${url}',data='${data}', headers=${headers},verify=False) requests
28 [Return] ${resp}