From 667bd5989042cf27bfbe10d5d2c21b776502924a Mon Sep 17 00:00:00 2001 From: JoeOLeary Date: Tue, 5 Mar 2019 09:21:26 +0000 Subject: Update PM Mapper Setup & Test Case *Remove space in extra_hosts of compose files *Update setup to include pm-mapper host entry in node *Update config file to match latest expected config *Update metadata tests to use new endpoint & new headers *Update docker image versions Issue-ID: INT-863 Change-Id: I1c4d7bb48824031c1fd11ea11266b42af4f57cc0 Signed-off-by: JoeOLeary --- tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/dcaegen2-pmmapper') diff --git a/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot b/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot index a05defb5..71344632 100644 --- a/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot +++ b/tests/dcaegen2-pmmapper/pmmapper/pmmapper.robot @@ -38,7 +38,7 @@ Verify 3GPP PM Mapper responds appropriately when no metadata is provided [Documentation] Verify 3GPP PM Mapper responds 400 with the message "Missing Metadata." when no metadata is provided [Timeout] 1 minute ${headers}= Create Dictionary X-ONAP-RequestID=1 Content-Type=application/xml - ${resp}= Put Request mapper_session ${DELIVERY_ENDPOINT} data='${EMPTY}' headers=${headers} + ${resp}= Put Request mapper_session ${DELIVERY_ENDPOINT}/filename data='${EMPTY}' headers=${headers} Should Be Equal As Strings ${resp.status_code} 400 Should Be Equal As Strings ${resp.content} Missing Metadata. @@ -46,8 +46,8 @@ Verify 3GPP PM Mapper responds appropriately when invalid metadata is provided [Tags] PM_MAPPER_11 [Documentation] Verify 3GPP PM Mapper responds 400 with the message "Malformed Metadata." when invalid metadata is provided [Timeout] 1 minute - ${headers}= Create Dictionary X-ONAP-RequestID=1 X-ATT-DR-META='not metadata' Content-Type=application/xml - ${resp}= Put Request mapper_session ${DELIVERY_ENDPOINT} data='${EMPTY}' headers=${headers} + ${headers}= Create Dictionary X-ONAP-RequestID=1 X-DMAAP-DR-META='not metadata' Content-Type=application/xml + ${resp}= Put Request mapper_session ${DELIVERY_ENDPOINT}/filename data='${EMPTY}' headers=${headers} Should Be Equal As Strings ${resp.status_code} 400 Should Be Equal As Strings ${resp.content} Malformed Metadata. -- cgit 1.2.3-korg