mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-13 00:58:06 +02:00
databroker: add list types method (#3937)
* databroker: add list types method * fix test * Update pkg/storage/redis/redis.go Co-authored-by: Denis Mishin <dmishin@pomerium.com> --------- Co-authored-by: Denis Mishin <dmishin@pomerium.com>
This commit is contained in:
parent
424b743b11
commit
7895bf431f
13 changed files with 495 additions and 232 deletions
|
@ -182,6 +182,12 @@ func TestBackend(t *testing.T) {
|
|||
}
|
||||
})
|
||||
|
||||
t.Run("list types", func(t *testing.T) {
|
||||
types, err := backend.ListTypes(ctx)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, []string{"capacity-test", "latest-test", "sync-test", "test-1", "unknown"}, types)
|
||||
})
|
||||
|
||||
return nil
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue