aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2-collectors-datafile/testsuites/ManagementInterface-suite/MI.robot
blob: 875228bdd9684fca69cc4196ba6f365f5aae859d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
*** Settings ***
Library       OperatingSystem
Library       RequestsLibrary
Library  Process

*** Variables ***


*** Test Cases ***


Heartbeat test
    [Documentation]    Check DFC heartbeat
    Heartbeat        I'm living

Stop test
    [Documentation]    Check DFC stop
    Stop           Datafile Service has already been stopped!

Start test
    [Documentation]    Check DFC start
    Start            Datafile Service has been started!

Heartbeat test - secure
    [Documentation]    Check DFC heartbeat, secure
    Heartbeat-secure   I'm living

Stop test - secure
    [Documentation]    Check DFC stop, secure
    Stop-secure        Datafile Service has already been stopped!


Start test - secure
    [Documentation]    Check DFC start, secure
    Start-secure       Datafile Service has been started!


#PRobably move definitions of common Keywords to a common file

*** Keywords ***
#Probably simplyfy the test cases by using variables for port numbers/urls etc
Heartbeat
    [Arguments]                  ${respbody}
    Create Session               session              http://localhost:8100/heartbeat
    ${resp}=                     Get Request          session                  /
    Should Be Equal        ${resp.text}       ${respbody}

Heartbeat-secure
    [Arguments]                  ${respbody}
    Create Session               session              https://localhost:8433/heartbeat
    ${resp}=                     Get Request          session                  /
    Should Be Equal        ${resp.text}       ${respbody}

Stop
    [Arguments]                  ${respbody}
    Create Session               session              http://localhost:8100/stopDatafile
    ${resp}=                     Get Request          session                  /
    Should Be Equal        ${resp.text}       ${respbody}

Stop-secure
    [Arguments]                  ${respbody}
    Create Session               session              https://localhost:8433/stopDatafile
    ${resp}=                     Get Request          session                  /
    Should Be Equal        ${resp.text}       ${respbody}

Start
    [Arguments]                  ${respbody}
    Create Session               session              http://localhost:8100/start
    ${resp}=                     Get Request          session                  /
    Should Be Equal        ${resp.text}       ${respbody}

Start-secure
    [Arguments]                  ${respbody}
    Create Session               session              https://localhost:8433/start
    ${resp}=                     Get Request          session                  /
    Should Be Equal        ${resp.text}       ${respbody}