From fe40ae5776828fde4a8dcbe6c6116229097080b6 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 31 May 2024 12:55:22 +1000 Subject: [PATCH] set override --- hiera-rpsec.yaml | 2 +- spec/acceptance/observium_install_spec.rb | 6 ++++-- spec/classes/observium_spec.rb | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/hiera-rpsec.yaml b/hiera-rpsec.yaml index ec5cde5..7d0e31f 100644 --- a/hiera-rpsec.yaml +++ b/hiera-rpsec.yaml @@ -2,7 +2,7 @@ version: 5 defaults: # Used for any hierarchy level that omits these keys. - datadir: spec/data # This path is relative to hiera.yaml's directory. + datadir: spec/data # This path is relative to hiera.yaml's directory. data_hash: yaml_data # Use the built-in YAML backend. hierarchy: diff --git a/spec/acceptance/observium_install_spec.rb b/spec/acceptance/observium_install_spec.rb index d8829e5..65f40ed 100644 --- a/spec/acceptance/observium_install_spec.rb +++ b/spec/acceptance/observium_install_spec.rb @@ -12,11 +12,13 @@ end end - let(:hiera_config) { 'hiera-rpsec.yaml' } + # let(:hiera_config) { 'hiera-rpsec.yaml' } # serverspec doesn't seem to respect this. let(:pp) do <<-MANIFEST - include observium + class { 'observium': + snmpd_agentaddress => ['udp:127.0.0.1:161'] + } MANIFEST end diff --git a/spec/classes/observium_spec.rb b/spec/classes/observium_spec.rb index 326418e..0cd963d 100644 --- a/spec/classes/observium_spec.rb +++ b/spec/classes/observium_spec.rb @@ -8,6 +8,8 @@ let(:facts) { os_facts } it { is_expected.to compile } + + end end end