mirror of
https://github.com/grafana/grafana.git
synced 2025-09-21 03:23:37 +08:00
Unistore : Ensure Watch works in HA mode (#94120)
* Revert "Revert "Unistore : Ensure Watch works in HA mode." (#94097)" This reverts commit 7c3fc2f2619a0eb2157ea27e7dfef91996a9de7c. * make previous_resource_version nullable * handle nil case
This commit is contained in:
@ -104,6 +104,18 @@ func TestUnifiedStorageQueries(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
sqlResourceHistoryPoll: {
|
||||
{
|
||||
Name: "single path",
|
||||
Data: &sqlResourceHistoryPollRequest{
|
||||
SQLTemplate: mocks.NewTestingSQLTemplate(),
|
||||
Resource: "res",
|
||||
Group: "group",
|
||||
SinceResourceVersion: 1234,
|
||||
Response: new(historyPollResponse),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
sqlResourceUpdateRV: {
|
||||
{
|
||||
@ -143,7 +155,8 @@ func TestUnifiedStorageQueries(t *testing.T) {
|
||||
Data: &sqlResourceRequest{
|
||||
SQLTemplate: mocks.NewTestingSQLTemplate(),
|
||||
WriteEvent: resource.WriteEvent{
|
||||
Key: &resource.ResourceKey{},
|
||||
Key: &resource.ResourceKey{},
|
||||
PreviousRV: 1234,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user