Merge pull request #3943 from vie-serendipity/improve_overridemanager_test

improve overridemanager test
This commit is contained in:
karmada-bot 2023-08-16 11:55:55 +08:00 committed by GitHub
commit 999c7aedf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -243,7 +243,7 @@ func TestGetMatchingOverridePolicies(t *testing.T) {
{
Path: "/metadata/annotations",
Operator: "add",
Value: apiextensionsv1.JSON{Raw: []byte("foo: bar")},
Value: apiextensionsv1.JSON{Raw: []byte(`"foo: bar"`)},
},
},
}
@ -252,7 +252,7 @@ func TestGetMatchingOverridePolicies(t *testing.T) {
{
Path: "/metadata/annotations",
Operator: "add",
Value: apiextensionsv1.JSON{Raw: []byte("aaa: bbb")},
Value: apiextensionsv1.JSON{Raw: []byte(`"aaa: bbb"`)},
},
},
}
@ -261,7 +261,7 @@ func TestGetMatchingOverridePolicies(t *testing.T) {
{
Path: "/metadata/annotations",
Operator: "add",
Value: apiextensionsv1.JSON{Raw: []byte("hello: world")},
Value: apiextensionsv1.JSON{Raw: []byte(`"hello: world"`)},
},
},
}