File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 26
26
- (Maintenance) Switch to google.golang.org/protobuf
27
27
- (Feature) Add DebugPackage to the OPS Binary
28
28
- (Feature) (Networking) ArangoRoute Protocol
29
+ - (Improvement) Drop slash requirement from ArangoRoute
29
30
30
31
## [ 1.2.43] ( https://github.com/arangodb/kube-arangodb/tree/1.2.43 ) (2024-10-14)
31
32
- (Feature) ArangoRoute CRD
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import (
36
36
37
37
var (
38
38
resourceNameRE = regexp .MustCompile (`^([0-9\-\.a-z])+$` )
39
- apiPathRE = regexp .MustCompile (`^/( [_A-Za-z0-9\-]+/)* $` )
39
+ apiPathRE = regexp .MustCompile (`^(/ [_A-Za-z0-9\-]+)*/? $` )
40
40
)
41
41
42
42
const (
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ func Test_ValidateAPIPath(t *testing.T) {
36
36
require .NoError (t , ValidateAPIPath ("" ))
37
37
require .NoError (t , ValidateAPIPath ("/" ))
38
38
require .Error (t , ValidateAPIPath ("//" ))
39
- require .Error (t , ValidateAPIPath ("/api/zz" ))
39
+ require .NoError (t , ValidateAPIPath ("/api/zz" ))
40
40
require .NoError (t , ValidateAPIPath ("/api/" ))
41
41
require .NoError (t , ValidateAPIPath ("/api/test/qw/" ))
42
42
require .NoError (t , ValidateAPIPath ("/api/test/2/" ))
You can’t perform that action at this time.
0 commit comments