| Documentation The main interface for interacting with External API/NBI |
| ${GLOBAL_NBI_SERVER_PROTOCOL} http |
| ${GLOBAL_INJECTED_NBI_IP_ADDR} localhost |
| ${GLOBAL_NBI_SERVER_PORT} 8080 |
| ${NBI_HEALTH_CHECK_PATH} /nbi/api/v4/status |
| ${NBI_ENDPOINT} ${GLOBAL_NBI_SERVER_PROTOCOL}://${GLOBAL_INJECTED_NBI_IP_ADDR}:${GLOBAL_NBI_SERVER_PORT} |
| [Documentation] Runs NBI Health check |
| ${resp}= Run NBI Get Request ${NBI_HEALTH_CHECK_PATH} |
| Should Be Equal As Integers ${resp.status_code} 200 |
| [Documentation] Runs NBI Get request |
| ${session}= Create Session session ${NBI_ENDPOINT} |
| ${resp}= Get Request session ${data_path} |
| Should Be Equal As Integers ${resp.status_code} 200 |
| Log Received response from NBI ${resp.text} |
| ${json}= Set Variable ${resp.json()} |
| ${status}= Get From Dictionary ${json} status |
| Should Be Equal ${status} ok |