Open
Description
Description:
When using puppetlabs-splunk_hec as a dependency in another module's test suite, the following resources need to be mocked but should be handled within the module itself:
ini_subsetting
typepe_ini_subsetting
typepuppetserver
service- Custom fact
splunk_hec_is_pe
Current Behavior:
Tests fail with errors like:
- Unknown variable: 'ini_subsetting'
- Could not find resource 'Service[puppetserver]'
Expected Behavior:
The module's test suite should handle these dependencies internally, allowing dependent modules to test only their integration points without needing to mock core module dependencies.
Steps to Reproduce:
- Create a profile that includes the splunk_hec class
- Write rspec tests for that profile
- Run
pdk test unit
Environment:
- puppetlabs-splunk_hec version: 1.4.0