Source
'passive_unsupported' => ['version' => '5.4.1 ', 'color' => 'red', 'icon_color' => 'zi-i-negative', 'hint_text' =>
<?php
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
require_once dirname(__FILE__) . '/../../include/CWebTest.php';
require_once dirname(__FILE__).'/../behaviors/CMessageBehavior.php';
require_once dirname(__FILE__).'/../behaviors/CTableBehavior.php';
require_once dirname(__FILE__).'/../../include/helpers/CDataHelper.php';
/**
* Test for checking Proxies page.
*
* @dataSource Proxies
*
* @backup hosts
*/
class testPageAdministrationProxies extends CWebTest {
/**
* Attach MessageBehavior and TableBehavior to the test.
*
* @return array
*/
public function getBehaviors() {
return [
CMessageBehavior::class,
CTableBehavior::class
];
}
private $sql = 'SELECT * FROM hosts ORDER BY hostid';
public function testPageAdministrationProxies_Layout() {
$this->page->login()->open('zabbix.php?action=proxy.list')->waitUntilReady();
$this->page->assertTitle('Configuration of proxies');
$this->page->assertHeader('Proxies');
$form = $this->query('name:zbx_filter')->waitUntilPresent()->asForm()->one();
// Check default fields and values.
$fields = [
'Name' => [''],
'Mode' => ['Any', 'Active', 'Passive'],
'Version' => ['Any', 'Current', 'Outdated']
];
foreach ($fields as $field => $value) {
$this->assertEquals($value[0], $form->getField($field)->getValue());
}
array_shift($fields);
foreach ($fields as $radio => $labels) {