Source
<?php
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
require_once dirname(__FILE__) . '/../include/CIntegrationTest.php';
/**
* Test suite for alerting for services.
*
* @required-components server, proxy
* @configurationDataProvider configurationProvider
* @backup config, functions, globalmacro
* @backup group_prototype, host_discovery, host_inventory, hostmacro, host_rtdata, hosts, hosts_groups, hosts_templates
* @backup hstgrp, interface, item_condition, item_discovery, item_parameter, item_preproc, item_rtdata, items
* @backup lld_macro_path, lld_override, lld_override_condition, lld_override_opdiscover, lld_override_operation
* @backup lld_override_opstatus, proxy, proxy_rtdata, auditlog, changelog, proxy_history, config_autoreg_tls
* @backup expressions, ha_node, regexps
*/
class testProxyConfSync extends CIntegrationTest
{
private $expected_initial = [
[
'config' =>
[
'insert' => '1',
'update' => '0',
'delete' => '0'
]
],
[
'autoreg' =>
[
'insert' => '0',
'update' => '0',
'delete' => '0'
]
],
[
'autoreghost' =>
[
'insert' => '0',
'update' => '0',
'delete' => '0'
]
],
[
'hosts' =>
[
'insert' => '15',
'update' => '0',
'delete' => '0'
]
],
[
'host_invent' =>
[
'insert' => '3',
'update' => '0',
'delete' => '0'
]
],
[
'templates' =>
[
'insert' => '4',
'update' => '0',
'delete' => '0'
]
],
[
'globmacros' =>
[
'insert' => '3',
'update' => '0',
'delete' => '0'