Suchitra Vemuri | 2c73426 | 2018-09-06 14:34:42 -0700 | [diff] [blame^] | 1 | *** Settings *** |
| 2 | Documentation Library to retrieve status fields from ATT WorkFlow Driver Service Instance List |
| 3 | Library Collections |
| 4 | Library String |
| 5 | Library OperatingSystem |
| 6 | Library XML |
| 7 | Library RequestsLibrary |
| 8 | Library ../Framework/utils/utils.py |
| 9 | Library ../Framework/restApi.py |
| 10 | |
| 11 | *** Keywords *** |
| 12 | Service Instance Status Check |
| 13 | [Arguments] ${onu_device} |
| 14 | [Documentation] Returns Status and authentication_state field values from att work flow driver for a particular ONU device |
| 15 | ${json_result}= restApi.ApiGet ATT_SERVICEINSTANCES |
| 16 | Log ${json_result} |
| 17 | ${json_result_list}= Get From dictionary ${json_result} items |
| 18 | ${getJsonDict}= utils.getDictFromListOfDict ${json_result_list} serial_number ${onu_device} |
| 19 | ${status}= Get From Dictionary ${getJsonDict} valid |
| 20 | ${authentication_status}= Get From Dictionary ${getJsonDict} authentication_state |
| 21 | [Return] ${status} ${authentication_status} |