BjornMagnussonXA | c4c62f2 | 2019-03-06 14:11:57 +0000 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Library OperatingSystem |
| 3 | Library RequestsLibrary |
| 4 | |
| 5 | *** Variables *** |
| 6 | |
| 7 | |
| 8 | *** Test Cases *** |
| 9 | |
| 10 | Heartbeat test |
| 11 | [Documentation] Check DFC heartbeat |
| 12 | Heartbeat I'm living |
| 13 | |
| 14 | Stop test |
| 15 | [Documentation] Check DFC stop |
| 16 | Stop Datafile Service has already been stopped! |
| 17 | |
| 18 | Start test |
| 19 | [Documentation] Check DFC start |
| 20 | Start Datafile Service has been started! |
| 21 | |
| 22 | Heartbeat test - secure |
| 23 | [Documentation] Check DFC heartbeat, secure |
| 24 | Heartbeat-secure I'm living |
| 25 | |
| 26 | Stop test - secure |
| 27 | [Documentation] Check DFC stop, secure |
| 28 | Stop-secure Datafile Service has already been stopped! |
| 29 | |
| 30 | |
| 31 | Start test - secure |
| 32 | [Documentation] Check DFC start, secure |
| 33 | Start-secure Datafile Service has been started! |
| 34 | |
| 35 | |
| 36 | #PRobably move definitions of common Keywords to a common file |
| 37 | |
| 38 | *** Keywords *** |
| 39 | #Probably simplyfy the test cases by using variables for port numbers/urls etc |
| 40 | Heartbeat |
| 41 | [Arguments] ${respbody} |
| 42 | Create Session session http://localhost:8100/heartbeat |
| 43 | ${resp}= Get Request session / |
| 44 | Should Be Equal ${resp.text} ${respbody} |
| 45 | |
| 46 | Heartbeat-secure |
| 47 | [Arguments] ${respbody} |
| 48 | Create Session session https://localhost:8433/heartbeat |
| 49 | ${resp}= Get Request session / |
| 50 | Should Be Equal ${resp.text} ${respbody} |
| 51 | |
| 52 | Stop |
| 53 | [Arguments] ${respbody} |
| 54 | Create Session session http://localhost:8100/stopDatafile |
| 55 | ${resp}= Get Request session / |
| 56 | Should Be Equal ${resp.text} ${respbody} |
| 57 | |
| 58 | Stop-secure |
| 59 | [Arguments] ${respbody} |
| 60 | Create Session session https://localhost:8433/stopDatafile |
| 61 | ${resp}= Get Request session / |
| 62 | Should Be Equal ${resp.text} ${respbody} |
| 63 | |
| 64 | Start |
| 65 | [Arguments] ${respbody} |
| 66 | Create Session session http://localhost:8100/start |
| 67 | ${resp}= Get Request session / |
| 68 | Should Be Equal ${resp.text} ${respbody} |
| 69 | |
| 70 | Start-secure |
| 71 | [Arguments] ${respbody} |
| 72 | Create Session session https://localhost:8433/start |
| 73 | ${resp}= Get Request session / |
| 74 | Should Be Equal ${resp.text} ${respbody} |