Skip to content

test: authenticate the e2e API client as the forum service user - #294

Merged
feanil merged 1 commit into
masterfrom
feanil/fix-e2e-api-client
Oct 14, 2026
Merged

feanil merged 1 commit into
masterfrom
feanil/fix-e2e-api-client

Conversation

@feanil

@feanil feanil commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

The forum HTTP API now requires a staff caller (GHSA-c6fp-f54c-6cv4) and tests/conftest.py logs its api_client in as a staff service account, but tests/e2e/conftest.py overrode that fixture with an anonymous client. Every e2e request got a 403, so the Release workflow on master stopped before publishing: https://github.com/openedx/forum/actions/runs/38573968621

This drops the override so the e2e suite uses the authenticated fixture. Locally make test-e2e goes from 29 failed + 7 errors to 42 passed.

🤖 Generated with Claude Code

The forum HTTP API now requires a staff caller (GHSA-c6fp-f54c-6cv4), and
tests/conftest.py's api_client fixture logs in as a staff service account
for that reason. tests/e2e/conftest.py overrode that fixture with an
anonymous client, so every e2e request got a 403 and the Release workflow
on master stopped before publishing.

Drop the override so the e2e suite uses the authenticated fixture from
tests/conftest.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@feanil
feanil marked this pull request as ready for review October 14, 2026 14:07
@feanil
feanil merged commit 8149351 into master Oct 14, 2026
11 checks passed
@feanil
feanil deleted the feanil/fix-e2e-api-client branch October 14, 2026 14:07
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