Skip to content

Commit 719a1bc

Browse files
committed
chore(test): update http.hurl
Signed-off-by: Xin Liu <[email protected]>
1 parent 4164dce commit 719a1bc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/http.hurl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ duration < 1000 # Should respond within 1 second
1616
GET http://localhost:{{port}}/test-http/get
1717
HTTP 200
1818
[Asserts]
19-
jsonpath "$.url" == "https://httpbin.org/get"
19+
jsonpath "$.url" == "http://localhost:8888/get"
2020
header "Content-Type" contains "application/json"
2121

2222
# =============================================================================
@@ -42,7 +42,7 @@ Content-Type: application/json
4242
}
4343
HTTP 200
4444
[Asserts]
45-
jsonpath "$.url" == "https://httpbin.org/post"
45+
jsonpath "$.url" == "http://localhost:8888/post"
4646
jsonpath "$.json.test" == "data"
4747
jsonpath "$.json.number" == 42
4848
jsonpath "$.json.nested.key" == "value"
@@ -58,7 +58,7 @@ Content-Type: application/json
5858
}
5959
HTTP 200
6060
[Asserts]
61-
jsonpath "$.url" == "https://httpbin.org/put"
61+
jsonpath "$.url" == "http://localhost:8888/put"
6262
jsonpath "$.json.action" == "update"
6363

6464
# =============================================================================
@@ -67,7 +67,7 @@ jsonpath "$.json.action" == "update"
6767
DELETE http://localhost:{{port}}/test-http/delete
6868
HTTP 200
6969
[Asserts]
70-
jsonpath "$.url" == "https://httpbin.org/delete"
70+
jsonpath "$.url" == "http://localhost:8888/delete"
7171

7272
# =============================================================================
7373
# HTTP Proxy - Custom Headers Test
@@ -86,7 +86,7 @@ jsonpath "$.headers['User-Agent']" == "ss-proxy-test/1.0"
8686
GET http://localhost:{{port}}/test-http/anything/path/to/resource
8787
HTTP 200
8888
[Asserts]
89-
jsonpath "$.url" == "https://httpbin.org/anything/path/to/resource"
89+
jsonpath "$.url" == "http://localhost:8888/anything/path/to/resource"
9090

9191
# =============================================================================
9292
# JSON API Proxy Test (jsonplaceholder)

0 commit comments

Comments
 (0)