Repository navigation
test(api): probe the session and document helpers of ApiController - #26281
antobinary merged 1 commit into
Conversation
controllerHelpersNotReachable checked four private helpers through the generic controller/action mapping. Add the helpers that handle sessions and documents (handleJoinExistingUser, getUserSession, sanitizeSessionToken, uploadDocuments), so a refactor that makes one of them public again fails the test.
|
No actionable comments were generated in the recent review.
|
🚨 Automated tests failed |
25632c4
into
bigbluebutton:v4.0.x-develop
What does this PR do?
Extends
controllerHelpersNotReachable(bigbluebutton-tests/playwright/api/api.ts) with four more private helpers ofApiController:handleJoinExistingUser,getUserSession,sanitizeSessionTokenanduploadDocuments. Each must answer 404 through the generic/bigbluebutton/$controller/$actionmapping.Closes Issue(s)
Closes #
Motivation
Grails turns every public method of a controller into an action. The test probed four helpers; these four handle sessions and documents and were not among them. A refactor that makes one of them public again now fails the gate.
How to test
cd bigbluebutton-tests/playwright && npx playwright test api/api.spec.ts -g controllerHelpersNotReachable --project=chromium, about 2 s. Passes against 4.0 develop.