PLaceholder for CSIT
[integration/csit.git] / tests / ccsdk / oran / suite2 / test1.robot
1 *** Settings ***
2 Library       OperatingSystem
3 Library       RequestsLibrary
4
5 *** Variables ***
6 ${MESSAGE}    Hello, world!
7
8 *** Test Cases ***
9 String Equality Test
10     Should Be Equal    ${MESSAGE}    Hello, world!
11
12 Dir Test
13     [Documentation]    Check if /tmp exists
14     Log                ${MESSAGE}
15     CheckDir           /tmp
16
17 Url Test
18     [Documentation]    Check if www.onap.org can be reached
19     Create Session     openo          http://www.onap.org
20     CheckUrl           openo          /
21
22 *** Keywords ***
23 CheckDir
24     [Arguments]                 ${path}
25     Directory Should Exist      ${path}
26
27 CheckUrl
28     [Arguments]                  ${session}   ${path}
29     ${resp}=                     Get Request          ${session}               ${path}
30     Should Be Equal As Integers  ${resp.status_code}  200