Skip to content

Fix the report authorization test's is_pe? misfire - #557

Open
silug wants to merge 1 commit into
OpenVoxProject:mainfrom
silug:is_pe_fix
Open

Fix the report authorization test's is_pe? misfire#557
silug wants to merge 1 commit into
OpenVoxProject:mainfrom
silug:is_pe_fix

Conversation

@silug

@silug silug commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Pull Request (PR) description

The report/notme step asserted that the primary may submit reports on behalf of other nodes when master.is_pe? is true. This suite's beaker options do not set a host type, and beaker's default type is 'pe', so is_pe? returned true on every FOSS host and selected the PE assertion -- which the shipped allow: "$1" report rule correctly rejects with 403. This is the step where default_rules.rb actually failed in acceptance run 31098859281, before the filebucket assertions were ever reached.

OpenVox has no PE edition, so drop the PE arm and assert the denial unconditionally, with a comment warning against reintroducing is_pe? guards while the suite's host type is unset.

Verified on a local beaker rig against openvox-server 9.0.0~beta4: the unmodified test fails at report/notme exactly as in the pipeline; with this commit plus the filebucket fix in #556, default_rules.rb passes end to end (including the new agent-cert filebucket denial and primary-cert 404 assertions).

Generated by Claude Code

This Pull Request (PR) fixes the following issues

N/A

The report/notme step asserted that the primary may submit reports on
behalf of other nodes when master.is_pe? is true. This suite's beaker
options do not set a host type, and beaker's default type is 'pe', so
is_pe? returned true on every FOSS host and selected the PE assertion --
which the shipped allow: "$1" report rule correctly rejects with 403.
This is the step where default_rules.rb actually failed in acceptance
run 31098859281, before the filebucket assertions were ever reached.

OpenVox has no PE edition, so drop the PE arm and assert the denial
unconditionally, with a comment warning against reintroducing is_pe?
guards while the suite's host type is unset.

Verified on a local beaker rig against openvox-server 9.0.0~beta4:
the unmodified test fails at report/notme exactly as in the pipeline;
with this commit plus the filebucket fix already on this branch,
default_rules.rb passes end to end (including the new agent-cert
filebucket denial and primary-cert 404 assertions).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Steven Pritchard <steven.pritchard@gmail.com>
@silug
silug marked this pull request as ready for review August 6, 2026 17:28
@bastelfreak bastelfreak closed this Aug 7, 2026
@bastelfreak bastelfreak reopened this Aug 7, 2026
@bastelfreak bastelfreak mentioned this pull request Aug 7, 2026
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.

2 participants