mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-13 06:48:23 +02:00
databroker: use contextual logging for errors, use original record type for encryption (#3096)
This commit is contained in:
parent
8567b56b8d
commit
aaff52fc61
3 changed files with 10 additions and 10 deletions
|
@ -81,7 +81,7 @@ func TestEncryptedBackend(t *testing.T) {
|
|||
}
|
||||
assert.Equal(t, any.TypeUrl, record.Data.TypeUrl, "type should be preserved")
|
||||
assert.Equal(t, any.Value, record.Data.Value, "value should be preserved")
|
||||
assert.Equal(t, any.TypeUrl, record.Type, "record type should be preserved")
|
||||
assert.NotEqual(t, any.TypeUrl, record.Type, "record type should be preserved")
|
||||
|
||||
records, _, err := e.GetAll(ctx)
|
||||
if !assert.NoError(t, err) {
|
||||
|
@ -90,6 +90,6 @@ func TestEncryptedBackend(t *testing.T) {
|
|||
if assert.Len(t, records, 1) {
|
||||
assert.Equal(t, any.TypeUrl, records[0].Data.TypeUrl, "type should be preserved")
|
||||
assert.Equal(t, any.Value, records[0].Data.Value, "value should be preserved")
|
||||
assert.Equal(t, any.TypeUrl, records[0].Type, "record type should be preserved")
|
||||
assert.NotEqual(t, any.TypeUrl, records[0].Type, "record type should be preserved")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue