Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions robotfm_tests/st2login_test.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. code:: robotframework

*** Settings ***
Library Process
Library String
Library OperatingSystem

*** Test Cases ***
Verify st2 is installed
${result}= Run Process st2 --version
Log To Console \nOUTPUT: ${result.stdout}

Attempt to log in using "st2 login"
${result}= Run Process st2 login st2admin --password Ch@ngeMe
Log To Console \n${result.stdout}
Should Contain ${result.stdout} Logged in as st2admin

Try running an action as the logged-in user
${result}= Run Process st2 run core.local date
Log To Console \n${result.stdout}
Should Contain ${result.stdout} succeeded: true