Source
foreach ([self::COMPONENT_AGENT => self::AGENT_PORT_SUFFIX, self::COMPONENT_AGENT2 => self::AGENT2_PORT_SUFFIX] as $component => $port) {
<?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/CIntegrationTest.php';
/**
* Test suite for user parameters reload
*
* @required-components server, agent, agent2
* @configurationDataProvider configurationProvider
* @backup items, history_str, hosts
* @hosts agentd, agent2
*/
class testUserParametersReload extends CIntegrationTest {
const ITEM_NAME_01 = 'usrprm01';
const ITEM_NAME_02 = 'usrprm02';
const ITEM_NAME_03 = 'usrprm03';
private static $hostids = [];
private static $itemids = [];
// List of items to check.
private static $items = [
[
'key' => self::ITEM_NAME_01,
'component' => self::COMPONENT_AGENT
],
[
'key' => self::ITEM_NAME_02,
'component' => self::COMPONENT_AGENT
],
[
'key' => self::ITEM_NAME_03,
'component' => self::COMPONENT_AGENT
],
[
'key' => self::ITEM_NAME_01,
'component' => self::COMPONENT_AGENT2
],
[
'key' => self::ITEM_NAME_02,
'component' => self::COMPONENT_AGENT2
],
[
'key' => self::ITEM_NAME_03,
'component' => self::COMPONENT_AGENT2
]
];