mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-26 22:48:07 +02:00
config: use config.Config instead of config.Options everywhere
This commit is contained in:
parent
5f51510e91
commit
1b80e8a6c2
40 changed files with 484 additions and 412 deletions
|
@ -80,11 +80,11 @@ func TestProxy_ForwardAuth(t *testing.T) {
|
|||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
p, err := New(&config.Config{Options: tt.options})
|
||||
p, err := New(config.New(tt.options))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
p.OnConfigChange(ctx, &config.Config{Options: tt.options})
|
||||
p.OnConfigChange(ctx, config.New(tt.options))
|
||||
state := p.state.Load()
|
||||
state.sessionStore = tt.sessionStore
|
||||
signer, err := jws.NewHS256Signer(nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue