Skip to content

Commit f5ed5b3

Browse files
committed
test: Do not hard-code the minimum number of expected filter properties to be exactly "1"
On-behalf-of: SAP nils.gondermann@sap.com
1 parent 3684a4c commit f5ed5b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/apivalidations/common_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ func runManagementPolicyTests[PatchT any](getNamespace func() *corev1.Namespace,
108108
patch := args.basePatch(obj)
109109
args.applyUnmanaged(patch)
110110
args.applyEmptyFilter(patch)
111-
Expect(applyObj(ctx, obj, patch)).To(MatchError(ContainSubstring("spec.import.filter in body should have at least 1 properties")))
111+
// Do not force the maximum number of filter properties to be 1 by not hard-coding that string
112+
Expect(applyObj(ctx, obj, patch)).To(MatchError(ContainSubstring("spec.import.filter in body should have at least")))
112113
})
113114

114115
It("should permit valid import filter", func(ctx context.Context) {

0 commit comments

Comments
 (0)