mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
core/ppl: add groups criterion (#4916)
* core/ppl: add groups criterion * remove dead code * add additional test
This commit is contained in:
parent
3ca2f2462d
commit
6a833b365a
16 changed files with 268 additions and 109 deletions
|
@ -11,7 +11,7 @@ func TestAccept(t *testing.T) {
|
|||
allow:
|
||||
and:
|
||||
- accept: 1
|
||||
`, []dataBrokerRecord{}, Input{})
|
||||
`, nil, Input{})
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, A{true, A{ReasonAccept}, M{}}, res["allow"])
|
||||
require.Equal(t, A{false, A{}}, res["deny"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue