Source
'name' => 'Phasellus imperdiet sapien sed justo elementum, quis maximus ipsum iaculis! Proin egestas, felis non efficitur molestie, nulla risus facilisis nisi, sed consectetur lorem mauris non arcu. Aliquam hendrerit massa vel metus maximus consequat. Sed condimen256',
<?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/CAPITest.php';
/**
* @onBefore prepareTestData
*
* @backup role
*/
class testRole extends CAPITest {
public static function role_create() {
return [
// Check successful create.
[
'role' => [
'name' => 'role-with-all-ui-elements',
'type' => '3',
'rules' => [
'ui' => [
[
'name' => 'monitoring.dashboard',
'status' => '1'
],
[
'name' => 'monitoring.problems',
'status' => '1'
],
[
'name' => 'monitoring.hosts',
'status' => '1'
],
[
'name' => 'monitoring.latest_data',
'status' => '1'
],
[
'name' => 'monitoring.maps',
'status' => '1'
],
[
'name' => 'services.services',
'status' => '1'
],
[
'name' => 'services.sla_report',
'status' => '1'
],
[
'name' => 'inventory.overview',
'status' => '1'
],
[
'name' => 'inventory.hosts',
'status' => '1'
],
[
'name' => 'reports.availability_report',
'status' => '1'
],
[
'name' => 'reports.top_triggers',
'status' => '1'
],
[
'name' => 'monitoring.discovery',
'status' => '1'
],
[
'name' => 'services.sla',
'status' => '1'
],
[
'name' => 'reports.scheduled_reports',
'status' => '1'
],
[