diff options
author | zhaoyh6 <zhaoyh6@asiainfo.com> | 2022-08-16 11:00:43 +0800 |
---|---|---|
committer | zhaoyh6 <zhaoyh6@asiainfo.com> | 2022-08-16 11:00:52 +0800 |
commit | 16370de283aaf6b3c5bb21b7fb2a52770c681eae (patch) | |
tree | bf533ab92afdf3f7b8da6f3c47e180b3bd8850bf /tests/dcaegen2-services-slice-analysis-ms | |
parent | ae1a866583e8216b2e088038084d978c74d6b6e8 (diff) |
Due to the format change in the message queue caused by the SDK change, the function of removing redundant characters is added in the test case
Issue-ID: DCAEGEN2-3157
Signed-off-by: zhaoyh6 <zhaoyh6@asiainfo.com>
Change-Id: I0a1cf8ba5b6c1278bec360e6e54bc57ccb3c8613
Diffstat (limited to 'tests/dcaegen2-services-slice-analysis-ms')
-rw-r--r-- | tests/dcaegen2-services-slice-analysis-ms/testcases/slice-analysis-ms-test-aai-dcae.robot | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/dcaegen2-services-slice-analysis-ms/testcases/slice-analysis-ms-test-aai-dcae.robot b/tests/dcaegen2-services-slice-analysis-ms/testcases/slice-analysis-ms-test-aai-dcae.robot index f0e80299..7e27ae43 100644 --- a/tests/dcaegen2-services-slice-analysis-ms/testcases/slice-analysis-ms-test-aai-dcae.robot +++ b/tests/dcaegen2-services-slice-analysis-ms/testcases/slice-analysis-ms-test-aai-dcae.robot @@ -50,6 +50,7 @@ Verify periodic checking from dmaap ${expected_payload}= Evaluate json.loads("""${expected_string}""") json ${result}= Convert To String ${result.content} ${result_string}= Get Substring ${result} 2 -2 + ${result_string}= RemoveExtraByte ${result_string} ${actual_data}= Evaluate json.loads("""${result_string}""") json ${actual_payload_str}= Set Variable ${actual_data['payload']} ${actual_payload}= Evaluate json.loads("""${actual_payload_str}""") json @@ -86,6 +87,7 @@ Verify ccvpn modification from dmaap ${expected_payload}= Evaluate json.loads("""${expected_string}""") json ${result}= Convert To String ${result.content} ${result_string}= Get Substring ${result} 2 -2 + ${result_string}= RemoveExtraByte ${result_string} ${actual_data}= Evaluate json.loads("""${result_string}""") json ${actual_payload_str}= Set Variable ${actual_data['payload']} ${actual_payload}= Evaluate json.loads("""${actual_payload_str}""") json @@ -93,4 +95,12 @@ Verify ccvpn modification from dmaap *** Keywords *** Provided precondition - Setup system under test
\ No newline at end of file + Setup system under test + +RemoveExtraByte + [Arguments] ${result_string} + ${result_string}= Get Substring ${result_string} 2 -2 + ${result_string}= Replace String ${result_string} \\\" \" + ${result_string}= Replace String ${result_string} \\\\ \\ + [Return] ${result_string} + |