Skip to content

Commit

Permalink
use structured fact in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Oct 28, 2022
1 parent b569143 commit 42b2d91
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/classes/vault_spec.rb
Expand Up @@ -10,7 +10,7 @@
on_supported_os.each do |os, facts|
context "on #{os}" do
let :facts do
facts.merge(service_provider: 'init', processorcount: 3)
facts.merge({ service_provider: 'init', processors: { count: 3 } })
end

context 'vault class with simple configuration' do
Expand Down Expand Up @@ -541,7 +541,7 @@
when 6
context 'RedHat 6 specific' do
let :facts do
facts.merge(service_provider: 'sysv', processorcount: 3)
facts.merge({ service_provider: 'sysv', processors: { count: 3 } })
end

context 'includes SysV init script' do
Expand Down Expand Up @@ -660,7 +660,7 @@
when 7
context 'RedHat >=7 specific' do
let :facts do
facts.merge(service_provider: 'systemd', processorcount: 3)
facts.merge({ service_provider: 'systemd', processors: { count: 3 } })
end

context 'includes systemd init script' do
Expand Down Expand Up @@ -805,7 +805,7 @@
context 'on Debian OS family' do
context 'with upstart' do
let :facts do
facts.merge(service_provider: 'upstart', processorcount: 3)
facts.merge({ service_provider: 'upstart', processors: { count: 3 } })
end

context 'includes init link to upstart-job' do
Expand Down Expand Up @@ -937,7 +937,7 @@

context 'on Debian based with systemd' do
let :facts do
facts.merge(service_provider: 'systemd', processorcount: 3)
facts.merge({ service_provider: 'systemd', processors: { count: 3 } })
end

context 'includes systemd init script' do
Expand Down

0 comments on commit 42b2d91

Please sign in to comment.