unistore: improve storage backend integration tests (#101134)

* Add Stats tests

* Add integration tests for getstats

* fix signature
This commit is contained in:
Georges Chaudy
2025-02-21 15:06:23 +01:00
committed by GitHub
parent 837491b0cb
commit 40d1677265
2 changed files with 226 additions and 75 deletions
@@ -46,7 +46,7 @@ func TestIntegrationSQLStorageBackend(t *testing.T) {
err = backend.Init(testutil.NewDefaultTestContext(t))
require.NoError(t, err)
return backend
})
}, nil)
// Run single instance tests with in-process notifier.
unitest.RunStorageBackendTest(t, func(ctx context.Context) resource.StorageBackend {
dbstore := infraDB.InitTestDB(t)
@@ -63,7 +63,7 @@ func TestIntegrationSQLStorageBackend(t *testing.T) {
err = backend.Init(testutil.NewDefaultTestContext(t))
require.NoError(t, err)
return backend
})
}, nil)
}
func TestClientServer(t *testing.T) {