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
/*
** 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/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'
],