mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 23:53:10 +08:00
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:
@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user