aboutsummaryrefslogtreecommitdiffstats
path: root/tests/resources/libraries/robot/common.robot
blob: c1e3f20a4aed9083abfd895bc70a1d102fa29957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
*** Settings ***
Library    OperatingSystem
Library    Process
Library    String

*** Variables ***

*** Keywords ***

Build Topology
    [Arguments]          ${TEST_TOPOLOGY}=${NONE}                                    ${TEST_CONFIGURATION}=${NONE}
    Log to console       Building topology ${TEST_TOPOLOGY} ${TEST_CONFIGURATION}
    ${result_setup} =    Run Process                                                 ${EXECDIR}/config.sh              build    setup    ${TEST_TOPOLOGY}    ${TEST_CONFIGURATION}
    Log to console       Done
    Log Many             stdout: ${result_setup.stdout}                              stderr: ${result_setup.stderr}

Check Environment
    ${result} =    Run Process                 docker                      ps
    Log Many       stdout: ${result.stdout}    stderr: ${result.stderr}

Destroy Topology
    ${result_teardown} =    Run Process                          ${EXECDIR}/config.sh                 stopall
    Log Many                stdout: ${result_teardown.stdout}    stderr: ${result_teardown.stderr}