Unitstore: Fix the Folder migration (#96078)

* UniStore: Add folder to the SQL backend

This reverts commit aaa4f4a23e3ba0e02526f8beb05321761382259f.

* fix folder migration
This commit is contained in:
Georges Chaudy
2024-11-12 12:52:04 +01:00
committed by GitHub
parent 7f675cd218
commit c3571752b6
43 changed files with 235 additions and 72 deletions

View File

@ -43,6 +43,7 @@ func TestUnifiedStorageQueries(t *testing.T) {
Type: resource.WatchEvent_ADDED,
PreviousRV: 123,
},
Folder: "fldr",
},
},
},
@ -59,6 +60,7 @@ func TestUnifiedStorageQueries(t *testing.T) {
Name: "name",
},
},
Folder: "fldr",
},
},
},
@ -75,7 +77,7 @@ func TestUnifiedStorageQueries(t *testing.T) {
Name: "name",
},
},
readResponse: new(readResponse),
Response: NewReadResponse(),
},
},
},
@ -143,9 +145,14 @@ func TestUnifiedStorageQueries(t *testing.T) {
SQLTemplate: mocks.NewTestingSQLTemplate(),
Request: &resource.ReadRequest{
ResourceVersion: 123,
Key: &resource.ResourceKey{},
Key: &resource.ResourceKey{
Namespace: "ns",
Group: "gp",
Resource: "rs",
Name: "nm",
},
},
readResponse: new(readResponse),
Response: NewReadResponse(),
},
},
},
@ -173,6 +180,7 @@ func TestUnifiedStorageQueries(t *testing.T) {
},
PreviousRV: 1234,
},
Folder: "fldr",
},
},
},