test: add WordPress REST auth fixture - #485
Conversation
Signed-off-by: atomnoid <aayushs2580@gmail.com>
|
Hello @sridharkalaibala The PR adds an offline synthetic WordPress REST authentication fixture covering:
Validation completed successfully:
No live API calls, credentials, or production/customer data are involved. Ready for review. Thanks! |
sridharkalaibala
left a comment
There was a problem hiding this comment.
Reviewed and approved. This is a focused, offline synthetic fixture with clear documentation and fail-closed authorization coverage. I also ran
ode --test tests/wordpress-rest-auth.test.js locally (3 passing) and confirmed the PR’s required checks are green.
|
Merged to Try it at https://develop.posnic.io, or run it yourself: git fetch origin develop && git checkout develop
npm install && npm --prefix api install
npm run dev # then http://localhost:3000When you have tested it, say what you did and what happened, and set Reporting that something is broken is as useful as fixing it. It is |
What does this PR do?
Implements GitHub issue #409 with an offline, synthetic WordPress REST authentication fixture.
This adds:
docs/WORDPRESS_REST_AUTH.mdtests/fixtures/wordpress-rest-auth.jsontests/wordpress-rest-auth.test.jsThe fixture covers valid/invalid authentication, missing/invalid nonce, and missing/insufficient capability. Rejected cases fail closed before protected data access.
Fixes #409
Acceptance criteria covered
How was it tested?
npm startfor the desktop app, ornpm run devfor a browser at http://localhost:3000)npm run build) if build/packaging was toucheddocs/CONTRIBUTOR_QUICKSTART.mdValidation:
npx prettier --check docs/WORDPRESS_REST_AUTH.md tests/wordpress-rest-auth.test.js tests/fixtures/wordpress-rest-auth.jsonnode --test tests/wordpress-rest-auth.test.jsgit diff --checkAll passed.
Checklist
git commit -s, DCO)