aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional-tests/hicn-light-control.robot
blob: 147226188a3607cfad3a542b266ce561116ec44f (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
*** Settings ***
Resource            ../resources/libraries/robot/common.robot

Test Setup          Run Keywords
...                     Build Topology
...                     1-node
...                     AND
...                     Check Environment
Test Teardown       Run Keywords
...                     Destroy Topology


*** Test Cases ***
Listeners
    Log to console    Test listeners
    ${result} =    Run Process
    ...    bash
    ...    -x
    ...    ${EXECDIR}/config.sh
    ...    ctrl
    ...    listeners
    Log Many    stdout:    ${result.stdout}
    Should Be Equal As Integers    ${result.rc}    0
    Should Not Contain    ${result.stdout}    FAILED

Connections
    Log to console    Test connections
    ${result} =    Run Process
    ...    bash
    ...    -x
    ...    ${EXECDIR}/config.sh
    ...    ctrl
    ...    connections
    Log Many    stdout:    ${result.stdout}
    Should Be Equal As Integers    ${result.rc}    0
    Should Not Contain    ${result.stdout}    FAILED

Routes
    Log to console    Test routes
    ${result} =    Run Process
    ...    bash
    ...    -x
    ...    ${EXECDIR}/config.sh
    ...    ctrl
    ...    routes
    Log Many    stdout:    ${result.stdout}
    Should Be Equal As Integers    ${result.rc}    0
    Should Not Contain    ${result.stdout}    FAILED