Skip to content

Commit 1e6859a

Browse files
committed
Skip tests on versions older than nginx-0.8.3 and nginx-0.7.62. They don't have $upstream_cache_status, so we have no way of checking source of the response.
Found by build farm for nginx modules.
1 parent 2e88b84 commit 1e6859a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/proxy.t

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ GET /proxy/passwd
5252
Content-Type: text/plain
5353
--- response_body_like: root
5454
--- timeout: 10
55+
--- skip_nginx2: 3: < 0.8.3 or < 0.7.62
5556
5657
5758
@@ -66,6 +67,7 @@ Content-Type: text/plain
6667
X-Cache-Status: HIT
6768
--- response_body_like: root
6869
--- timeout: 10
70+
--- skip_nginx2: 4: < 0.8.3 or < 0.7.62
6971
7072
7173
@@ -79,6 +81,7 @@ DELETE /purge/proxy/passwd
7981
Content-Type: text/html
8082
--- response_body_like: Successful purge
8183
--- timeout: 10
84+
--- skip_nginx2: 3: < 0.8.3 or < 0.7.62
8285
8386
8487
@@ -92,6 +95,7 @@ DELETE /purge/proxy/passwd
9295
Content-Type: text/html
9396
--- response_body_like: 404 Not Found
9497
--- timeout: 10
98+
--- skip_nginx2: 3: < 0.8.3 or < 0.7.62
9599
96100
97101
@@ -106,6 +110,7 @@ Content-Type: text/plain
106110
X-Cache-Status: MISS
107111
--- response_body_like: root
108112
--- timeout: 10
113+
--- skip_nginx2: 4: < 0.8.3 or < 0.7.62
109114
110115
111116
@@ -120,3 +125,4 @@ Content-Type: text/plain
120125
X-Cache-Status: HIT
121126
--- response_body_like: root
122127
--- timeout: 10
128+
--- skip_nginx2: 4: < 0.8.3 or < 0.7.62

0 commit comments

Comments
 (0)