-
-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathtest.hurl
More file actions
72 lines (62 loc) · 1.68 KB
/
Copy pathtest.hurl
File metadata and controls
72 lines (62 loc) · 1.68 KB
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
66
67
68
69
70
71
72
GET http://localhost:8080/
HTTP 200
[Asserts]
body contains "SQLPage"
body contains "Documentation"
body contains "Get Started"
body not contains "An error occurred"
GET http://localhost:8080/documentation.sql
HTTP 200
[Asserts]
body contains "SQLPage v"
body contains "components"
body contains "shell"
body not contains "An error occurred"
GET http://localhost:8080/component.sql?component=form
HTTP 200
[Asserts]
body contains "The form component"
body contains "Building forms in SQL"
body not contains "An error occurred"
GET http://localhost:8080/functions.sql?function=url_encode
HTTP 200
[Asserts]
body contains "sqlpage.url_encode"
body contains "Parameters"
body not contains "An error occurred"
GET http://localhost:8080/search.sql?search=form
HTTP 302
[Asserts]
header "Location" == "/component.sql?component=form"
GET http://localhost:8080/not-a-real-doc-page
HTTP 404
[Asserts]
body contains "Not Found"
body not contains "An error occurred"
GET http://localhost:8080/examples/authentication/
HTTP 302
[Asserts]
header "Location" == "login.sql"
GET http://localhost:8080/examples/authentication/login.sql
HTTP 200
[Asserts]
body contains "Demo Login Form"
body contains "admin"
body not contains "An error occurred"
POST http://localhost:8080/examples/authentication/create_session_token.sql
[FormParams]
username: admin
password: admin
HTTP 302
[Asserts]
header "Location" == "/examples/authentication"
GET http://localhost:8080/examples/authentication/
HTTP 200
[Asserts]
body contains "You are logged in as admin"
body contains "Log out"
body not contains "An error occurred"
GET http://localhost:8080/examples/authentication/logout.sql
HTTP 302
[Asserts]
header "Location" == "login.sql"