File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 275
275
Stdlib::Ensure::Service $service_ensure = $zabbix::params::agent_service_ensure,
276
276
Boolean $service_enable = $zabbix::params::agent_service_enable,
277
277
$hostname = $zabbix::params::agent_hostname,
278
- $hostnameitem = $zabbix::params::agent_hostnameitem,
278
+ Optional[String[1]] $hostnameitem = $zabbix::params::agent_hostnameitem,
279
279
$hostmetadata = $zabbix::params::agent_hostmetadata,
280
280
$hostmetadataitem = $zabbix::params::agent_hostmetadataitem,
281
281
Optional[Stdlib::Fqdn] $hostinterface = $zabbix::params::agent_hostinterface,
Original file line number Diff line number Diff line change 154
154
it { is_expected . to contain_file ( config_path ) . with_content %r{^HostInterfaceItem=system.hostname$} }
155
155
end
156
156
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 { is_expected . to compile . and_raise_error ( %r{.*} ) }
165
+ end
166
+
157
167
context 'configuration file with hostinterface' do
158
168
let :params do
159
169
{
You can’t perform that action at this time.
0 commit comments