Skip to content

UFAL/Fix clarin-license IT: expect 422 for empty value on select patch#1323

Merged
milanmajchrak merged 2 commits into
dtq-devfrom
ufal/clarin-license-step-issue-it2
May 27, 2026
Merged

UFAL/Fix clarin-license IT: expect 422 for empty value on select patch#1323
milanmajchrak merged 2 commits into
dtq-devfrom
ufal/clarin-license-step-issue-it2

Conversation

@milanmajchrak
Copy link
Copy Markdown
Collaborator

@milanmajchrak milanmajchrak commented May 27, 2026

Post-merge follow-up to #1319.

The integration test patchSelectWithEmptyValueClearsLicense failed on dtq-dev because it expected the section endpoint /sections/clarin-license/select to treat an empty value as "clear the license" (200 OK), while the merged implementation rejects a blank license name with 422 Unprocessable Entity. The legacy /license path keeps its blank-as-clear semantics; the new section endpoint requires a non-empty license name.

This PR aligns the test with the implemented contract: the test now patches with an empty value and asserts 422, plus verifies the previously selected license stays attached to the item and bitstream.

Copilot AI review requested due to automatic review settings May 27, 2026 12:18
@milanmajchrak milanmajchrak changed the title Fix clarin-license IT: expect 422 for empty value on select patch UFAL/Fix clarin-license IT: expect 422 for empty value on select patch May 27, 2026
@milanmajchrak milanmajchrak merged commit 6523c28 into dtq-dev May 27, 2026
10 checks passed
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.

1 participant