Hi,
Below is the puppet manifests,
host { $::fqdn :
ensure => $ensure,
host_aliases => $::hostname,
ip => $::ipaddress,
}
I have written below serverspec for this
describe host('server.puppetlabs.com') do
# it { should exist }
its(:ipaddress) { should eq '172.45.300.456' }
it { should be_aliased_to 'server }
end
But getting below error
On host `localhost'
Failure/Error: it { should be_aliased_to 'server' }
expected Host "server.puppetlabscom" to respond to `aliased_to?`
↧