blob: 9d9f26d694f08f7cac9516b54ac17f4994f83b8d [file] [log] [blame]
BjornMagnussonXAc4c62f22019-03-06 14:11:57 +00001*** Settings ***
2Library OperatingSystem
3Library RequestsLibrary
BjornMagnussonXA90b09742019-04-16 12:10:40 +00004Library Process
BjornMagnussonXAc4c62f22019-03-06 14:11:57 +00005
6*** Variables ***
7
8
9*** Test Cases ***
10
BjornMagnussonXAc4c62f22019-03-06 14:11:57 +000011Heartbeat test
12 [Documentation] Check DFC heartbeat
13 Heartbeat I'm living
14
15Stop test
16 [Documentation] Check DFC stop
17 Stop Datafile Service has already been stopped!
18
19Start test
20 [Documentation] Check DFC start
21 Start Datafile Service has been started!
22
23Heartbeat test - secure
24 [Documentation] Check DFC heartbeat, secure
25 Heartbeat-secure I'm living
26
27Stop test - secure
28 [Documentation] Check DFC stop, secure
29 Stop-secure Datafile Service has already been stopped!
30
BjornMagnussonXAc4c62f22019-03-06 14:11:57 +000031Start test - secure
32 [Documentation] Check DFC start, secure
33 Start-secure Datafile Service has been started!
34
35
BjornMagnussonXAc4c62f22019-03-06 14:11:57 +000036*** Keywords ***
37#Probably simplyfy the test cases by using variables for port numbers/urls etc
38Heartbeat
39 [Arguments] ${respbody}
40 Create Session session http://localhost:8100/heartbeat
41 ${resp}= Get Request session /
BjornMagnussonXA90b09742019-04-16 12:10:40 +000042 Should Match Regexp ${resp.text} ${respbody}*
BjornMagnussonXAc4c62f22019-03-06 14:11:57 +000043
44Heartbeat-secure
45 [Arguments] ${respbody}
46 Create Session session https://localhost:8433/heartbeat
47 ${resp}= Get Request session /
BjornMagnussonXA90b09742019-04-16 12:10:40 +000048 Should Match Regexp ${resp.text} ${respbody}*
BjornMagnussonXAc4c62f22019-03-06 14:11:57 +000049
50Stop
51 [Arguments] ${respbody}
52 Create Session session http://localhost:8100/stopDatafile
53 ${resp}= Get Request session /
54 Should Be Equal ${resp.text} ${respbody}
55
56Stop-secure
57 [Arguments] ${respbody}
58 Create Session session https://localhost:8433/stopDatafile
59 ${resp}= Get Request session /
60 Should Be Equal ${resp.text} ${respbody}
61
62Start
63 [Arguments] ${respbody}
64 Create Session session http://localhost:8100/start
65 ${resp}= Get Request session /
66 Should Be Equal ${resp.text} ${respbody}
67
68Start-secure
69 [Arguments] ${respbody}
70 Create Session session https://localhost:8433/start
71 ${resp}= Get Request session /
72 Should Be Equal ${resp.text} ${respbody}