-Documentation Test Basic Authentication support in RESTCONF
-Suite Teardown Delete All Sessions
-Library RequestsLibrary
-Library String
-Resource ../../../variables/Variables.robot
+Documentation Test Basic Authentication support in RESTCONF
+
+Library RequestsLibrary
+Library String
+Resource ../../../variables/Variables.robot
+
+Suite Teardown Delete All Sessions
+
-${JOLOKIA_TEST_URL} jolokia
-${JOLOKIA_USER} ${ODL_RESTCONF_USER}
-${JOLOKIA_PW} ${ODL_RESTCONF_PASSWORD}
-${BAD_USER} bad_user
-${BAD_PW} bad_pw
-${JOLOKIA_BAD_USER} ${BAD_USER}
-${USERS_REST_URL} auth/v1/users
-${USER_USER} user
-${USER_PW} user
+${JOLOKIA_TEST_URL} jolokia
+${JOLOKIA_USER} ${ODL_RESTCONF_USER}
+${JOLOKIA_PW} ${ODL_RESTCONF_PASSWORD}
+${BAD_USER} bad_user
+${BAD_PW} bad_pw
+${JOLOKIA_BAD_USER} ${BAD_USER}
+${USERS_REST_URL} auth/v1/users
+${USER_USER} user
+${USER_PW} user
+
IDM Endpoints Only Available To admin Role
[Documentation] A user with a non-"admin" role should not have access to AAA endpoints
IDM Endpoints Only Available To admin Role
[Documentation] A user with a non-"admin" role should not have access to AAA endpoints
Create Session httpbin http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${auth} headers=${HEADERS}
${resp} = RequestsLibrary.Get Request httpbin ${USERS_REST_URL}
Should Be Equal As Numbers ${resp.status_code} 401
Create Session httpbin http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${auth} headers=${HEADERS}
${resp} = RequestsLibrary.Get Request httpbin ${USERS_REST_URL}
Should Be Equal As Numbers ${resp.status_code} 401
@{auth} = Create List ${user} ${password}
Create Session httpbin http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${auth} headers=${HEADERS}
${resp} = RequestsLibrary.Get Request httpbin ${url}
@{auth} = Create List ${user} ${password}
Create Session httpbin http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${auth} headers=${HEADERS}
${resp} = RequestsLibrary.Get Request httpbin ${url}
@{auth} = Create List ${user} ${password}
Create Session httpbin http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${auth} headers=${HEADERS}
${resp} = RequestsLibrary.Get Request httpbin ${url}
@{auth} = Create List ${user} ${password}
Create Session httpbin http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${auth} headers=${HEADERS}
${resp} = RequestsLibrary.Get Request httpbin ${url}