Skip to content

Keep compliance_markup's Compliance Engine hierarchy in spec_helper.rb - #125

Merged
silug merged 1 commit into
simp:mainfrom
silug:spec-helper-compliance-markup
Oct 26, 2026
Merged

silug merged 1 commit into
simp:mainfrom
silug:spec-helper-compliance-markup

Conversation

@silug

@silug silug commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

pupmod-simp-compliance_markup's specs exercise the compliance_markup::enforcement Hiera backend through the default test hierarchy in spec/spec_helper.rb:

- name: SIMP Compliance Engine
  lookup_key: compliance_markup::enforcement
  options:
    enabled_sce_versions: [2]

The template doesn't include that entry. Rendering it for compliance_markup drops the entry, and specs such as spec/functions/compliance_markup/10_enforce_spec.rb fail (lookup() did not find a value for the name 'useradd::shells'). To keep its specs working, the module had drifted from the template, and it was still missing later template changes such as the atomic hiera.yaml write.

This PR adds the entry to the template for simp-compliance_markup only, the same way simp-simpkv gets its DataHelper.

Testing:

🤖 Generated with Claude Code

pupmod-simp-compliance_markup's specs exercise the
compliance_markup::enforcement Hiera backend through the default test
hierarchy in spec/spec_helper.rb, and fail without it. The template
dropped that entry, so every sync of spec_helper.rb broke the module's
specs, and the module had drifted from the template to keep them
working.

Add the entry to the template for simp-compliance_markup only, the same
way simp-simpkv gets its DataHelper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silug
silug force-pushed the spec-helper-compliance-markup branch from 5424312 to 3c70d98 Compare October 26, 2026 16:06
@silug
silug enabled auto-merge (rebase) October 26, 2026 16:06
@silug
silug merged commit b24bc40 into simp:main Oct 26, 2026
3 checks passed
@silug
silug deleted the spec-helper-compliance-markup branch October 26, 2026 16:08
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