storage/postgres: implement patch operation (#4656)

Implement the new Patch() method for the Postgres storage backend.
This commit is contained in:
Kenneth Jenkins 2023-11-02 12:07:36 -07:00 committed by GitHub
parent 4f648e9ac1
commit 4842002ed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 97 additions and 4 deletions

View file

@ -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
}))
}