File tree 6 files changed +17
-6
lines changed
6 files changed +17
-6
lines changed Original file line number Diff line number Diff line change
1
+ # this is an empty map file
Original file line number Diff line number Diff line change @@ -25,3 +25,7 @@ frontend fe_map
25
25
frontend fe_map2
26
26
bind *:2358
27
27
use_backend %[str(example.com),map(/tmp/maps/mapfile2.map)]
28
+
29
+ frontend fe_map_empty
30
+ bind *:5678
31
+ use_backend %[str(example.com),map(/tmp/maps/empty.map)]
Original file line number Diff line number Diff line change @@ -38,3 +38,9 @@ load 'utils/_helpers'
38
38
resource_get " $_RUNTIME_MAP_ENTRIES_BASE_PATH " " map=not-exists.map"
39
39
assert_equal " $SC " 404
40
40
}
41
+
42
+ @test " runtime_maps_entries: https://github.com/haproxytech/dataplaneapi/issues/234" {
43
+ resource_get " $_RUNTIME_MAP_ENTRIES_BASE_PATH " " map=empty.map"
44
+ assert_equal " $SC " 200
45
+ assert_equal " $( $BODY ) " " "
46
+ }
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ defaults
27
27
timeout check 10s
28
28
maxconn 3000
29
29
30
+ frontend test_empty_storage_map
31
+ use_backend %[str(active),map(/etc/haproxy/maps/mapfile_empty.map)]
32
+
30
33
frontend test_storage_maps
31
34
bind *:1337 crt
32
35
#use_backend %[str(active),map(/etc/haproxy/maps/mapfile_example2.map)]
@@ -36,4 +39,3 @@ frontend test_storage_maps
36
39
37
40
backend test_storage_maps
38
41
server appx 127.0.0.1:8080 check disabled
39
-
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ require (
22
22
github.com/go-openapi/validate v0.19.8
23
23
github.com/google/renameio v1.0.1
24
24
github.com/google/uuid v1.2.0
25
- github.com/haproxytech/client-native/v3 v3.0.1-0.20220222090357-2740eb3ce4af
25
+ github.com/haproxytech/client-native/v3 v3.0.1-0.20220224080929-9b9f1db2e019
26
26
github.com/haproxytech/config-parser/v4 v4.0.0-rc2.0.20220215134434-54d66ef01d26
27
27
github.com/hashicorp/consul/api v1.6.0
28
28
github.com/hashicorp/hcl v1.0.0
Original file line number Diff line number Diff line change @@ -174,10 +174,8 @@ github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
174
174
github.com/google/uuid v1.1.1 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
175
175
github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs =
176
176
github.com/google/uuid v1.2.0 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
177
- github.com/haproxytech/client-native/v3 v3.0.0 h1:D3bx4ylnkKfRqDVFk15ZLcMyKVTgdgNN25NKAjb6LYo =
178
- github.com/haproxytech/client-native/v3 v3.0.0 /go.mod h1:5qDnA7M1HmgJ/CTy6ByUomvnfgAgpH6R8NYZMdcMQ9k =
179
- github.com/haproxytech/client-native/v3 v3.0.1-0.20220222090357-2740eb3ce4af h1:qauLnPmqH9RBY9iTsdLYQ2NUdsIH7DbTLvZEW+diWXE =
180
- github.com/haproxytech/client-native/v3 v3.0.1-0.20220222090357-2740eb3ce4af /go.mod h1:5qDnA7M1HmgJ/CTy6ByUomvnfgAgpH6R8NYZMdcMQ9k =
177
+ github.com/haproxytech/client-native/v3 v3.0.1-0.20220224080929-9b9f1db2e019 h1:vZOIEJEA+NOA9W63T0jvRACbzoOE8wwar4nvWHsenQk =
178
+ github.com/haproxytech/client-native/v3 v3.0.1-0.20220224080929-9b9f1db2e019 /go.mod h1:5qDnA7M1HmgJ/CTy6ByUomvnfgAgpH6R8NYZMdcMQ9k =
181
179
github.com/haproxytech/config-parser/v4 v4.0.0-rc2.0.20220215134434-54d66ef01d26 h1:IWU3pWA4MzYzi0N5NDUgMf06V6bmXCsHok0hBMM1Zik =
182
180
github.com/haproxytech/config-parser/v4 v4.0.0-rc2.0.20220215134434-54d66ef01d26 /go.mod h1:pEuHx+aFhn0lIdvAg1OaawQfeRkpq1I8HzjtZN4/PLI =
183
181
github.com/haproxytech/go-logger v1.0.1-0.20211022075555-178f1cdf4d84 h1:rSLHjJ4VGvMZcGAGQ9GaXuhvdswu1iLVXTThLX6OKN8 =
You can’t perform that action at this time.
0 commit comments