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