mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-12 16:47:41 +02:00
storage/postgres: implement patch operation (#4656)
Implement the new Patch() method for the Postgres storage backend.
This commit is contained in:
parent
4f648e9ac1
commit
4842002ed7
4 changed files with 97 additions and 4 deletions
|
@ -18,6 +18,7 @@ import (
|
|||
"github.com/pomerium/pomerium/pkg/grpc/databroker"
|
||||
"github.com/pomerium/pomerium/pkg/protoutil"
|
||||
"github.com/pomerium/pomerium/pkg/storage"
|
||||
"github.com/pomerium/pomerium/pkg/storage/storagetest"
|
||||
)
|
||||
|
||||
const maxWait = time.Minute * 10
|
||||
|
@ -188,6 +189,10 @@ func TestBackend(t *testing.T) {
|
|||
assert.Equal(t, []string{"capacity-test", "latest-test", "sync-test", "test-1", "unknown"}, types)
|
||||
})
|
||||
|
||||
t.Run("patch", func(t *testing.T) {
|
||||
storagetest.TestBackendPatch(t, ctx, backend)
|
||||
})
|
||||
|
||||
return nil
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue