mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 16:59:22 +02:00
authorize: remove DataBrokerData (#1846)
* authorize: remove DataBrokerData * fix method name
This commit is contained in:
parent
2f3c73baf3
commit
eed873b263
10 changed files with 263 additions and 322 deletions
|
@ -436,15 +436,7 @@ func TestSync(t *testing.T) {
|
|||
t.Parallel()
|
||||
a, err := New(&config.Config{Options: o})
|
||||
require.NoError(t, err)
|
||||
a.dataBrokerData = evaluator.DataBrokerData{
|
||||
"type.googleapis.com/session.Session": map[string]interface{}{
|
||||
"dbd_session_id": &session.Session{UserId: "dbd_user1"},
|
||||
},
|
||||
"type.googleapis.com/user.User": map[string]interface{}{
|
||||
"dbd_user1": &user.User{Id: "dbd_user1"},
|
||||
},
|
||||
}
|
||||
a.state.Load().dataBrokerClient = tc.databrokerClient
|
||||
a.state.Load().dataBrokerClient = dbdClient
|
||||
assert.True(t, (a.forceSync(ctx, tc.sessionState) != nil) == tc.wantErr)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue