Skip to content

docs: fix actor1 nesting in test configuration example - #160

Open
rksharma-owg wants to merge 2 commits into
OWASP:devfrom
rksharma-owg:codex/fix-readme-actor-config
Open

rksharma-owg wants to merge 2 commits into
OWASP:devfrom
rksharma-owg:codex/fix-readme-actor-config

Conversation

@rksharma-owg

Copy link
Copy Markdown

The README's test-data YAML places actor1's headers, query parameters, body parameters, and unauthorized endpoints beside actor1 rather than underneath it. Copying the example makes YAML load actor1 as null, and OFFAT rejects it with “actor1 is required.”

Nest those settings under actor1, matching the actor2 example. Add regression tests that load the actual README example, pass it through the configuration validator, and check both actors' values reach populated requests.

Validation: local pytest (10 tests and two actor subtests passed) and wheel/source builds; Ubuntu fork preflight on Python 3.10–3.14 passed the baseline suite, proved the regression fails on the baseline, passed the patched suite, and built distributions. The existing parser's undeclared requests import required an explicit test-environment install; dependency metadata is unchanged.

Fork validation: https://github.com/rksharma-owg/OFFAT/actions/runs/38422373559
Tested commit: 13ec8464418caa4fd0ffcb829d8a0c7721fa990e against aa4a88640a99411dfce931e7187df921f9926dfb.

Fixes #142.

This branch has not been deployed

No deployments
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.

Error in Parsing the YAML Config File

1 participant