From 0c0fd3233abd89b9148ecc76b3293786fb678cb9 Mon Sep 17 00:00:00 2001 From: Sergejs Olonkins Date: Thu, 24 Feb 2022 11:59:29 +0200 Subject: .......... [ZBXNEXT-686] fixed minor issues in autotests after latest template build --- ui/tests/selenium/testFormTemplate.php | 4 ++-- ui/tests/selenium/testPageLowLevelDiscovery.php | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/tests/selenium/testFormTemplate.php b/ui/tests/selenium/testFormTemplate.php index e03a56cebda..ec547dcecab 100644 --- a/ui/tests/selenium/testFormTemplate.php +++ b/ui/tests/selenium/testFormTemplate.php @@ -257,7 +257,7 @@ class testFormTemplate extends CLegacyWebTest { $this->assertEquals(1, CDBHelper::getCount("SELECT hostid FROM hosts WHERE host='$this->template_clone'")); $template = CDBHelper::getRow("select hostid from hosts where host like '".$cloned_template_name."'"); - $this->assertEquals(66, CDBHelper::getCount("SELECT itemid FROM items WHERE hostid='".$template['hostid']."'")); + $this->assertEquals(67, CDBHelper::getCount("SELECT itemid FROM items WHERE hostid='".$template['hostid']."'")); $this->assertEquals(0, CDBHelper::getCount("SELECT dashboardid FROM dashboard WHERE templateid='".$template['hostid']."'")); } @@ -279,7 +279,7 @@ class testFormTemplate extends CLegacyWebTest { $this->assertEquals(1, CDBHelper::getCount("SELECT hostid FROM hosts WHERE host='$this->template_clone'")); $template = CDBHelper::getRow("select hostid from hosts where host like '".$cloned_template_name."'"); - $this->assertEquals(66, CDBHelper::getCount("SELECT itemid FROM items WHERE hostid='".$template['hostid']."'")); + $this->assertEquals(67, CDBHelper::getCount("SELECT itemid FROM items WHERE hostid='".$template['hostid']."'")); $this->assertEquals(1, CDBHelper::getCount("SELECT dashboardid FROM dashboard WHERE templateid='".$template['hostid']."'")); } diff --git a/ui/tests/selenium/testPageLowLevelDiscovery.php b/ui/tests/selenium/testPageLowLevelDiscovery.php index de47de3cdc7..eb267c7ad42 100644 --- a/ui/tests/selenium/testPageLowLevelDiscovery.php +++ b/ui/tests/selenium/testPageLowLevelDiscovery.php @@ -408,8 +408,6 @@ class testPageLowLevelDiscovery extends CWebTest { ], 'expected' => [ 'Linux block devices by Zabbix agent: Block devices discovery', - // TODO: remove this template when ZBX-20499 is fixed - 'Zabbix server health: Zabbix stats cluster: High availability cluster node discovery', 'Linux filesystems by Zabbix agent: Mounted filesystem discovery', 'Linux network interfaces by Zabbix agent: Network interface discovery' ] -- cgit v1.2.3