summaryrefslogtreecommitdiffstats
path: root/csit/tests/ncmp-passthrough/ncmp-passthrough.robot
diff options
context:
space:
mode:
authorDylanB95EST <dylan.byrne@est.tech>2021-11-30 15:07:35 +0000
committerDylanB95EST <dylan.byrne@est.tech>2021-12-09 16:42:55 +0000
commitf0712fbe3857e698f8d7f3bdb22f5e7ccb4ca4e5 (patch)
treea23c52bc2e57e91fcee9e92a69a8fc3281b7e94e /csit/tests/ncmp-passthrough/ncmp-passthrough.robot
parent8c9b4a24b4841154a2d08f506e2f7beca4f6fc31 (diff)
CSIT Tests for NCMP Delete on Passthrough Running. 3/3
Adding Integration End To End tests for delete passthrough running with SDNC. Change-Id: I0e9aeefe3456d404f0f03b60bee0d08b3464cb6f Issue-ID: CPS-769 Signed-off-by: DylanB95EST <dylan.byrne@est.tech>
Diffstat (limited to 'csit/tests/ncmp-passthrough/ncmp-passthrough.robot')
-rw-r--r--csit/tests/ncmp-passthrough/ncmp-passthrough.robot22
1 files changed, 21 insertions, 1 deletions
diff --git a/csit/tests/ncmp-passthrough/ncmp-passthrough.robot b/csit/tests/ncmp-passthrough/ncmp-passthrough.robot
index 77d7f41037..51eabc87e9 100644
--- a/csit/tests/ncmp-passthrough/ncmp-passthrough.robot
+++ b/csit/tests/ncmp-passthrough/ncmp-passthrough.robot
@@ -95,4 +95,24 @@ Verify update to bookstore using passthrough-running did not remove category 02
${responseJson}= Set Variable ${response.json()}
Should Be Equal As Strings ${response.status_code} 200
${schemaCount}= Get length ${responseJson['stores:bookstore']['categories']}
- Should Be Equal As Numbers ${schemaCount} 2 \ No newline at end of file
+ Should Be Equal As Numbers ${schemaCount} 2
+
+Delete Bookstore using passthrough-running for Category 01
+ ${uri}= Set Variable ${ncmpBasePath}/v1/ch/PNFDemo/data/ds/ncmp-datastore:passthrough-running?resourceIdentifier=stores:bookstore/categories=01
+ ${headers}= Create Dictionary Content-Type=application/json Authorization=${auth}
+ ${response}= DELETE On Session CPS_URL ${uri} headers=${headers} data=''
+ Should Be Equal As Strings ${response.status_code} 204
+
+Verify delete to bookstore using passthrough-running removed only category 01
+ ${uri}= Set Variable ${ncmpBasePath}/v1/ch/PNFDemo/data/ds/ncmp-datastore:passthrough-running?resourceIdentifier=stores:bookstore
+ ${headers}= Create Dictionary Authorization=${auth}
+ ${response}= Get On Session CPS_URL ${uri} headers=${headers}
+ ${responseJson}= Set Variable ${response.json()}
+ Should Be Equal As Strings ${response.status_code} 200
+ ${schemaCount}= Get length ${responseJson['stores:bookstore']['categories']}
+ Should Be Equal As Numbers ${schemaCount} 1
+ FOR ${item} IN @{responseJson['stores:bookstore']['categories']}
+ IF "${item['code']}" == "02"
+ Should Be Equal As Strings "${item['name']}" "Horror"
+ END
+ END