From f7d7e096264359c90c54b55c13241b41f6f1a0bf Mon Sep 17 00:00:00 2001 From: Will Assis Date: Mon, 12 Jan 2026 14:41:23 -0300 Subject: [PATCH] unified-storage: sqlkv enable more tests --- pkg/storage/unified/testing/storage_backend.go | 4 ++-- pkg/storage/unified/testing/storage_backend_test.go | 12 ++---------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/pkg/storage/unified/testing/storage_backend.go b/pkg/storage/unified/testing/storage_backend.go index faf6b70c600..6fbeceb68d2 100644 --- a/pkg/storage/unified/testing/storage_backend.go +++ b/pkg/storage/unified/testing/storage_backend.go @@ -1166,7 +1166,7 @@ func runTestIntegrationBackendCreateNewResource(t *testing.T, backend resource.S })) server := newServer(t, backend) - ns := nsPrefix + "-create-resource" + ns := nsPrefix + "-create-rsrce" // create-resource ctx = request.WithNamespace(ctx, ns) request := &resourcepb.CreateRequest{ @@ -1607,7 +1607,7 @@ func (s *sliceBulkRequestIterator) RollbackRequested() bool { func runTestIntegrationBackendOptimisticLocking(t *testing.T, backend resource.StorageBackend, nsPrefix string) { ctx := testutil.NewTestContext(t, time.Now().Add(30*time.Second)) - ns := nsPrefix + "-optimistic-locking" + ns := nsPrefix + "-optimis-lock" // optimistic-locking. need to cut down on characters to not exceed namespace character limit (40) t.Run("concurrent updates with same RV - only one succeeds", func(t *testing.T) { // Create initial resource with rv0 (no previous RV) diff --git a/pkg/storage/unified/testing/storage_backend_test.go b/pkg/storage/unified/testing/storage_backend_test.go index 236a6c510dc..96b9d5716db 100644 --- a/pkg/storage/unified/testing/storage_backend_test.go +++ b/pkg/storage/unified/testing/storage_backend_test.go @@ -41,17 +41,9 @@ func TestIntegrationSQLKVStorageBackend(t *testing.T) { testutil.SkipIntegrationTestInShortMode(t) skipTests := map[string]bool{ - TestWatchWriteEvents: true, - TestList: true, TestBlobSupport: true, - TestGetResourceStats: true, - TestListHistory: true, - TestListHistoryErrorReporting: true, TestListModifiedSince: true, - TestListTrash: true, - TestCreateNewResource: true, TestGetResourceLastImportTime: true, - TestOptimisticLocking: true, } t.Run("Without RvManager", func(t *testing.T) { @@ -59,7 +51,7 @@ func TestIntegrationSQLKVStorageBackend(t *testing.T) { backend, _ := NewTestSqlKvBackend(t, ctx, false) return backend }, &TestOptions{ - NSPrefix: "sqlkvstorage-test", + NSPrefix: "sqlkvstoragetest", SkipTests: skipTests, }) }) @@ -69,7 +61,7 @@ func TestIntegrationSQLKVStorageBackend(t *testing.T) { backend, _ := NewTestSqlKvBackend(t, ctx, true) return backend }, &TestOptions{ - NSPrefix: "sqlkvstorage-withrvmanager-test", + NSPrefix: "sqlkvstoragetest-rvmanager", SkipTests: skipTests, }) })