initial seba-in-a-box functional tests
Change-Id: I955888d602e184b8986ef21e4969fd55b5368325
diff --git a/src/test/cord-api/Framework/ATTWorkFlowDriver.robot b/src/test/cord-api/Framework/ATTWorkFlowDriver.robot
index 3d63dde..402721d 100644
--- a/src/test/cord-api/Framework/ATTWorkFlowDriver.robot
+++ b/src/test/cord-api/Framework/ATTWorkFlowDriver.robot
@@ -45,6 +45,16 @@
Set Global Variable ${AttWhiteList_Id}
[Return] ${AttWhiteList_Id}
+Retrieve Whitelist Entry
+ [Arguments] ${serial_number}
+ [Documentation] Returns the whitelist entry per the onu's serial number
+ ${json_result}= restApi.ApiGet ATT_WHITELIST
+ Log ${json_result}
+ ${json_result_list}= Get From dictionary ${json_result} items
+ ${getJsonDict}= utils.getDictFromListOfDict ${json_result_list} serial_number ${serial_number}
+ ${id}= Get From Dictionary ${getJsonDict} id
+ [Return] ${id}
+
Delete Whitelist Entry
[Arguments] ${id}
[Documentation] Sends a DELETE to delete an att whitelist in XOS