diff options
author | Natalja Romancaka <natalja.romancaka@zabbix.com> | 2022-07-06 12:09:23 +0300 |
---|---|---|
committer | Natalja Romancaka <natalja.romancaka@zabbix.com> | 2022-07-06 12:09:23 +0300 |
commit | 4ea69035d1bdfe05585efa8533fc30e5269ba5dc (patch) | |
tree | 472eccc78c923aa87c301343d7f09e3dedf24bb7 /ui | |
parent | 431b22c389729abcfead4738df6d7590ff1e571f (diff) |
.......... [ZBXNEXT-686] fixed Selenium tests, changed ldap settings and port for HA cluster
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tests/selenium/common/testSystemInformation.php | 6 | ||||
-rw-r--r-- | ui/tests/selenium/testFormAdministrationAuthenticationLdap.php | 42 |
2 files changed, 24 insertions, 24 deletions
diff --git a/ui/tests/selenium/common/testSystemInformation.php b/ui/tests/selenium/common/testSystemInformation.php index f4a966fc7f4..181874c04d4 100644 --- a/ui/tests/selenium/common/testSystemInformation.php +++ b/ui/tests/selenium/common/testSystemInformation.php @@ -77,7 +77,7 @@ class testSystemInformation extends CWebTest { 'ha_nodeid' => 'ckvaw9wlf0001tn7psxgh3wfo', 'name' => 'Active node', 'address' => $DB['SERVER'], - 'port' => $DB['PORT'], + 'port' => 0, 'lastaccess' => self::$active_lastaccess, 'status' => 3, 'ha_sessionid' => 'ckvaw9wjo0000td7p8j66e74x' @@ -174,7 +174,7 @@ class testSystemInformation extends CWebTest { // Check Zabbix server address and port for each record in the HA cluster nodes table. if ($name === 'Active node') { self::$skip_fields[] = $row->getColumn('Address'); - $this->assertEquals($DB['SERVER'].':'.$DB['PORT'], $row->getColumn('Address')->getText()); + $this->assertEquals($DB['SERVER'].':0', $row->getColumn('Address')->getText()); } } @@ -182,7 +182,7 @@ class testSystemInformation extends CWebTest { * Check and hide the active Zabbix server address in widget that is working in System stats mode or in the part * of the report that displays the overall system statistics. */ - $this->assertEquals($DB['SERVER'].':'.$DB['PORT'], $server_address->getText()); + $this->assertEquals($DB['SERVER'].':0', $server_address->getText()); self::$skip_fields[] = $server_address; // Hide the footer of the report as it contains Zabbix version. diff --git a/ui/tests/selenium/testFormAdministrationAuthenticationLdap.php b/ui/tests/selenium/testFormAdministrationAuthenticationLdap.php index d9934a19ebc..2ee9a6f8538 100644 --- a/ui/tests/selenium/testFormAdministrationAuthenticationLdap.php +++ b/ui/tests/selenium/testFormAdministrationAuthenticationLdap.php @@ -44,7 +44,7 @@ class testFormAdministrationAuthenticationLdap extends CWebTest { [ 'ldap_settings' => [ 'Enable LDAP authentication' => true, - 'LDAP host' => 'ldap.forumsys.com' + 'LDAP host' => 'ipa.demo1.freeipa.org' ], 'error' => 'Incorrect value for field "ldap_base_dn": cannot be empty.' ] @@ -53,8 +53,8 @@ class testFormAdministrationAuthenticationLdap extends CWebTest { [ 'ldap_settings' => [ 'Enable LDAP authentication' => true, - 'LDAP host' => 'ldap.forumsys.com', - 'Base DN' => 'dc=example,dc=com' + 'LDAP host' => 'ipa.demo1.freeipa.org', + 'Base DN' => 'cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org' ], 'error' => 'Incorrect value for field "ldap_search_attribute": cannot be empty.' ] @@ -63,8 +63,8 @@ class testFormAdministrationAuthenticationLdap extends CWebTest { [ 'ldap_settings' => [ 'Enable LDAP authentication' => true, - 'LDAP host' => 'ldap.forumsys.com', - 'Base DN' => 'dc=example,dc=com', + 'LDAP host' => 'ipa.demo1.freeipa.org', + 'Base DN' => 'cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org', 'Search attribute' => 'uid' ], 'error' => 'Login name or password is incorrect.' @@ -74,10 +74,10 @@ class testFormAdministrationAuthenticationLdap extends CWebTest { [ 'ldap_settings' => [ 'Enable LDAP authentication' => true, - 'LDAP host' => 'ldap.forumsys.com', - 'Base DN' => 'dc=example,dc=com', + 'LDAP host' => 'ipa.demo1.freeipa.org', + 'Base DN' => 'cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org', 'Search attribute' => 'uid', - 'Login' => 'galieleo' + 'Login' => 'admin' ], 'error' => 'Login name or password is incorrect.' ] @@ -86,10 +86,10 @@ class testFormAdministrationAuthenticationLdap extends CWebTest { [ 'ldap_settings' => [ 'Enable LDAP authentication' => true, - 'LDAP host' => 'ldap.forumsys.com', - 'Base DN' => 'dc=example,dc=com', + 'LDAP host' => 'ipa.demo1.freeipa.org', + 'Base DN' => 'cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org', 'Search attribute' => 'uid', - 'Bind password' => 'password' + 'Bind password' => 'Secret123' ], 'error' => 'Incorrect value for field "ldap_bind_dn": cannot be empty.' ] @@ -100,23 +100,23 @@ class testFormAdministrationAuthenticationLdap extends CWebTest { 'password' => 'zabbix', 'ldap_settings' => [ 'Enable LDAP authentication' => true, - 'LDAP host' => 'ldap.forumsys.com', + 'LDAP host' => 'ipa.demo1.freeipa.org', 'Port' => '389', - 'Base DN' => 'dc=example,dc=com', + 'Base DN' => 'cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org', 'Search attribute' => 'uid', - 'Bind DN' => 'cn=read-only-admin,dc=example,dc=com', + 'Bind DN' => 'uid=admin,cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org', 'Case-sensitive login' => true, - 'Bind password' => 'password', - 'Login' => 'galieleo', - 'User password' => 'password' + 'Bind password' => 'Secret123', + 'Login' => 'admin', + 'User password' => 'Secret123' ], 'db_check' => [ 'authentication_type' => '1', - 'ldap_host' => 'ldap.forumsys.com', + 'ldap_host' => 'ipa.demo1.freeipa.org', 'ldap_port' => '389', - 'ldap_base_dn' => 'dc=example,dc=com', - 'ldap_bind_dn' => 'cn=read-only-admin,dc=example,dc=com', - 'ldap_bind_password' => 'password', + 'ldap_base_dn' => 'cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org', + 'ldap_bind_dn' => 'uid=admin,cn=users,cn=accounts,dc=demo1,dc=freeipa,dc=org', + 'ldap_bind_password' => 'Secret123', 'ldap_search_attribute' => 'uid', 'http_auth_enabled' => '0', 'http_login_form' => '0', |