diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2019-02-14 14:39:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-14 14:39:40 +0000 |
commit | b82e804560e4628758915cd4f3e4c166326d9b4f (patch) | |
tree | d62478573c3981e293a53046a7733c26a30242eb /tests | |
parent | fd967387f666cdf7f7e57c7ee7ac4947c0dd0535 (diff) | |
parent | a1574707fd66cd38cdbda22d0bc8d900570904c3 (diff) |
Merge "Added Test and Setup files for PM Mapper"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot b/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot index ccfa4968..78d7bf30 100644 --- a/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot +++ b/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot @@ -1,35 +1,23 @@ *** Settings *** Documentation Testing PM Mapper functionality -Resource ../../common.robot Library Collections -Library json Library OperatingSystem Library RequestsLibrary -Library HttpLibrary.HTTP -Library String Library Process *** Variables *** -${BC_URL} http://${DMAAPBC_IP}:8080/webapi -${CLI_EXEC_CLI} curl http://${CBS_IP}:10000/service_component/pmmapper -${FEED1_DATA} { "feedName":"feed1", "feedVersion": "csit", "feedDescription":"generated for CSIT", "owner":"dgl", "asprClassification": "unclassified" } - +${CLI_EXEC_CLI} curl -k https://${DR_PROV_IP}:8443/internal/prov *** Test Cases *** -Verify pmmapper configuration in consul through CBS +Verify 3GPP PM Mapper Subscribes to Data Router [Tags] PM_MAPPER_01 - [Documentation] Verify pmmapper configuraiton in consul through CBS + [Documentation] Verify 3gpp pm mapper subscribes to data router ${cli_cmd_output}= Run Process ${CLI_EXEC_CLI} shell=yes Log ${cli_cmd_output.stdout} - Should Contain ${cli_cmd_output.stdout} pm-mapper-filter - -Create DR Feed through Bus Controller - [Tags] PM_MAPPER_02 - [Documentation] Create Feed on Data Router through Bus Controller - ${resp}= PostCall ${BC_URL}/feeds ${FEED1_DATA} - Should Be Equal As Integers ${resp.status_code} 200 + Should Be Equal As Strings ${cli_cmd_output.rc} 0 + Should Contain ${cli_cmd_output.stdout} "3gpppmmapper" *** Keywords *** |