Make REST Transaction 401 ${auth_token}
Disable Authentication And Re-Enable Authentication
- [Documentation] Toggles authentication off and verifies that no login credentials are needed for REST transactions
+ [Documentation] Toggles authentication off and verifies that no login credentials are needed for REST transactions.
+ ... Test has been disabled due to the fact that this interface has changed. Authentication is now disabled
+ ... through modification of shiro.ini, which requires controller restart and is not suit for this test.
+ [Tags] exclude
Disable Authentication On Controller ${ODL_SYSTEM_IP}
Wait Until Keyword Succeeds 10s 1s Make REST Transaction 200
Enable Authentication On Controller ${ODL_SYSTEM_IP}
Create Session ODL_SESSION http://${ODL_SYSTEM_IP}:8181
${headers}= Create Dictionary Content-Type=application/x-www-form-urlencoded
Run Keyword If "${auth_data}" != "${EMPTY}" Set To Dictionary ${headers} Authorization Bearer ${auth_data}
- ${resp}= RequestsLibrary.GET ODL_SESSION ${MODULES_API} headers=${headers}
+ ${resp}= RequestsLibrary.GET Request ODL_SESSION ${MODULES_API} headers=${headers}
Log STATUS_CODE: ${resp.status_code} CONTENT: ${resp.content}
Should Be Equal As Strings ${resp.status_code} ${expected_status_code}