feat(unified-storage): prune history table based on limits (#101970)
This commit is contained in:
committed by
GitHub
parent
cacdf00067
commit
1700a8aa9f
@@ -255,6 +255,21 @@ func TestUnifiedStorageQueries(t *testing.T) {
|
||||
},
|
||||
},
|
||||
|
||||
sqlResourceHistoryPrune: {
|
||||
{
|
||||
Name: "simple",
|
||||
Data: &sqlPruneHistoryRequest{
|
||||
SQLTemplate: mocks.NewTestingSQLTemplate(),
|
||||
Key: &resource.ResourceKey{
|
||||
Namespace: "nn",
|
||||
Group: "gg",
|
||||
Resource: "rr",
|
||||
},
|
||||
HistoryLimit: 100,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
sqlResourceVersionGet: {
|
||||
{
|
||||
Name: "single path",
|
||||
|
||||
Reference in New Issue
Block a user