-
Notifications
You must be signed in to change notification settings - Fork 5
/
sample.tst
66 lines (57 loc) · 1.9 KB
/
sample.tst
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
# See: https://golang.org/pkg/regexp/syntax/
# For RE Expression matching syntax
#
# Login and get a session token
{ "id" : "018-login",
"verb" : "GET",
"uri" : "https://abcdex1.org/login?user=test&pass=alive",
"expected" : 200,
"keepBodyAs" : "sessionToken",
"keepBodyDefault" : "D1A2C8F10A0AB0C0A1DEFAULT"
}
#END
#WAIT
# See: https://golang.org/pkg/regexp/syntax/
# For RE Expression matching syntax
#
# Test simple index page contains expected content.
{ "id" : "0182772-airSolarWater-dem-index-contains-solomon",
"verb" : "GET",
"uri" : "https://airsolarwater.com/dem/",
"headers": {
"sessionToken": "{sessionToken}",
"Meta-Roles": "PUBLIC",
"ENV" : "{ENVIRONMENT}"
},
"expected" : 200,
"rematch" : ".*Solomon.*Tuvalu.*Tesla",
"message" :"Air solar Water index must contain island names"
}
#END
# Test CGI Call to DEM Sub ssytem
{ "id" : "0182-DEM-CGI-CALL-GEOPOINT",
"verb" : "GET",
"uri" : "http://airsolarwater.com/dem/drains.svc?buri=gdata/dnt-rodrigues-island-50&offset=1591792&geo=-19.71542,63.34569",
"expected" : 200,
"rematch" : "-19.71542,63.34569,1.00.*-19.71736,63.34514",
"message" :"Checking CGI Geo Point"
}
#END
# Test CGI Call to DEM Sub system failure due to RE match failure
{ "id" : "0182-DEM-CGI-CALL-GEOPOINT-EXPECT-FAIL",
"verb" : "GET",
"uri" : "http://airsolarwater.com/dem/drains.svc?buri=gdata/dnt-rodrigues-island-50&offset=1591792&geo=-19.71542,63.34569",
"expected" : 200,
"rematch" : "-19.71542,63.34569,1.00.*-19.71736,63.XXX34514",
"message" :"Checking CGI Geo Point"
}
#END
# Test Google page contains expected text
{ "id" : "0182-google-home-contains-search",
"verb" : "GET",
"uri" : "https://google.com",
"expected" : 200,
"rematch" : ".*Search.*div.*Google",
"message" :"Google home must contain 'search' followed by 'div' followed by 'Google'"
}
#END