Skip to content

Commit

Permalink
set override
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-robertson committed May 31, 2024
1 parent cc11a6a commit fe40ae5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hiera-rpsec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions spec/acceptance/observium_install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions spec/classes/observium_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
let(:facts) { os_facts }

it { is_expected.to compile }


end
end
end

0 comments on commit fe40ae5

Please sign in to comment.