mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-27 15:08:14 +02:00
authenticate: support hot reloaded config (#984)
By implementinng OptionsUpdater interface. Fixes #982
This commit is contained in:
parent
eaa0c980d2
commit
17ba595ced
5 changed files with 41 additions and 9 deletions
|
@ -156,6 +156,7 @@ func TestIsAdmin(t *testing.T) {
|
|||
opts := newTestOptions(t)
|
||||
opts.Administrators = tc.admins
|
||||
a, err := New(*opts)
|
||||
assert.NoError(t, a.UpdateOptions(*opts))
|
||||
require.NoError(t, err)
|
||||
assert.True(t, a.isAdmin(tc.user) == tc.isAdmin)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue