mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-31 23:41:09 +02:00
databroker: add list types method
This commit is contained in:
parent
7a405abea1
commit
2eb24fd42a
13 changed files with 494 additions and 232 deletions
|
@ -75,6 +75,11 @@ func TestBackend(t *testing.T) {
|
|||
assert.Error(t, err)
|
||||
assert.Nil(t, record)
|
||||
})
|
||||
t.Run("list types", func(t *testing.T) {
|
||||
types, err := backend.ListTypes(ctx)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, []string{"TYPE"}, types)
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue