*** Settings *** Suite Setup Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS} Suite Teardown Delete All Sessions Library SSHLibrary Library Collections Library RequestsLibrary Library OperatingSystem Library requests Variables ../../../variables/Variables.py *** Variables *** ${SET_DASHBOARD_JSON} ${CURDIR}/../../../variables/centinel/set_dashboard.json *** Test Cases *** Set DashboardRecord ${body} OperatingSystem.Get File ${SET_DASHBOARD_JSON} ${resp} RequestsLibrary.Post Request session ${SET_DASHBOARDRECORD} ${body} Log ${resp.content} Should Be Equal As Strings ${resp.status_code} 200 Get DashboardRecord ${resp} RequestsLibrary.Get Request session ${GET_DASHBOARDRECORD} Log ${resp.content} Should Be Equal As Strings ${resp.status_code} 200 Delete DashboardRecord ${resp} RequestsLibrary.Get Request session ${GET_DASHBOARDRECORD} Should Be Equal As Strings ${resp.status_code} 200 ${result} To JSON ${resp.content} ${dashboardRecord} Get From Dictionary ${result} dashboardRecord ${dashboardList} Get From Dictionary ${dashboardRecord} dashboardList ${dashboard} Get From List ${dashboardList} 0 ${dashboardID} Get From Dictionary ${dashboard} dashboardID Set Suite Variable ${dashboardJson} {"input":{"dashboardID":"${dashboardID}"}} ${delresp} RequestsLibrary.Post Request session ${DELETE_DASHBOARDRECORD} ${dashboardJson} Log ${resp.content} Should Be Equal As Strings ${delresp.status_code} 200