Skip to content

Commit f1b755e

Browse files
committed
Remove bad test case in TestValidateJsonAnnotation
This is no longer valid. https://github .com/evanphx/json-patch/pull/180/files Signed-off-by: Bryan Cox <[email protected]>
1 parent 04856f1 commit f1b755e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

hypershift-operator/controllers/hostedcluster/hostedcluster_webhook_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,6 @@ func TestValidateJsonAnnotation(t *testing.T) {
171171
},
172172
expectError: true,
173173
},
174-
{
175-
name: "valid: missing value on delete",
176-
annotations: map[string]string{
177-
v1beta1.JSONPatchAnnotation: `[{"op": "delete","path": "/spec/domain/cpu/cores"}]`,
178-
},
179-
expectError: false,
180-
},
181174
} {
182175
t.Run(tc.name, func(tt *testing.T) {
183176
err := validateJsonAnnotation(tc.annotations)

0 commit comments

Comments
 (0)