mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-30 09:27:19 +02:00
config: fix policy matching for regular expressions (#2966)
* config: fix policy matching for regular expressions * compile regex in validate, add test * fix test
This commit is contained in:
parent
8e8c9c2f16
commit
ace5bbb89a
4 changed files with 66 additions and 8 deletions
|
@ -17,7 +17,7 @@ import (
|
|||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
var cmpOptIgnoreUnexported = cmpopts.IgnoreUnexported(Options{})
|
||||
var cmpOptIgnoreUnexported = cmpopts.IgnoreUnexported(Options{}, Policy{})
|
||||
|
||||
func Test_Validate(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue