*** Settings *** Documentation Akas auth-ok auth-unauthorized URL test suite Library Collections Library Process Library RequestsLibrary Test Tags url-ok-unauthorized cli *** Variables *** ${BIN} release/akas ${AKAS_WAIT} 1s *** Test Cases *** Test AKAS /auth-ok URL: default [Documentation] auth ok test When Start Process ${BIN} serve --no-admin-key alias=akas And Sleep ${AKAS_WAIT} GET http://localhost:5001/auth-ok expected_status=200 ${result} = And Terminate Process akas Then Should Be Equal As Integers ${result.rc} 0 And Should Contain ${result.stdout} Log level: INFO And Should Contain ${result.stdout} Starting server on http://localhost:5001 ... And Should Contain ${result.stdout} access: auth-ok [Teardown] Kill Akas Server Test AKAS /auth-ok URL: another port, no log [Documentation] auth ok test When Start Process ${BIN} serve --no-admin-key --port 5002 --log-level warn alias=akas And Sleep ${AKAS_WAIT} GET http://localhost:5002/auth-ok expected_status=200 ${result} = And Terminate Process akas Then Should Be Equal As Integers ${result.rc} 0 And Should Not Contain ${result.stdout} Log level: And Should Not Contain ${result.stdout} Starting server on http://localhost:5002 ... And Should Not Contain ${result.stdout} access: auth-ok [Teardown] Kill Akas Server Test AKAS /auth-unauthorized URL: default [Documentation] auth unauthorized test When Start Process ${BIN} serve --no-admin-key alias=akas And Sleep ${AKAS_WAIT} GET http://localhost:5001/auth-unauthorized expected_status=401 ${result} = And Terminate Process akas Then Should Be Equal As Integers ${result.rc} 0 And Should Contain ${result.stdout} Log level: INFO And Should Contain ${result.stdout} Starting server on http://localhost:5001 ... And Should Contain ${result.stdout} access: auth-unauthorized [Teardown] Kill Akas Server Test AKAS /auth-unauthorized URL: another port, no log [Documentation] auth unauthorized test When Start Process ${BIN} serve --no-admin-key --port 5002 --log-level warn alias=akas And Sleep ${AKAS_WAIT} GET http://localhost:5002/auth-unauthorized expected_status=401 ${result} = And Terminate Process akas Then Should Be Equal As Integers ${result.rc} 0 And Should Not Contain ${result.stdout} Log level: And Should Not Contain ${result.stdout} Starting server on http://localhost:5002 ... And Should Not Contain ${result.stdout} access: auth-unauthorized [Teardown] Kill Akas Server *** Keywords *** Kill Akas Server [Documentation] A keyword for killing AKAS process if any Log To Console Terminate All Processes kill=True