Source
self::$connector_tagid = CDBHelper::getRow('SELECT connector_tagid FROM connector_tag WHERE connectorid='.
<?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__).'/common/testAuditlogCommon.php';
/**
* @backup connector
*/
class testAuditlogConnector extends testAuditlogCommon {
/**
* Created connector ID.
*/
protected static $resourceid;
/**
* Created connector ID with NTLM HTTP authentication.
*/
protected static $resourceid_ntlm;
/**
* Created connector ID with Kerberos HTTP authentication.
*/
protected static $resourceid_kerberos;
/**
* Created connector ID with Digest HTTP authentication.
*/
protected static $resourceid_digest;
/**
* Created connector ID with Bearer HTTP authentication.
*/
protected static $resourceid_bearer;
/**
* Created connector tag ID.
*/
protected static $connector_tagid;
public function testAuditlogConnector_Create() {
$create = $this->call('connector.create', [
[
'name' => 'Created controller',
'data_type' => 1,
'url' => 'created_url.com',
'protocol' => 0,
'max_records' => 100,
'max_senders' => 55,
'max_attempts' => 2,