Skip to content

Commit 818886b

Browse files
committed
Add nginx example Hurl workflow
1 parent ef68cba commit 818886b

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

examples/nginx/test.hurl

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/nginx/test.hurl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# nginx proxies SQLPage dynamic pages and rewrites pretty post URLs.
2+
GET http://localhost:8080/
3+
HTTP 200
4+
[Asserts]
5+
header "Content-Type" contains "text/html"
6+
body contains "Blog Posts"
7+
body contains "First Post"
8+
body contains "Hello World"
9+
10+
GET http://localhost:8080/post/1
11+
HTTP 200
12+
[Asserts]
13+
header "Content-Type" contains "text/html"
14+
body contains "Post Details"
15+
body contains "This is the content of the first post."
16+
body contains "Great post!"
17+
body contains "Add a comment"
18+
19+
# /static/ is served by nginx directly, not proxied to SQLPage.
20+
GET http://localhost:8080/static/index.sql
21+
HTTP 404
22+
[Asserts]
23+
body contains "nginx"

0 commit comments

Comments
 (0)