blob: 5d354dde9601f4e6ec4254b0308e463ddda336a0 [file] [log] [blame]
maximesson181070f2020-08-07 14:18:32 +02001*** Settings ***
2Library OperatingSystem
3Library RequestsLibrary
4
5*** Variables ***
6${MESSAGE} Hello, world!
7
8*** Test Cases ***
9String Equality Test
10 Should Be Equal ${MESSAGE} Hello, world!
11
12Dir Test
13 [Documentation] Check if /tmp exists
14 Log ${MESSAGE}
15 CheckDir /tmp
16
17Url 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 ***
23CheckDir
24 [Arguments] ${path}
25 Directory Should Exist ${path}
26
27CheckUrl
28 [Arguments] ${session} ${path}
29 ${resp}= Get Request ${session} ${path}
30 Should Be Equal As Integers ${resp.status_code} 200