From 96cbff74b7098ae7a60fd6120a3b2fa0d4356f15 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Mon, 12 May 2025 11:47:40 +0200 Subject: [PATCH] Fix unit test for latest godata release --- services/graph/pkg/service/v0/users_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/graph/pkg/service/v0/users_test.go b/services/graph/pkg/service/v0/users_test.go index 49b8bf3b72..cfbaa08136 100644 --- a/services/graph/pkg/service/v0/users_test.go +++ b/services/graph/pkg/service/v0/users_test.go @@ -496,7 +496,8 @@ var _ = Describe("Users", func() { }, Entry("with invalid filter", "invalid", http.StatusBadRequest), Entry("with unsupported filter for user property", "mail eq 'unsupported'", http.StatusNotImplemented), - Entry("with unsupported filter operation", "mail add 10", http.StatusNotImplemented), + // This error is caugh by godata's parser already + Entry("with unsupported filter operation", "mail add 10", http.StatusBadRequest), Entry("with unsupported logical operation", "memberOf/any(n:n/id eq 1) or memberOf/any(n:n/id eq 2)", http.StatusNotImplemented), Entry("with unsupported lambda query ", `drives/any(n:n/id eq '1')`, http.StatusNotImplemented), Entry("with unsupported lambda token ", "memberOf/all(n:n/id eq 1)", http.StatusNotImplemented),