Skip to content

Documented: per-component test.api.enabled gate on runExampleTestSuite - #373

Merged
ashishvijaywargiya merged 2 commits into
apache:trunkfrom
ashishvijaywargiya:enable-disable-component-rest-tests
Aug 21, 2026
Merged

Documented: per-component test.api.enabled gate on runExampleTestSuite#373
ashishvijaywargiya merged 2 commits into
apache:trunkfrom
ashishvijaywargiya:enable-disable-component-rest-tests

Conversation

@ashishvijaywargiya

Copy link
Copy Markdown
Contributor

Documented: per-component test.api.enabled.example gate on runExampleTestSuite
Fixed: CodeNarc BlockStartsWithBlankLine violations in ExampleJupiterTests

(OFBIZ-)

Explanation
Companion to the ofbiz-trunk PR adding a per-component override of the REST-triggered
test-run API's global test.api.enabled flag (new property:
test.api.enabled.). No behavior change to anything in this repo -
runExampleTestSuite already inherits the new gate automatically through
TestRunServices.runScopedTestSuite, with zero code change needed. This PR only updates
its service description, which previously mentioned the global test.api.enabled flag and
the TESTEXEC_ADMIN permission but not the per-component override - even though
runExampleTestSuite is the exact service that override gates in practice, since it's
permanently scoped to the example component.

Also fixes 3 pre-existing CodeNarc BlockStartsWithBlankLine violations in
ExampleJupiterTests (each test method opened with a blank line right after its brace),
unrelated to the above but found while working on this branch.

Thanks:

…tSuite

Description previously only mentioned the global test.api.enabled flag and
the TESTEXEC_ADMIN permission - this is the exact service the per-component
override actually gates in practice, since runExampleTestSuite is fixed to
componentName=example.
Removed the leading blank line after the opening brace in
shouldCreateExample, shouldUpdateExample, and shouldDeleteExample.
@sonarqubecloud

Copy link
Copy Markdown

@ashishvijaywargiya
ashishvijaywargiya merged commit 2bb2e94 into apache:trunk Aug 21, 2026
2 checks passed
@ashishvijaywargiya
ashishvijaywargiya deleted the enable-disable-component-rest-tests branch August 21, 2026 19:11
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