From 3c70d981017246a222d4b4cd4d34cde821d84c16 Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Sun, 25 Oct 2026 16:34:53 +0000 Subject: [PATCH] Keep compliance_markup's Compliance Engine hierarchy in spec_helper.rb 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 --- modules/profile/templates/pupmod/spec/spec_helper.rb.epp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/profile/templates/pupmod/spec/spec_helper.rb.epp b/modules/profile/templates/pupmod/spec/spec_helper.rb.epp index f699dac..72234ad 100644 --- a/modules/profile/templates/pupmod/spec/spec_helper.rb.epp +++ b/modules/profile/templates/pupmod/spec/spec_helper.rb.epp @@ -33,6 +33,12 @@ default_hiera_config = <<~HIERA_CONFIG --- version: 5 hierarchy: +<% if $facts['module_metadata']['name'] == 'simp-compliance_markup' { -%> + - name: SIMP Compliance Engine + lookup_key: compliance_markup::enforcement + options: + enabled_sce_versions: [2] +<% } -%> - name: Custom Test Hiera path: "%{custom_hiera}.yaml" - name: "%{module_name}"