Skip to content

Commit 8212737

Browse files
author
Braxton Schafer
committed
add test to fail if hostinterfaceitem is set to fqdn
1 parent b2791ea commit 8212737

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec/classes/agent_spec.rb

+10
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@
154154
it { is_expected.to contain_file(config_path).with_content %r{^HostInterfaceItem=system.hostname$} }
155155
end
156156

157+
context 'configuration file with hostinterfaceitem set to fqdn' do
158+
let :params do
159+
{
160+
hostinterfaceitem: 'zabbix.example.com'
161+
}
162+
end
163+
164+
it { should not compile }
165+
end
166+
157167
context 'configuration file with hostinterface' do
158168
let :params do
159169
{

0 commit comments

Comments
 (0)