rajendrajaiswal | 47b64d7 | 2019-02-06 16:09:24 +0000 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Testing PM Mapper functionality |
rajendrajaiswal | 47b64d7 | 2019-02-06 16:09:24 +0000 | [diff] [blame] | 3 | Library Collections |
rajendrajaiswal | 8f0afd8 | 2019-02-11 12:30:26 +0000 | [diff] [blame] | 4 | Library OperatingSystem |
| 5 | Library RequestsLibrary |
rajendrajaiswal | 47b64d7 | 2019-02-06 16:09:24 +0000 | [diff] [blame] | 6 | Library Process |
| 7 | |
| 8 | |
| 9 | *** Variables *** |
rajendrajaiswal | a157470 | 2019-02-14 10:29:45 +0000 | [diff] [blame^] | 10 | ${CLI_EXEC_CLI} curl -k https://${DR_PROV_IP}:8443/internal/prov |
rajendrajaiswal | 47b64d7 | 2019-02-06 16:09:24 +0000 | [diff] [blame] | 11 | |
| 12 | *** Test Cases *** |
| 13 | |
rajendrajaiswal | a157470 | 2019-02-14 10:29:45 +0000 | [diff] [blame^] | 14 | Verify 3GPP PM Mapper Subscribes to Data Router |
rajendrajaiswal | 47b64d7 | 2019-02-06 16:09:24 +0000 | [diff] [blame] | 15 | [Tags] PM_MAPPER_01 |
rajendrajaiswal | a157470 | 2019-02-14 10:29:45 +0000 | [diff] [blame^] | 16 | [Documentation] Verify 3gpp pm mapper subscribes to data router |
rajendrajaiswal | 47b64d7 | 2019-02-06 16:09:24 +0000 | [diff] [blame] | 17 | ${cli_cmd_output}= Run Process ${CLI_EXEC_CLI} shell=yes |
| 18 | Log ${cli_cmd_output.stdout} |
rajendrajaiswal | a157470 | 2019-02-14 10:29:45 +0000 | [diff] [blame^] | 19 | Should Be Equal As Strings ${cli_cmd_output.rc} 0 |
| 20 | Should Contain ${cli_cmd_output.stdout} "3gpppmmapper" |
rajendrajaiswal | 8f0afd8 | 2019-02-11 12:30:26 +0000 | [diff] [blame] | 21 | |
| 22 | *** Keywords *** |
| 23 | |
| 24 | PostCall |
| 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} |