-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Selenium Test Release 2 Changes (#499)
* seltest rel2 final2 * added test case for policy changes dashboard * typo changes on policy changes dashboard * updates on failed api & sel tests * Update cluster.yml * test changes to pass cicd * Update cluster.yml
- Loading branch information
Showing
20 changed files
with
448 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
testing/tests/selenium_tests/cluster/test_credentials_access_logs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import pytest | ||
from selenium.webdriver.support.ui import WebDriverWait | ||
from selenium.webdriver.support import expected_conditions as EC | ||
from selenium.webdriver.common.by import By | ||
from selenium.common.exceptions import NoSuchElementException | ||
|
||
from .lib import dashboard_test_function | ||
class TestCredentialsAccessLogsDashboard: | ||
dashboard_id = "e4d7b207-99aa-4410-8a2e-03487222bda1" | ||
|
||
@pytest.fixture(scope="class") | ||
def setup_login(self, driver, login): | ||
login() | ||
yield driver | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_audit_logons(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Audit logons", ".echChart",".euiText") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_kerberos_ticket_failed_attempts(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Kerberos ticket - Failed attempts", ".expExpressionRenderer",".xyChart__empty") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_special_logon_attempts(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Special logon-attempts", ".echChart",".dummyval") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_account_lockout_attempts(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Account lockout -attempts", ".euiDataGrid",".euiSpacer") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_other_logon_logoff_disconnection_attempts(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Other logon /logoff-Disconnection attempts", ".expExpressionRenderer",".euiSpacer") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_kerberos_auth_request(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Kerberos auth request", ".echChart",".euiText") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_logon_attempts_by_host(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Logon attempts by hosts", ".echChart",".euiText") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_credential_validation_attempts(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Credential validation- attempts", ".echChart",".euiText") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_logon_using_explicit_credential_attempts(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Logon-using explicit credential attempts", ".echChart",".euiText") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
testing/tests/selenium_tests/cluster/test_identity_access_management.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import pytest | ||
from selenium.webdriver.support.ui import WebDriverWait | ||
from selenium.webdriver.support import expected_conditions as EC | ||
from selenium.webdriver.common.by import By | ||
from selenium.common.exceptions import NoSuchElementException | ||
from .lib import dashboard_test_function | ||
|
||
class TestCredentialsAccessLogsDashboard: | ||
dashboard_id = "32ed7a33-b22e-4c4b-b4bd-a55c2cf4c0d0" | ||
|
||
@pytest.fixture(scope="class") | ||
def setup_login(self, driver, login): | ||
login() | ||
yield driver | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_registry_object_access(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Registry Object Access", ".echChart",".dummyval") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_updated_scheduler_jobs(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Updated Scheduler Jobs", ".visualization",".dummyval") | ||
|
||
@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_new_scheduler_jobs(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "New Scheduler Jobs", ".visualization",".dummyval") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_password_resets_changes(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Password Resets and Changes", ".echChart",".euiDataGrid__noResults") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_user_lockouts(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "User Lockouts", ".echChart",".euiDataGrid__noResults") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_password_hash_access(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Password Hash Access", ".echChart",".euiDataGrid__noResults") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_changes_to_default_domain_policy(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Changes to Default Domain Policy", ".euiFlexGroup",".euiDataGrid__noResults") |
81 changes: 81 additions & 0 deletions
81
testing/tests/selenium_tests/cluster/test_policy_changes_system_activity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import pytest | ||
import os | ||
from selenium.webdriver.support.ui import WebDriverWait | ||
from selenium.webdriver.support import expected_conditions as EC | ||
from selenium.webdriver.common.by import By | ||
from selenium.common.exceptions import NoSuchElementException | ||
from .lib import dashboard_test_function | ||
|
||
class TestPolicyChangesSystemActivityDashboard: | ||
|
||
dashboard_id = "614a8392-17b5-49c4-9397-bc3cac526c61" | ||
|
||
@pytest.fixture(scope="class") | ||
def setup_login(self, driver, login): | ||
login() | ||
yield driver | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_rpc_connection_attempts(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "RPC Connection Attempts", ".expExpressionRenderer",".dummyval") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_exception_firewall_rules(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Added or Updated Exception Firewall Rules", ".expExpressionRenderer",".dummyval") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_rpc_connections(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "RPC Connections", ".echChart",".dummyval") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_firewall_setting_changes(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Firewall Setting Changes", ".euiDataGrid",".euiDataGrid__noResults") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_firewall_policy_changes(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Firewall Policy Changes", ".euiDataGrid",".euiDataGrid__noResults") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_firewall_turned_on(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Firewall Turned On", ".euiDataGrid",".euiDataGrid__noResults") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_firewall_turned_off(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Firewall Turned Off", ".euiDataGrid",".euiDataGrid__noResults") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_audit_policy_changes(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Audit Policy Changes", ".euiDataGrid",".euiDataGrid__noResults") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_kerberos_policy_changes(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "Kerberos Policy Changes", ".euiDataGrid",".euiDataGrid__noResults") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_pc_start_up(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "PC Start Up", ".echChart",".dummyval") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_pc_shut_down(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "PC Shut Down", ".echChart",".dummyval") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_pc_startups(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "PC Startups", ".expExpressionRenderer",".euiText") | ||
|
||
#@pytest.mark.skip(reason="This test is for reference to use in 2.0") | ||
def test_pc_shutdowns(self, setup_login, kibana_url, timeout): | ||
driver = setup_login | ||
dashboard_test_function(driver, kibana_url, timeout, self.dashboard_id, "PC Shutdowns", ".expExpressionRenderer",".euiText") |
Oops, something went wrong.