diff options
author | rajendrajaiswal <rajendra.jaiswal@ericsson.com> | 2019-02-14 10:29:45 +0000 |
---|---|---|
committer | root <rajendra.jaiswal@ericsson.com> | 2019-02-14 11:56:14 +0000 |
commit | a1574707fd66cd38cdbda22d0bc8d900570904c3 (patch) | |
tree | f5ff7346f45e44d4093ef617f111d5967e1b4656 /tests/dcaegen2-pmmapper/pmmapper | |
parent | 8f0afd8a099200fb7001ded306dceb015a63517b (diff) |
Added Test and Setup files for PM Mapper
Change-Id: I891b48873fc893d93d48f2a2233a780492071819
Issue-ID: INT-863
Signed-off-by: Rajendra Jaiswal <rajendra.jaiswal@ericsson.com>
Diffstat (limited to 'tests/dcaegen2-pmmapper/pmmapper')
-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 *** |