We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0f7f1e commit c6d66b2Copy full SHA for c6d66b2
1 file changed
tests/pylt/tests/t-map-cidr.py
@@ -0,0 +1,19 @@
1
+# -*- coding: utf-8 -*-
2
+
3
+from pylt.requests import CurlRequest
4
5
6
+class TestSimpleCidrMap(CurlRequest):
7
+ URL = "/test.txt"
8
+ EXPECT_RESPONSE_BODY = "abc"
9
+ EXPECT_RESPONSE_CODE = 200
10
+ config = """
11
+map_cidr [
12
+ "127.0.0.0/8" => {
13
+ },
14
+ default => {
15
+ respond 402 => "";
16
17
+];
18
+respond 200 => "abc";
19
+"""
0 commit comments