mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
IcingaHost: fix tests
This commit is contained in:
parent
d804ebb321
commit
ad7c5bc997
@ -169,7 +169,7 @@ class Zend_View_Helper_FormDataFilter extends Zend_View_Helper_FormElement
|
||||
}
|
||||
}
|
||||
|
||||
if ($col === 'groups' && $dummy->supportsGroups()) {
|
||||
if (substr($col, -7) === '.groups' && $dummy->supportsGroups()) {
|
||||
return $this->selectGroup($type, $filter);
|
||||
}
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ class AssignRenderer
|
||||
|
||||
protected function renderEquals($column, $expression)
|
||||
{
|
||||
if ($column === 'groups') {
|
||||
if (substr($column, -7) === '.groups') {
|
||||
return sprintf(
|
||||
'%s in %s',
|
||||
$expression,
|
||||
|
@ -137,10 +137,9 @@ class IcingaHost extends IcingaObject
|
||||
$properties = array();
|
||||
if (!empty($hostProperties)) {
|
||||
$properties[$props] = $hostProperties;
|
||||
$properties[$props][$prefix . 'groups'] = 'Groups';
|
||||
}
|
||||
|
||||
$properties['groups'] = 'Groups';
|
||||
|
||||
if (!empty($hostVars)) {
|
||||
$properties[$vars] = $hostVars;
|
||||
}
|
||||
|
@ -668,7 +668,8 @@ class IcingaHostTest extends BaseTestCase
|
||||
"${prefix}notes_url" => "notes_url",
|
||||
"${prefix}retry_interval" => "retry_interval",
|
||||
"${prefix}volatile" => "volatile",
|
||||
"${prefix}zone" => "zone"
|
||||
"${prefix}zone" => "zone",
|
||||
"${prefix}groups" => "Groups"
|
||||
);
|
||||
}
|
||||
protected function loadRendered($name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user