Source
'Incorrect value "-900000" for "Percentile line (left)" field: must be between 0 and 100, and have no more than 4 digits after the decimal point.',
<?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';
class testFormGraphs extends CWebTest {
const HOST = 'Simple form test host'; // Host id = 40001.
const HOSTID = 40001; // Simple form test host.
const LLDID = 133800; // testFormDiscoveryRule on Simple form test host.
const SQL = 'SELECT * FROM graphs ORDER BY graphid';
const LLD_WITH_ITEMS = 'LLD rule for item types';
const HOST_WITH_ITEMS = 'Host for all item value types';
/**
* Flag for graph prototype.
*/
protected $prototype = false;
/**
* URL for opening graph or graph prototype form.
*/
protected $url;
/**
* Name of graph for update scenario.
*
*/
protected static $update_graph;
/**
* Id for item used in graph prototype.
*
* @var integer
*/
protected static $itemid;
/**
* Ids of items for creating graphs.
*
* @var array
*/
protected static $items = [
'items' => [
'graph_trap_int' => ['value_type' => ITEM_VALUE_TYPE_UINT64, 'itemid' => null],
'graph_trap_float' => ['value_type' => ITEM_VALUE_TYPE_FLOAT, 'itemid' => null],
'graph_trap_text' => ['value_type' => ITEM_VALUE_TYPE_TEXT, 'itemid' => null],