From 1cd5c493c288f6c9804601890330002bef33987b Mon Sep 17 00:00:00 2001 From: Aleksei Burlakov Date: Wed, 3 Jun 2026 11:19:15 +0200 Subject: [PATCH 1/2] Test: use another name for hot_primitive Use dum_primitive instead. So that it comes alphabetically before both stonith-sbd and fencing-sbd. --- e2e_test/hawk_test_driver.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/e2e_test/hawk_test_driver.py b/e2e_test/hawk_test_driver.py index 12e8caa73..76515147a 100644 --- a/e2e_test/hawk_test_driver.py +++ b/e2e_test/hawk_test_driver.py @@ -26,8 +26,8 @@ class Error: PRIMITIVE_TARGET_ROLE_ERR = "Couldn't find value [Started] for primitive target-role" FENCING_ERR = "Couldn't find stonith-sbd menu to place it in maintenance mode" COOL_PRIMITIVE_ERR = "Couldn't find cool_primitive menu to edit" - HOT_PRIMITIVE_ERR = "Couldn't find hot_primitive menu to edit" - DUMMY_PRIMITIVE_ERR = "Couldn't find hot_primitive menu to edit" + DUM_PRIMITIVE_ERR = "Couldn't find dum_primitive menu to edit" + DUMMY_PRIMITIVE_ERR = "Couldn't find dummy_primitive menu to edit" FENCING_ERR_OFF = "Could not find Disable Maintenance Mode button for stonith-sbd" CRM_CONFIG_ADVANCED_ATTRIBUTES = "crm_config dropdown box shows the advanced attributes, but shouldn't" @@ -79,7 +79,7 @@ class Xpath: FENCING_MAINT_OFF = '//a[contains(@href, "stonith-sbd") and contains(@title, "Disable Maintenance Mode")]' FENCING_MAINT_ON = '//a[contains(@href, "stonith-sbd/maintenance_on")]' COOL_PRIMITIVE_EDIT = '//a[contains(@href, "cool_primitive/edit")]' - HOT_PRIMITIVE_EDIT = '//a[contains(@href, "hot_primitive/edit")]' + DUM_PRIMITIVE_EDIT = '//a[contains(@href, "dum_primitive/edit")]' DUMMY_PRIMITIVE_EDIT = '//a[contains(@href, "dummy_primitive/edit")]' TARGET_ROLE_FORMAT = '//select[contains(@class, "form-control") and contains(@name, "{}[meta][target-role]")]' TARGET_ROLE_STARTED = '//option[contains(@value, "tarted")]' @@ -647,20 +647,20 @@ def test_add_primitive(self, primitive): def test_copy_primitive(self): ''' - Copy the cool_primitive into hot_primitive. This assumes the cool_primitive + Copy the cool_primitive into dum_primitive. This assumes the cool_primitive resource is the first entry in the resources table Returns: boolean: True if successful or False if failed ''' if self.find_element(By.XPATH, Xpath.RSC_ROWS): - print("TEST: test_copy_primitive: cool_primitive --> cool_primitive + hot_primitive") + print("TEST: test_copy_primitive: cool_primitive --> cool_primitive + dum_primitive") resource_number_from_top = 1 # 1. cool_primitive, 2. stonith-sbd # First, click on Edit time.sleep(2) self.check_and_click_by_xpath(Error.COOL_PRIMITIVE_ERR, [Xpath.DROP_DOWN_FORMAT.format(resource_number_from_top), Xpath.COOL_PRIMITIVE_EDIT]) - # Second, copy the cool_primitive into hot_primitive + # Second, copy the cool_primitive into dum_primitive time.sleep(2) # to redirect # try to find 'Copy' for 10 seconds (Ruby hawk), # if none --> look for '