Skip to content

test(destination): add regression test for multi-label OData filter#154

Merged
jeanscherf merged 1 commit into
mainfrom
test/multi-label-filter-regression
Jun 10, 2026
Merged

test(destination): add regression test for multi-label OData filter#154
jeanscherf merged 1 commit into
mainfrom
test/multi-label-filter-regression

Conversation

@jeanscherf

@jeanscherf jeanscherf commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds test_multiple_labels_real_keys to TestListOptionsLabelFilter — a regression guard that verifies ListOptions with two filter_labels produces the correct OData HAS ... AND ... expression using real sap-managed-runtime-* label keys

The ticket claimed the multi-label filter was broken and required parentheses around each clause. Testing against the live Destination Service API proved the opposite:

Format Result
Label['a'] HAS ('v') AND Label['b'] HAS ('v') — current SDK output 200 OK
(Label['a'] HAS ('v')) AND (Label['b'] HAS ('v')) — format ticket described as "required" 400 The provided filter is not recognized

The no-parens format the SDK already generates is correct. UC-9455 (connectivity team fix) enabled multi-label support on the service side — confirmed working end-to-end against app-fnd-sdk-test-canary-eu12 with real fragments.

Test plan

  • pytest tests/destination/unit/test_models.py::TestListOptionsLabelFilter — all 11 tests pass

Verifies that ListOptions with multiple filter_labels generates a valid
OData HAS expression joined by AND, using real label keys from the
sap-managed-runtime domain (AFSDK-3656).

The no-parens format is what the Destination Service API accepts.
Parenthesized clauses return 400 — confirmed against live API.
@jeanscherf jeanscherf requested a review from a team as a code owner June 10, 2026 14:22

@LucasAlvesSoares LucasAlvesSoares left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

img

@jeanscherf jeanscherf merged commit ea594a9 into main Jun 10, 2026
10 of 11 checks passed
@jeanscherf jeanscherf deleted the test/multi-label-filter-regression branch June 10, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants