[SEBA-238] test framework for subscriber module

Change-Id: Ic58c2cb72555e5eb095c2195b2a00bd48aec8444
diff --git a/src/test/cord-api/Framework/RG_Authentication.robot b/src/test/cord-api/Framework/Subscriber.robot
similarity index 72%
rename from src/test/cord-api/Framework/RG_Authentication.robot
rename to src/test/cord-api/Framework/Subscriber.robot
index 564aaa2..f7ae575 100644
--- a/src/test/cord-api/Framework/RG_Authentication.robot
+++ b/src/test/cord-api/Framework/Subscriber.robot
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 *** Settings ***
-Documentation     Library to Send EAPOL 802.1x messages from a RG (source host)
+Documentation     Library of functions related to RG (source host)
 Library           OperatingSystem
 Library           SSHLibrary
 
@@ -29,4 +29,14 @@
     ${result}=    Read Until    ${prompt}
     SSHLibrary.Close Connection
     Should Be Equal    ${result}    Successfully initialized wpa_supplicant
-    [Return]    ${result}
\ No newline at end of file
+    [Return]    ${result}
+
+Subscriber Status Check
+    [Arguments]    ${onu_device}
+    [Documentation]    Returns Status from Subscribers List for a particular ONU device
+    ${json_result}=    restApi.ApiGet    VOLT_SUBSCRIBER
+    Log    ${json_result}
+    ${json_result_list}=    Get From dictionary    ${json_result}    items
+    ${getJsonDict}=    utils.getDictFromListOfDict    ${json_result_list}    serial_number    ${onu_device}
+    ${status}=  Get From Dictionary    ${getJsonDict}   status
+    [Return]    ${status}