blob: 7020042b1856d8ab5de0272562f9252610c41052 [file] [log] [blame]
BjornMagnussonXAc4c62f22019-03-06 14:11:57 +00001*** Settings ***
2Library OperatingSystem
3Library RequestsLibrary
4
5*** Variables ***
6
7
8*** Test Cases ***
9
10Heartbeat test
11 [Documentation] Check DFC heartbeat
12 Heartbeat I'm living
13
14Stop test
15 [Documentation] Check DFC stop
16 Stop Datafile Service has already been stopped!
17
18Start test
19 [Documentation] Check DFC start
20 Start Datafile Service has been started!
21
22Heartbeat test - secure
23 [Documentation] Check DFC heartbeat, secure
24 Heartbeat-secure I'm living
25
26Stop test - secure
27 [Documentation] Check DFC stop, secure
28 Stop-secure Datafile Service has already been stopped!
29
30
31Start 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
40Heartbeat
41 [Arguments] ${respbody}
42 Create Session session http://localhost:8100/heartbeat
43 ${resp}= Get Request session /
44 Should Be Equal ${resp.text} ${respbody}
45
46Heartbeat-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
52Stop
53 [Arguments] ${respbody}
54 Create Session session http://localhost:8100/stopDatafile
55 ${resp}= Get Request session /
56 Should Be Equal ${resp.text} ${respbody}
57
58Stop-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
64Start
65 [Arguments] ${respbody}
66 Create Session session http://localhost:8100/start
67 ${resp}= Get Request session /
68 Should Be Equal ${resp.text} ${respbody}
69
70Start-secure
71 [Arguments] ${respbody}
72 Create Session session https://localhost:8433/start
73 ${resp}= Get Request session /
74 Should Be Equal ${resp.text} ${respbody}