Remove use of dialect.LikeStr (#104460)
* Fix TestIntegrationUpdatingProvisionionedDashboards* tests when running on Spanner by fixing case-insensitive search for dashboard title. * Fix use of case-insensitive LIKE when running on Spanner. * Fix use of LikeStr in anonstore. * Fix use of LikeStr in ngalert/store and org/orgimpl. * Fix use of LikeStr in queryhistory search. * Fix use of LikeStr in serviceaccounts. * Fix use of LikeStr in serviceaccounts. * Fix use of LikeStr in services/team. * Remove LikeStr method.
This commit is contained in:
@@ -533,7 +533,7 @@ func TestIntegrationAnnotations(t *testing.T) {
|
||||
t.Run("Should find tags by key", func(t *testing.T) {
|
||||
result, err := store.GetTags(context.Background(), annotations.TagsQuery{
|
||||
OrgID: 1,
|
||||
Tag: "server",
|
||||
Tag: "SeRvEr", // Use mixed-case to test LIKE case-insensitivity
|
||||
})
|
||||
require.NoError(t, err)
|
||||
require.Len(t, result.Tags, 1)
|
||||
@@ -544,7 +544,7 @@ func TestIntegrationAnnotations(t *testing.T) {
|
||||
t.Run("Should find tags by value", func(t *testing.T) {
|
||||
result, err := store.GetTags(context.Background(), annotations.TagsQuery{
|
||||
OrgID: 1,
|
||||
Tag: "outage",
|
||||
Tag: "Outage", // Use mixed-case to test LIKE case-insensitivity
|
||||
})
|
||||
require.NoError(t, err)
|
||||
require.Len(t, result.Tags, 2)
|
||||
|
||||
Reference in New Issue
Block a user