diff --git a/package.json b/package.json index 3c73efda4d..659660e930 100644 --- a/package.json +++ b/package.json @@ -138,7 +138,7 @@ "react-dev-utils": "^12.0.1", "sass": "^1.72.0", "sass-loader": "^12.3.2", - "selenium-webdriver": "^4.0.0-beta.2", + "selenium-webdriver": "^4.35.0", "source-map-loader": "^5.0.0", "stylelint": "^13.3.3", "stylelint-config-rational-order": "^0.1.2", diff --git a/tests/features/MLFunction.feature b/tests/features/MLFunction.feature index 24213c32f7..ff3a114412 100644 --- a/tests/features/MLFunction.feature +++ b/tests/features/MLFunction.feature @@ -109,7 +109,7 @@ Feature: ML Functions Then verify "Date_Picker_Filter_Dropdown" dropdown element on "ML_Functions" wizard should contains "Dropdown_Options"."Date_Picker_Filter_Options" When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "ML_Functions" wizard And wait load page - When click on cell with row index 2 in "name" column in "Functions_Table" table on "ML_Functions" wizard + When click on cell with row index 3 in "name" column in "Functions_Table" table on "ML_Functions" wizard And wait load page Then verify "Header" element visibility on "ML_Function_Info_Pane" wizard Then verify "Updated" element visibility on "ML_Function_Info_Pane" wizard @@ -119,7 +119,7 @@ Feature: ML Functions Then verify "Overview" tab is active in "Info_Pane_Tab_Selector" on "ML_Function_Info_Pane" wizard Then verify "Overview_Headers" on "ML_Function_Info_Pane" wizard should contains "ML_Function_Info_Pane"."Overview_Headers" Then click on "Cross_Close_Button" element on "ML_Function_Info_Pane" wizard - When click on cell with row index 1 in "name" column in "Functions_Table" table on "ML_Functions" wizard + When click on cell with row index 2 in "name" column in "Functions_Table" table on "ML_Functions" wizard And wait load page Then verify "Header" element visibility on "ML_Function_Info_Pane" wizard Then verify "Updated" element visibility on "ML_Function_Info_Pane" wizard diff --git a/tests/features/alerts.feature b/tests/features/alerts.feature index 62ffa2eb23..31dc72b71b 100644 --- a/tests/features/alerts.feature +++ b/tests/features/alerts.feature @@ -53,11 +53,10 @@ Feature: Alerts Page @MLAlert @smoke - # TODO: Add data to the mock to check the following elements (existing alerts with endpoint type) Scenario: MLAlert002 - Check filtering by Endpoint entity type on Alerts page Given open url And wait load page - And click on row root with value "auto-generated-data" in "name" column in "Projects_Table" table on "Projects" wizard + And click on row root with value "default" in "name" column in "Projects_Table" table on "Projects" wizard And wait load page And select "tab" with "Alerts" value in breadcrumbs menu And wait load page @@ -72,7 +71,6 @@ Feature: Alerts Page When select "Endpoint" option in "Entity_Type_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard Then click on "Apply_Button" element on "FilterBy_Popup" wizard And wait load page - # Add data to the mock to check the following elements Then verify "Alerts_Table" element visibility on "Alerts" wizard Then value in "entityType" column with "tooltip" in "Alerts_Table" on "Alerts" wizard should contains "Endpoint" Then verify "Table_FilterBy_Button" element on "Alerts" wizard should display hover tooltip "Common_Tooltips"."FilterBy_Button_1" @@ -154,14 +152,13 @@ Feature: Alerts Page @MLAlert @smoke - # TODO: Add data to the mock to check the following elements (existing alerts with application type) Scenario: MLAlert004 - Check filtering by Application entity type on Alerts page Given open url And wait load page - And click on row root with value "cat-vs-dog-classification" in "name" column in "Projects_Table" table on "Projects" wizard + And click on row root with value "default" in "name" column in "Projects_Table" table on "Projects" wizard And wait load page Then verify breadcrumbs "tab" label should be equal "Project monitoring" value - Then verify breadcrumbs "project" label should be equal "cat-vs-dog-classification" value + Then verify breadcrumbs "project" label should be equal "default" value And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard Then click on "Alerts_Button" element on "commonPagesHeader" wizard And wait load page @@ -172,7 +169,6 @@ Feature: Alerts Page Then verify "Date_Picker_Filter_Dropdown" dropdown on "Alerts" wizard selected option value "Past 24 hours" When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Alerts" wizard And wait load page - # Add data to the mock to check the following elements Then verify "Alerts_Table" element visibility on "Alerts" wizard Then click on "Table_FilterBy_Button" element on "Alerts" wizard When select "Application" option in "Entity_Type_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard @@ -267,11 +263,10 @@ Feature: Alerts Page @MLAlert @smoke - # TODO: Add data to the mock to check the following elements (existing job data for details popup) Scenario: MLAlert006 - Check components in Job detail pop-up on Job alert detail pane on Alerts page Given open url And wait load page - And click on row root with value "auto-generated-data" in "name" column in "Projects_Table" table on "Projects" wizard + And click on row root with value "default" in "name" column in "Projects_Table" table on "Projects" wizard And wait load page And select "tab" with "Alerts" value in breadcrumbs menu And wait load page @@ -285,28 +280,32 @@ Feature: Alerts Page When select "Job" option in "Entity_Type_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard Then click on "Apply_Button" element on "FilterBy_Popup" wizard And wait load page - Then type value "alertd478b0739b" to "Search_By_Name_Filter_Input" field on "Alerts" wizard + Then value in "entityType" column with "tooltip" in "Alerts_Table" on "Alerts" wizard should contains "Job" + Then click on "Table_FilterBy_Button" element on "Alerts" wizard + When select "All" option in "Entity_Type_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard + Then click on "Apply_Button" element on "FilterBy_Popup" wizard + And wait load page + Then type value "obryv-default" to "Search_By_Name_Filter_Input" field on "Alerts" wizard Then click on "Refresh_Button" element on "Alerts" wizard And wait load page - Then value in "alertName" column with "text" in "Alerts_Table" on "Alerts" wizard should contains "alertd478b0739b" + Then value in "alertName" column with "text" in "Alerts_Table" on "Alerts" wizard should contains "alert-name-obryv-default" And wait load page Then verify "Alerts_Table" element visibility on "Alerts" wizard Then value in "entityType" column with "tooltip" in "Alerts_Table" on "Alerts" wizard should contains "Job" When click on cell with row index 1 in "alertName" column in "Alerts_Table" table on "Alerts" wizard And wait load page Then verify "Header" element visibility on "Alerts_Jobs_Info_Pane" wizard - Then "Header" element on "Alerts_Jobs_Info_Pane" should contains "alertd478b0739b" value + Then "Header" element on "Alerts_Jobs_Info_Pane" should contains "alert-name-obryv-default" value Then verify "Overview_General_Headers" element visibility on "Alerts_Jobs_Info_Pane" wizard Then verify "Overview_General_Headers" on "Alerts_Jobs_Info_Pane" wizard should contains "Alerts_Jobs_Info_Pane"."Overview_General_Headers_PerProject" Then verify "Job_Detail_PopUp_Link" element visibility on "Alerts_Jobs_Info_Pane" wizard Then click on "Job_Detail_PopUp_Link" element on "Alerts_Jobs_Info_Pane" wizard - # Add data to the mock to check the following elements Then verify if "Modal_Transition_Popup" popup dialog appears Then verify "Title" element visibility on "Modal_Transition_Popup" wizard - Then "Title" element on "Modal_Transition_Popup" should contains "erann-test" value + Then "Title" element on "Modal_Transition_Popup" should contains "test-func-oyn-handler" value Then verify "Data_Status" element visibility on "Modal_Transition_Popup" wizard Then verify "State_Icon" element visibility on "Modal_Transition_Popup" wizard - Then verify "State_Icon" element on "Modal_Transition_Popup" wizard should display hover tooltip "Jobs_Monitor_Tab_Info_Pane"."Error_State" + Then verify "State_Icon" element on "Modal_Transition_Popup" wizard should display hover tooltip "Jobs_Monitor_Tab_Info_Pane"."Error_State_With_Message" Then verify "Refresh_Button" element visibility on "Modal_Transition_Popup" wizard Then verify "Refresh_Button" element on "Modal_Transition_Popup" wizard should display hover tooltip "Common_Tooltips"."Refresh_Button" Then click on "Refresh_Button" element on "Modal_Transition_Popup" wizard @@ -349,21 +348,21 @@ Feature: Alerts Page Then verify "Logs" tab is active in "Tab_Selector" on "Modal_Transition_Popup" wizard Then verify "Logs_Text_container" element visibility on "Modal_Transition_Popup" wizard Then verify "Logs_Refresh_Button" element visibility on "Modal_Transition_Popup" wizard - And verify "No_Data_Message" element visibility on "commonPagesHeader" wizard - Then "No_Data_Message" component on "commonPagesHeader" should contains "No_Data_Message"."No_Data" + Then click on "Logs_Refresh_Button" element on "Modal_Transition_Popup" wizard + And wait load page + Then verify "Logs_Text_container" element visibility on "Modal_Transition_Popup" wizard And select "Pods" tab in "Tab_Selector" on "Modal_Transition_Popup" wizard And wait load page Then verify "Pods" tab is active in "Tab_Selector" on "Modal_Transition_Popup" wizard And verify "No_Data_Message" element visibility on "commonPagesHeader" wizard - Then "No_Data_Message" component on "commonPagesHeader" should contains "No_Data_Message"."No_Pods_data" + Then "No_Data_Message" component on "commonPagesHeader" should contains "No_Data_Message"."No_Pods_data_Completion" @MLAlert @smoke - # TODO: Add data to the mock to check the following elements (existing alerts with endpoint type) Scenario: MLAlert007 - Check components on Endpoints alert detail pane on Alerts page Given open url And wait load page - And click on row root with value "cat-vs-dog-classification" in "name" column in "Projects_Table" table on "Projects" wizard + And click on row root with value "default" in "name" column in "Projects_Table" table on "Projects" wizard And wait load page And select "tab" with "Alerts" value in breadcrumbs menu And wait load page @@ -374,7 +373,6 @@ Feature: Alerts Page Then verify "Date_Picker_Filter_Dropdown" dropdown on "Alerts" wizard selected option value "Past 24 hours" When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Alerts" wizard And wait load page - # Add data to the mock to check the following elements Then verify "Alerts_Table" element visibility on "Alerts" wizard Then click on "Table_FilterBy_Button" element on "Alerts" wizard When select "Endpoint" option in "Entity_Type_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard @@ -385,7 +383,7 @@ Feature: Alerts Page When click on cell with row index 1 in "alertName" column in "Alerts_Table" table on "Alerts" wizard And wait load page Then verify "Header" element visibility on "Alerts_Endpoint_Info_Pane" wizard - Then "Header" element on "Alerts_Endpoint_Info_Pane" should contains "data-drift" value + Then "Header" element on "Alerts_Endpoint_Info_Pane" should contains "alert-name-uqbxb-proj-default" value Then verify "Cross_Close_Button" element visibility on "Alerts_Endpoint_Info_Pane" wizard Then click on "Cross_Close_Button" element on "Alerts_Endpoint_Info_Pane" wizard Then verify "Header" element not exists on "Alerts_Endpoint_Info_Pane" wizard @@ -393,14 +391,14 @@ Feature: Alerts Page And wait load page Then verify "Header" element visibility on "Alerts_Endpoint_Info_Pane" wizard Then verify "Overview_General_Headers" element visibility on "Alerts_Endpoint_Info_Pane" wizard - Then verify "Overview_General_Headers" on "Alerts_Endpoint_Info_Pane" wizard should contains "Alerts_Endpoint_Info_Pane"."Overview_General_Headers" + Then verify "Overview_General_Headers" on "Alerts_Endpoint_Info_Pane" wizard should contains "Alerts_Endpoint_Info_Pane"."Overview_General_Headers_Per_Project" Then verify "Overview_Trigger_Criteria" element visibility on "Alerts_Endpoint_Info_Pane" wizard Then verify "Overview_Trigger_Criteria" on "Alerts_Endpoint_Info_Pane" wizard should contains "Alerts_Jobs_Info_Pane"."Overview_Trigger_Criteria_Headers" Then verify "Notifications_Header" element visibility on "Alerts_Endpoint_Info_Pane" wizard Then verify "Notifications_Item" element visibility on "Alerts_Endpoint_Info_Pane" wizard Then verify "Date_Picker_Filter_Dropdown" element visibility on "Alerts_Endpoint_Info_Pane" wizard Then verify "Date_Picker_Filter_Dropdown" dropdown on "Alerts_Endpoint_Info_Pane" wizard selected option value "Past 24 hours" - Then verify "Date_Picker_Filter_Dropdown" dropdown element on "Alerts_Endpoint_Info_Pane" wizard should contains "Dropdown_Options"."Date_Picker_Filter_Options" + Then verify "Date_Picker_Filter_Dropdown" dropdown element on "Alerts_Endpoint_Info_Pane" wizard should contains "Dropdown_Options"."Date_Picker_Filter_Options_Endpoint" Then verify "Metrics_App_Name" element visibility on "Alerts_Endpoint_Info_Pane" wizard Then verify "Metrics_Stats_Card" element visibility on "Alerts_Endpoint_Info_Pane" wizard Then click on "Cross_Close_Button" element on "Alerts_Endpoint_Info_Pane" wizard @@ -411,11 +409,10 @@ Feature: Alerts Page @MLAlert @smoke - # TODO: Add data to the mock to check the following elements (existing alerts with application type) Scenario: MLAlert008 - Check components on Application alert detail pane on Alerts page Given open url And wait load page - And click on row root with value "cat-vs-dog-classification" in "name" column in "Projects_Table" table on "Projects" wizard + And click on row root with value "default" in "name" column in "Projects_Table" table on "Projects" wizard And wait load page And select "tab" with "Alerts" value in breadcrumbs menu And wait load page @@ -426,7 +423,6 @@ Feature: Alerts Page Then verify "Date_Picker_Filter_Dropdown" dropdown on "Alerts" wizard selected option value "Past 24 hours" When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Alerts" wizard And wait load page - # Add data to the mock to check the following elements Then verify "Alerts_Table" element visibility on "Alerts" wizard Then click on "Table_FilterBy_Button" element on "Alerts" wizard When select "Application" option in "Entity_Type_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard @@ -445,7 +441,7 @@ Feature: Alerts Page And wait load page Then verify "Header" element visibility on "Alerts_Application_Info_Pane" wizard Then verify "Overview_General_Headers" element visibility on "Alerts_Application_Info_Pane" wizard - Then verify "Overview_General_Headers" on "Alerts_Application_Info_Pane" wizard should contains "Alerts_Application_Info_Pane"."Overview_General_Headers" + Then verify "Overview_General_Headers" on "Alerts_Application_Info_Pane" wizard should contains "Alerts_Application_Info_Pane"."Overview_General_Headers_Per_Project" Then verify "Overview_Trigger_Criteria" element visibility on "Alerts_Application_Info_Pane" wizard Then verify "Overview_Trigger_Criteria" on "Alerts_Application_Info_Pane" wizard should contains "Alerts_Jobs_Info_Pane"."Overview_Trigger_Criteria_Headers" Then verify "Notifications_Header" element visibility on "Alerts_Application_Info_Pane" wizard diff --git a/tests/features/alertsMonitoring.feature b/tests/features/alertsMonitoring.feature index 049ff554bc..10e1f89a38 100644 --- a/tests/features/alertsMonitoring.feature +++ b/tests/features/alertsMonitoring.feature @@ -256,7 +256,6 @@ Feature: Alerts Monitoring Page @MLAM @smoke - # TODO: Add data to the mock to check the following elements (existing job data for details popup) Scenario: MLAM006 - Check components in Job detail pop-up on Job alert detail pane Given open url And wait load page @@ -282,14 +281,29 @@ Feature: Alerts Monitoring Page Then verify "Overview_General_Headers" element visibility on "Alerts_Jobs_Info_Pane" wizard Then verify "Overview_General_Headers" on "Alerts_Jobs_Info_Pane" wizard should contains "Alerts_Jobs_Info_Pane"."Overview_General_Headers" Then verify "Job_Detail_PopUp_Link" element visibility on "Alerts_Jobs_Info_Pane" wizard + When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Alerts_Monitoring" wizard + And wait load page + Then type value "obryv-default" to "Search_By_Name_Filter_Input" field on "Alerts_Monitoring" wizard + Then click on "Refresh_Button" element on "Alerts_Monitoring" wizard + And wait load page + Then value in "alertName" column with "text" in "Alerts_Table" on "Alerts_Monitoring" wizard should contains "alert-name-obryv-default" + And wait load page + Then verify "Alerts_Table" element visibility on "Alerts_Monitoring" wizard + Then value in "entityType" column with "tooltip" in "Alerts_Table" on "Alerts_Monitoring" wizard should contains "Job" + When click on cell with row index 1 in "alertName" column in "Alerts_Table" table on "Alerts_Monitoring" wizard + And wait load page + Then verify "Header" element visibility on "Alerts_Jobs_Info_Pane" wizard + Then "Header" element on "Alerts_Jobs_Info_Pane" should contains "alert-name-obryv-default" value + Then verify "Overview_General_Headers" element visibility on "Alerts_Jobs_Info_Pane" wizard + Then verify "Overview_General_Headers" on "Alerts_Jobs_Info_Pane" wizard should contains "Alerts_Jobs_Info_Pane"."Overview_General_Headers" + Then verify "Job_Detail_PopUp_Link" element visibility on "Alerts_Jobs_Info_Pane" wizard Then click on "Job_Detail_PopUp_Link" element on "Alerts_Jobs_Info_Pane" wizard - # Add data to the mock to check the following elements Then verify if "Modal_Transition_Popup" popup dialog appears Then verify "Title" element visibility on "Modal_Transition_Popup" wizard - Then "Title" element on "Modal_Transition_Popup" should contains "erann-test" value + Then "Title" element on "Modal_Transition_Popup" should contains "test-func-oyn-handler" value Then verify "Data_Status" element visibility on "Modal_Transition_Popup" wizard Then verify "State_Icon" element visibility on "Modal_Transition_Popup" wizard - Then verify "State_Icon" element on "Modal_Transition_Popup" wizard should display hover tooltip "Jobs_Monitor_Tab_Info_Pane"."Error_State" + Then verify "State_Icon" element on "Modal_Transition_Popup" wizard should display hover tooltip "Jobs_Monitor_Tab_Info_Pane"."Error_State_With_Message" Then verify "Refresh_Button" element visibility on "Modal_Transition_Popup" wizard Then verify "Refresh_Button" element on "Modal_Transition_Popup" wizard should display hover tooltip "Common_Tooltips"."Refresh_Button" Then click on "Refresh_Button" element on "Modal_Transition_Popup" wizard @@ -332,13 +346,14 @@ Feature: Alerts Monitoring Page Then verify "Logs" tab is active in "Tab_Selector" on "Modal_Transition_Popup" wizard Then verify "Logs_Text_container" element visibility on "Modal_Transition_Popup" wizard Then verify "Logs_Refresh_Button" element visibility on "Modal_Transition_Popup" wizard - And verify "No_Data_Message" element visibility on "commonPagesHeader" wizard - Then "No_Data_Message" component on "commonPagesHeader" should contains "No_Data_Message"."No_Data" + Then click on "Logs_Refresh_Button" element on "Modal_Transition_Popup" wizard + And wait load page + Then verify "Logs_Text_container" element visibility on "Modal_Transition_Popup" wizard And select "Pods" tab in "Tab_Selector" on "Modal_Transition_Popup" wizard And wait load page Then verify "Pods" tab is active in "Tab_Selector" on "Modal_Transition_Popup" wizard And verify "No_Data_Message" element visibility on "commonPagesHeader" wizard - Then "No_Data_Message" component on "commonPagesHeader" should contains "No_Data_Message"."No_Pods_data" + Then "No_Data_Message" component on "commonPagesHeader" should contains "No_Data_Message"."No_Pods_data_Completion" @MLAM @smoke diff --git a/tests/features/common-tools/common-consts.js b/tests/features/common-tools/common-consts.js index d0b1c0809a..f81eca0ac9 100644 --- a/tests/features/common-tools/common-consts.js +++ b/tests/features/common-tools/common-consts.js @@ -182,6 +182,14 @@ export default { 'Timestamp:', 'Severity:' ], + Overview_General_Headers_Per_Project: [ + 'Endpoint ID:', + 'Application Name:', + 'Result Name:', + 'Type:', + 'Timestamp:', + 'Severity:' + ], Overview_Trigger_Criteria_Headers: ['Trigger criteria count:', 'Trigger criteria time period:'] }, Alerts_Application_Info_Pane: { @@ -192,6 +200,12 @@ export default { 'Timestamp:', 'Severity:' ], + Overview_General_Headers_Per_Project: [ + 'Application Name:', + 'Type:', + 'Timestamp:', + 'Severity:' + ], Overview_Trigger_Criteria_Headers: ['Trigger criteria count:', 'Trigger criteria time period:'] }, ML_Functions_Tab: { @@ -222,14 +236,14 @@ export default { 'Kind:', 'Code entry point:', 'Internal URL:', - 'Image:', + //'Image:', hidden due to ML-7988, ML-8014 'Application image:', 'Version tag:', 'Hash:', 'Internal port:', - 'Code origin:', + // 'Code origin:', hidden due to ML-7988, ML-8014 'Updated:', - 'Default handler:', + // 'Default handler:', hidden due to ML-7988, ML-8014 'Description:' ] }, @@ -589,6 +603,7 @@ export default { Jobs_Monitor_Tab_Info_Pane: { Pending_State: 'Pending', Error_State: 'Error', + Error_State_With_Message: 'Error. This function intentionally fails', Tab_List: ['Overview', 'Inputs', 'Artifacts', 'Results', 'Logs', 'Pods'], Overview_Headers: [ 'UID:', @@ -643,6 +658,7 @@ export default { Event_Type_Endpoint_Filter_Options: ['All', 'Data drift detected', 'Data drift suspected', 'Conc drift detected', 'Conc drift suspected', 'MM performance detected', 'MM performance suspected', 'System performance detected', 'System performance suspected', 'MM app anomaly detected', 'MM app anomaly suspected'], Event_Type_Job_Filter_Options: ['All', 'Job failed'], Event_Type_Application_Filter_Options: ['All', 'MM app failed'], + Endpoint_Mode_Filter_Options: ['All', 'Real-time', 'Batch'], Jobs_Status_Filter_Options: [ 'All', 'Aborted', @@ -779,7 +795,8 @@ export default { No_Documents_data: 'No data matches the filter: "Version tag: latest, Show best iteration only: true"', No_Files_data: 'No data matches the filter: "Version tag: latest, Labels: v3io_user=123, Show best iteration only: true"', No_Models_data: 'No data matches the filter: "Version tag: latest, Labels: MY-KEY, Show best iteration only: true"', - No_Pods_data: 'Pods not found, it is likely because Kubernetes removed these pods listing' + No_Pods_data: 'Pods not found, it is likely because Kubernetes removed these pods listing', + No_Pods_data_Completion: 'Pods not found, it is likely because Kubernetes removed these pods listing after their completion' }, Preview_Pop_Up: { Table_Header: ['Name', 'Path', 'Size', 'Updated'] diff --git a/tests/features/common/page-objects/interactive-popup.po.js b/tests/features/common/page-objects/interactive-popup.po.js index 888df3cb86..417d550bb6 100644 --- a/tests/features/common/page-objects/interactive-popup.po.js +++ b/tests/features/common/page-objects/interactive-popup.po.js @@ -818,8 +818,8 @@ export default { Content_Application_Log_Info: By.css('.item-info .table__item-logs:nth-of-type(1)'), Title_Function_Log_Info: By.css('.item-info > div > h3:nth-of-type(2)'), Content_Function_Log_Info: By.css('.item-info .table__item-logs:nth-of-type(2)'), - Logs_Text_container: By.css('.table__item .table__item-logs-content'), - Logs_Refresh_Button: By.css('.table__item .logs-refresh') + Logs_Text_container: By.css('#overlay_container .table__item .table__item-logs-content'), + Logs_Refresh_Button: By.css('#overlay_container .table__item .logs-refresh') }, modalWizardForm: { Title: By.css('.modal .modal__header-title'), @@ -1663,6 +1663,13 @@ export default { '.options-list [data-testid="select-option"]' ) ), + Mode_Filter_Dropdown: dropdownComponent( + generateDropdownGroup( + '#overlay_container [data-testid="me-mode-form-field-select"] [data-testid="select-header"]', + '.form-field__control', + '.options-list [data-testid="select-option"]' + ) + ), Entity_Type_Filter_Dropdown: dropdownComponent( generateDropdownGroup( '#overlay_container [data-testid="pop-up-dialog"] [data-testid="entity-type-form-field-select"]', diff --git a/tests/features/jobsAndWorkflows.feature b/tests/features/jobsAndWorkflows.feature index 08cdfb15ab..322ce07ea0 100644 --- a/tests/features/jobsAndWorkflows.feature +++ b/tests/features/jobsAndWorkflows.feature @@ -753,7 +753,7 @@ Feature: Jobs and workflows Then verify "Title" element visibility on "Modal_Transition_Popup" wizard Then "Title" element on "Modal_Transition_Popup" should contains "aggregate" value Then verify "Data_Status" element visibility on "Modal_Transition_Popup" wizard - Then "Data_Status" element on "Modal_Transition_Popup" should contains "Nov 25, 2021, 05:20:00 PM" value + Then "Data_Status" element on "Modal_Transition_Popup" should contains "Nov 25, 2021, 03:20:00 PM" value Then verify "State_Icon" element visibility on "Modal_Transition_Popup" wizard Then verify "State_Icon" element on "Modal_Transition_Popup" wizard should display hover tooltip "ML_Function_Info_Pane"."Initialized_State" Then verify "Refresh_Button" element visibility on "Modal_Transition_Popup" wizard @@ -1010,22 +1010,7 @@ Feature: Jobs and workflows Then verify if "Confirm_Popup" popup dialog appears Then verify "Cross_Cancel_Button" element visibility on "Confirm_Popup" wizard When click on "Cross_Cancel_Button" element on "Confirm_Popup" wizard - Then click on "Terminate_Button" element on "Workflows_Monitor_Tab" wizard And wait load page - Then verify if "Confirm_Popup" popup dialog appears - Then verify "Delete_Button" element visibility on "Confirm_Popup" wizard - When click on "Delete_Button" element on "Confirm_Popup" wizard - And wait load page - Then verify if "Notification_Popup" popup dialog appears - Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard - Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Trigger_Termination_Message" - Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard - Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard - Then verify "Terminate_Button" element on "Workflows_Monitor_Tab" wizard is disabled - Then verify "Workflow_List_View_Table" element visibility on "Workflows_Monitor_Tab" wizard - Then verify "Terminate_Button" element visibility on "Workflows_Monitor_Tab" wizard - Then "Terminate_Button" element on "Workflows_Monitor_Tab" should contains "Terminate" value - Then verify "Terminate_Button" element on "Workflows_Monitor_Tab" wizard is enabled When click on cell with row index 1 in "name" column in "Workflow_List_View_Table" table on "Workflows_Monitor_Tab" wizard And wait load page Then verify "Header" element visibility on "Jobs_Monitor_Tab_Info_Pane" wizard @@ -1046,6 +1031,8 @@ Feature: Jobs and workflows Then verify "Delete_Button" element visibility on "Confirm_Popup" wizard Then "Delete_Button" element on "Confirm_Popup" should contains "Terminate" value When click on "Cancel_Button" element on "Confirm_Popup" wizard + And wait load page + Then verify "Terminate_Button" element on "Workflows_Monitor_Tab" wizard is enabled Then click on "Terminate_Button" element on "Workflows_Monitor_Tab" wizard And wait load page Then verify if "Confirm_Popup" popup dialog appears @@ -1057,6 +1044,14 @@ Feature: Jobs and workflows Then "Notification_Pop_Up" component on "Notification_Popup" should contains "Jobs_And_Workflows"."Workflows_Trigger_Termination_Message" Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard + And wait load page + Then verify "Terminate_Button" element on "Workflows_Monitor_Tab" wizard is disabled + Then click on "Cross_Close_Button" element on "Jobs_Monitor_Tab_Info_Pane" wizard + And wait load page + Then verify "Workflow_List_View_Table" element visibility on "Workflows_Monitor_Tab" wizard + Then verify "Terminate_Button" element visibility on "Workflows_Monitor_Tab" wizard + Then "Terminate_Button" element on "Workflows_Monitor_Tab" should contains "Terminate" value + Then verify "Terminate_Button" element on "Workflows_Monitor_Tab" wizard is disabled @MLJW @passive diff --git a/tests/features/models.feature b/tests/features/models.feature index b431dc3374..5aff9bd407 100644 --- a/tests/features/models.feature +++ b/tests/features/models.feature @@ -74,6 +74,10 @@ Feature: Models Page Then verify "Table_FilterBy_Button" element on "Model_Endpoints" wizard should display hover tooltip "Common_Tooltips"."FilterBy_Button" Then click on "Table_FilterBy_Button" element on "Model_Endpoints" wizard Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard + Then verify "Mode_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Mode_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" + Then verify "Mode_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Endpoint_Mode_Filter_Options" + And wait load page Then verify "Apply_Button" element visibility on "FilterBy_Popup" wizard Then verify "Apply_Button" element on "FilterBy_Popup" wizard is disabled Then verify "Clear_Button" element visibility on "FilterBy_Popup" wizard diff --git a/tests/features/monitoringApp.feature b/tests/features/monitoringApp.feature index e7be622978..5f0888de04 100644 --- a/tests/features/monitoringApp.feature +++ b/tests/features/monitoringApp.feature @@ -457,3 +457,100 @@ Feature: Monitoring app Page Then type value "qwe" to "Search_By_Endpoint_Filter_Input" field on "Application_Metrics" wizard And wait load page Then "Search_Endpoints_Counter" element on "Application_Metrics" should contains "0 endpoints found" value + + @MLMA + @smoke + Scenario: MLMA013 - Check redirection to Model Endpoints filtering by mode list + Given open url + And wait load page + And click on row root with value "default" in "name" column in "Projects_Table" table on "Projects" wizard + And wait load page + When turn on demo mode with query params "false" + And wait load page + And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard + And click on cell with value "Monitoring app" in "link" column in "General_Info_Quick_Links" table on "commonPagesHeader" wizard + And hover "MLRun_Logo" component on "commonPagesHeader" wizard + And wait load page + Then verify breadcrumbs "tab" label should be equal "Monitoring app" value + And wait load page + Then verify "All_Applications_Title" element visibility on "Monitoring_App" wizard + Then "All_Applications_Title" element on "Monitoring_App" should contains "All Applications" value + Then verify "Endpoints_Stats_Title" element visibility on "Monitoring_App" wizard + Then "Endpoints_Stats_Title" element on "Monitoring_App" should contains "Endpoints" value + Then verify "Endpoints_Batch_SubTitle" element visibility on "Monitoring_App" wizard + Then "Endpoints_Batch_SubTitle" element on "Monitoring_App" should contains "Batch" value + Then verify "Endpoints_Batch_Counter" element visibility on "Monitoring_App" wizard + Then verify "Endpoints_RealTime_SubTitle" element visibility on "Monitoring_App" wizard + Then "Endpoints_RealTime_SubTitle" element on "Monitoring_App" should contains "Real-time" value + Then verify "Endpoints_RealTime_Counter" element visibility on "Monitoring_App" wizard + And wait load page + Then click on "Endpoints_Batch_Counter" element on "Monitoring_App" wizard + And wait load page + Then verify redirection to "projects/default/models/model-endpoints?me-mode=batch" + Then verify breadcrumbs "tab" label should be equal "Models" value + Then verify "Models_Tab_Selector" on "Models" wizard should contains "Models"."Tab_List" + Then verify "Model Endpoints" tab is active in "Models_Tab_Selector" on "Models" wizard + Then verify "Table_FilterBy_Button" element visibility on "Model_Endpoints" wizard + Then verify "Table_FilterBy_Button" element on "Model_Endpoints" wizard should display hover tooltip "Common_Tooltips"."FilterBy_Button_1" + Then click on "Table_FilterBy_Button" element on "Model_Endpoints" wizard + Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard + Then verify "Mode_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Mode_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "Batch" + Then verify "Mode_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Endpoint_Mode_Filter_Options" + And wait load page + Then verify "Apply_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Apply_Button" element on "FilterBy_Popup" wizard is disabled + Then verify "Clear_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Clear_Button" element on "FilterBy_Popup" wizard is enabled + Then navigate back + And wait load page + Then verify redirection to "projects/default/monitoring-app" + Then verify breadcrumbs "tab" label should be equal "Monitoring app" value + Then verify "Endpoints_Stats_Title" element visibility on "Monitoring_App" wizard + Then verify "Endpoints_RealTime_SubTitle" element visibility on "Monitoring_App" wizard + Then "Endpoints_RealTime_SubTitle" element on "Monitoring_App" should contains "Real-time" value + Then verify "Endpoints_RealTime_Counter" element visibility on "Monitoring_App" wizard + And wait load page + Then click on "Endpoints_RealTime_Counter" element on "Monitoring_App" wizard + And wait load page + Then verify redirection to "projects/default/models/model-endpoints?me-mode=realTime" + Then verify breadcrumbs "tab" label should be equal "Models" value + Then verify "Models_Tab_Selector" on "Models" wizard should contains "Models"."Tab_List" + Then verify "Model Endpoints" tab is active in "Models_Tab_Selector" on "Models" wizard + Then verify "Table_FilterBy_Button" element visibility on "Model_Endpoints" wizard + Then verify "Table_FilterBy_Button" element on "Model_Endpoints" wizard should display hover tooltip "Common_Tooltips"."FilterBy_Button_1" + Then click on "Table_FilterBy_Button" element on "Model_Endpoints" wizard + Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard + Then verify "Mode_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Mode_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "Real-time" + Then verify "Mode_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Endpoint_Mode_Filter_Options" + And wait load page + Then verify "Apply_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Apply_Button" element on "FilterBy_Popup" wizard is disabled + Then verify "Clear_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Clear_Button" element on "FilterBy_Popup" wizard is enabled + Then navigate back + And wait load page + Then verify redirection to "projects/default/monitoring-app" + Then verify breadcrumbs "tab" label should be equal "Monitoring app" value + And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard + And click on cell with value "Models" in "link" column in "General_Info_Quick_Links" table on "commonPagesHeader" wizard + And hover "MLRun_Logo" component on "commonPagesHeader" wizard + And wait load page + Then verify breadcrumbs "tab" label should be equal "Models" value + And wait load page + And select "Model Endpoints" tab in "Models_Tab_Selector" on "Models" wizard + And wait load page + Then verify "Model Endpoints" tab is active in "Models_Tab_Selector" on "Models" wizard + Then verify "Table_FilterBy_Button" element visibility on "Model_Endpoints" wizard + Then verify "Table_FilterBy_Button" element on "Model_Endpoints" wizard should display hover tooltip "Common_Tooltips"."FilterBy_Button" + Then click on "Table_FilterBy_Button" element on "Model_Endpoints" wizard + Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard + Then verify "Mode_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Mode_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" + Then verify "Mode_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Endpoint_Mode_Filter_Options" + And wait load page + Then verify "Apply_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Apply_Button" element on "FilterBy_Popup" wizard is disabled + Then verify "Clear_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Clear_Button" element on "FilterBy_Popup" wizard is disabled diff --git a/tests/features/projectMonitoring.feature b/tests/features/projectMonitoring.feature index 63bbf4da9d..331739397d 100644 --- a/tests/features/projectMonitoring.feature +++ b/tests/features/projectMonitoring.feature @@ -15,7 +15,7 @@ Feature: Project Monitoring Page Then verify "Project_Name" element visibility on "Project" wizard Then "Project_Name" element on "Project" should contains "default" value Then verify "Created_Details" element visibility on "Project" wizard - Then "Created_Details" element on "Project" should contains "Created: 08/29/2021, 17:21:14 PM" value + Then "Created_Details" element on "Project" should contains "Created: 08/29/2021, 15:21:14 PM" value Then verify "Owner_Details" element visibility on "Project" wizard Then "Owner_Details" element on "Project" should contains "Owner: igz_nobody" value Then verify "Info_Baner_Icon" element visibility on "Project" wizard @@ -114,7 +114,7 @@ Feature: Project Monitoring Page Then verify "Project_Name" element visibility on "Project" wizard Then "Project_Name" element on "Project" should contains "default" value Then verify "Created_Details" element visibility on "Project" wizard - Then "Created_Details" element on "Project" should contains "Created: 08/29/2021, 17:21:14 PM" value + Then "Created_Details" element on "Project" should contains "Created: 08/29/2021, 15:21:14 PM" value Then verify "Owner_Details" element visibility on "Project" wizard Then "Owner_Details" element on "Project" should contains "Owner: igz_nobody" value Then verify "Info_Baner_Icon" element visibility on "Project" wizard diff --git a/tests/features/projectsPage.feature b/tests/features/projectsPage.feature index c91c72e097..046c4ef928 100644 --- a/tests/features/projectsPage.feature +++ b/tests/features/projectsPage.feature @@ -403,8 +403,8 @@ Feature: Projects Page Then verify "Counter_Running_Status_Number" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then verify "Counter_Running_Status_Subtitle" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then "Counter_Running_Status_Subtitle" element in "Monitoring_Jobs_Box" on "Projects" should contains "In process" value - Then verify "Counter_In_Process_Status_Icon" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard - Then verify "Counter_In_Process_Status_Icon" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."In_Process_Jobs" + Then verify "Counter_Running_Status_Icon" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard + Then verify "Counter_Running_Status_Icon" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."In_Process_Jobs" Then verify "Counter_Failed_Status_Number" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then verify "Counter_Failed_Status_Subtitle" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then "Counter_Failed_Status_Subtitle" element in "Monitoring_Jobs_Box" on "Projects" should contains "Failed" value @@ -414,7 +414,7 @@ Feature: Projects Page Then verify "Counter_Completed_Status_Subtitle" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard Then "Counter_Completed_Status_Subtitle" element in "Monitoring_Jobs_Box" on "Projects" should contains "Succeeded" value Then verify "Counter_Completed_Status_Icon" element visibility in "Monitoring_Jobs_Box" on "Projects" wizard - Then verify "Counter_In_Process_Status_Icon" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."In_Process_Jobs" + Then verify "Counter_Running_Status_Icon" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."In_Process_Jobs" Then verify "Counter_Completed_Status_Icon" element in "Monitoring_Jobs_Box" on "Projects" wizard should display hover tooltip "Common_Tooltips"."Succeeded" Then "Counter_Completed_Status_Number" element in "Monitoring_Jobs_Box" on "Projects" should contains "1" value When click on "Counter_Running_Status_Number" element in "Monitoring_Jobs_Box" on "Projects" wizard diff --git a/tests/mockServer/data/alerts.json b/tests/mockServer/data/alerts.json index c59b57c0c8..370caa6124 100644 --- a/tests/mockServer/data/alerts.json +++ b/tests/mockServer/data/alerts.json @@ -55,10 +55,10 @@ { "id": 10, "name": "mm-app-failure", - "project": "kate-project-mm", + "project": "default", "severity": "medium", "activation_time": "2024-12-17T09:52:19.580000+00:00", - "entity_id": "kate-project-mm_myApp", + "entity_id": "default-mm_myApp", "entity_kind": "model-monitoring-application", "criteria": { "count": 1, @@ -317,7 +317,7 @@ "name": "alert-name-uqbxb-proj-default", "project": "default", "severity": "high", - "activation_time": "2025-05-31T15:50:55.190000+00:00", + "activation_time": "2025-09-22T15:50:55.190000+00:00", "entity_id": "a7c95783e6a726a1a233e581ea898ba33fa7e342.rujmfi.result.data_drift_test", "entity_kind": "model-endpoint-result", "criteria": { @@ -343,7 +343,7 @@ "name": "alert-name-jukmn-proj-default", "project": "default", "severity": "high", - "activation_time": "2025-05-31T15:50:54.207000+00:00", + "activation_time": "2025-09-22T15:50:54.207000+00:00", "entity_id": "a7c95783e6a726a1a233e581ea898ba33fa7e342.hskoyl.result.data_drift_test", "entity_kind": "model-endpoint-result", "criteria": { @@ -369,7 +369,7 @@ "name": "alert-name-uqbxb-proj-default", "project": "default", "severity": "high", - "activation_time": "2025-05-31T15:48:57.907000+00:00", + "activation_time": "2025-09-22T15:48:57.907000+00:00", "entity_id": "a7c95783e6a726a1a233e581ea898ba33fa7e342.rujmfi.result.data_drift_test", "entity_kind": "model-endpoint-result", "criteria": { @@ -395,7 +395,7 @@ "name": "alert-name-jukmn-proj-default", "project": "default", "severity": "high", - "activation_time": "2025-05-31T15:48:56.440000+00:00", + "activation_time": "2025-09-22T15:48:56.440000+00:00", "entity_id": "a7c95783e6a726a1a233e581ea898ba33fa7e342.hskoyl.result.data_drift_test", "entity_kind": "model-endpoint-result", "criteria": { @@ -415,6 +415,40 @@ } ], "reset_time": "2025-03-05T15:48:56.440000+00:00" + }, + { + "id": 3395, + "name": "alert-name-obryv-default", + "project": "default", + "severity": "low", + "activation_time": "2025-09-04T12:46:17.816000+00:00", + "entity_id": "test-func-oyn-handler.98418b756c4b4307be9a3e7c39e66f21", + "entity_kind": "job", + "criteria": { + "count": 1, + "period": null + }, + "event_kind": "failed", + "number_of_events": 1, + "notifications": [ + { + "kind": "git", + "err": "All git notifications failed. Errors: Failed commenting on PR: {\r\n \"message\": \"Not Found\",\r\n \"documentation_url\": \"https://docs.github.com/rest\",\r\n \"status\": \"404\"\r\n}", + "summary": { + "failed": 1, + "succeeded": 0 + } + }, + { + "kind": "webhook", + "err": "All webhook notifications failed. Errors: 404, message='Not Found', url='https://webhook.site/57696af5-3edc-447f-a714-628275f2ed89'", + "summary": { + "failed": 1, + "succeeded": 0 + } + } + ], + "reset_time": "2025-09-04T12:46:17.816000+00:00" } ], "pagination": { diff --git a/tests/mockServer/data/funcs.json b/tests/mockServer/data/funcs.json index 1763514d87..39f903838e 100644 --- a/tests/mockServer/data/funcs.json +++ b/tests/mockServer/data/funcs.json @@ -30309,6 +30309,98 @@ "updated": "2024-10-08T14:06:44.563424+00:00" }, "status": {} - } + }, + { + "metadata": { + "hash": "93124a9c66fcefbe27b24109a729691f8dbea5c0", + "credentials": { + "access_key": "$ref:mlrun-auth-secrets.b262111796186bb2718523bd3377fc4871b1e6c702992140099210de" + }, + "updated": "2025-09-04T12:45:44.659000+00:00", + "project": "default", + "tag": "latest", + "name": "test-func-oyn", + "uid": "93124a9c66fcefbe27b24109a729691f8dbea5c0" + }, + "verbose": false, + "spec": { + "build": { + "code_origin": "https://github.com/mlrun/test-notebooks-ui#77469ce3b66b43562f6dfff0be3f620fd1f231bd:fnxot.py", + "origin_filename": "fnxot.py", + "functionSourceCode": "ZGVmIGhhbmRsZXIoKToKICAgIHJhaXNlIEV4Y2VwdGlvbigiVGhpcyBmdW5jdGlvbiBpbnRlbnRpb25hbGx5IGZhaWxzIikKICAgICAgICAgICAgCg==" + }, + "state_thresholds": { + "pending_scheduled": "1h", + "pending_not_scheduled": "-1", + "image_pull_backoff": "1h", + "executing": "24h" + }, + "default_handler": "handler", + "entry_points": { + "handler": { + "has_kwargs": false, + "has_varargs": false, + "doc": "", + "lineno": 1, + "name": "handler" + } + }, + "image": "mlrun/mlrun", + "preemption_mode": "prevent", + "description": "", + "command": "", + "disable_auto_mount": true, + "priority_class_name": "igz-workload-medium", + "tolerations": null, + "env": [ + { + "name": "V3IO_API", + "value": "v3io-webapi.default-tenant.svc:8081" + }, + { + "name": "V3IO_USERNAME", + "value": "normal-user" + }, + { + "name": "V3IO_ACCESS_KEY", + "valueFrom": { + "secretKeyRef": { + "key": "accessKey", + "name": "mlrun-auth-secrets.9a60a83c83d08d712a722becb0d2c7bc308be38d59c4a904c6d89696" + } + } + }, + { + "name": "V3IO_FRAMESD", + "value": "framesd:8081" + }, + { + "name": "MLRUN_AUTH_SESSION", + "valueFrom": { + "secretKeyRef": { + "key": "accessKey", + "name": "mlrun-auth-secrets.b262111796186bb2718523bd3377fc4871b1e6c702992140099210de" + } + } + } + ], + "affinity": null, + "node_selector": {}, + "resources": { + "requests": { + "memory": "1Mi", + "cpu": "25m" + }, + "limits": { + "memory": "20Gi", + "cpu": "2" + } + } + }, + "status": { + "state": null + }, + "kind": "job" + } ] } diff --git a/tests/mockServer/data/logs.json b/tests/mockServer/data/logs.json index 90dd701a6e..59e688a76a 100644 --- a/tests/mockServer/data/logs.json +++ b/tests/mockServer/data/logs.json @@ -2074,5 +2074,24 @@ { "uid": "c236200fde53460784065bdf65e4ede8", "log": "Traceback (most recent call last):\n File \"/usr/local/bin/mlrun\", line 8, in \n sys.exit(main())\n File \"/usr/local/lib/python3.7/site-packages/click/core.py\", line 829, in __call__\n return self.main(*args, **kwargs)\n File \"/usr/local/lib/python3.7/site-packages/click/core.py\", line 782, in main\n rv = self.invoke(ctx)\n File \"/usr/local/lib/python3.7/site-packages/click/core.py\", line 1259, in invoke\n return _process_result(sub_ctx.command.invoke(sub_ctx))\n File \"/usr/local/lib/python3.7/site-packages/click/core.py\", line 1066, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File \"/usr/local/lib/python3.7/site-packages/click/core.py\", line 610, in invoke\n return callback(*args, **kwargs)\n File \"/usr/local/lib/python3.7/site-packages/mlrun/__main__.py\", line 333, in run\n resp = fn.run(runobj, watch=watch, schedule=schedule, local=local)\n File \"/usr/local/lib/python3.7/site-packages/mlrun/runtimes/base.py\", line 483, in run\n resp = self._run(runspec, execution)\n File \"/usr/local/lib/python3.7/site-packages/mlrun/runtimes/local.py\", line 232, in _run\n mod, fn = self._get_handler(handler)\n File \"/usr/local/lib/python3.7/site-packages/mlrun/runtimes/local.py\", line 185, in _get_handler\n return load_module(self.spec.command, handler)\n File \"/usr/local/lib/python3.7/site-packages/mlrun/runtimes/local.py\", line 308, in load_module\n spec.loader.exec_module(mod)\n File \"\", line 728, in exec_module\n File \"\", line 219, in _call_with_frames_removed\n File \"main.py\", line 4, in \n import pyhive\nModuleNotFoundError: No module named 'pyhive'\n" + }, + { + "uid": "98418b756c4b4307be9a3e7c39e66f21", + "log": [ + "> 2025-09-04 12:45:48,842 [error] Execution error, Traceback (most recent call last):", + " File \"/opt/conda/lib/python3.9/site-packages/mlrun/runtimes/local.py\", line 501, in exec_from_params", + " val = mlrun.handler(", + " File \"/opt/conda/lib/python3.9/site-packages/mlrun/package/__init__.py\", line 137, in wrapper", + " func_outputs = func(*args, **kwargs)", + " File \"fnxot.py\", line 2, in handler", + " raise Exception(\"This function intentionally fails\")", + "Exception: This function intentionally fails", + "> 2025-09-04 12:45:48,886 [error] Exec error - This function intentionally fails", + "This function intentionally fails", + "> 2025-09-04 12:45:48,933 [info] To track results use the CLI: {\"info_cmd\":\"mlrun get run 98418b756c4b4307be9a3e7c39e66f21 -p mm-alerts-proj\",\"logs_cmd\":\"mlrun logs 98418b756c4b4307be9a3e7c39e66f21 -p mm-alerts-proj\"}", + "> 2025-09-04 12:45:48,933 [info] Or click for UI: {\"ui_url\":\"https://dashboard.default-tenant.app.vmdev82.lab.iguazeng.com/mlprojects/mm-alerts-proj/jobs/monitor-jobs/test-func-oyn-handler/98418b756c4b4307be9a3e7c39e66f21/overview\"}", + "> 2025-09-04 12:45:48,934 [info] Run execution finished: {\"name\":\"test-func-oyn-handler\",\"status\":\"error\"}", + "Runtime error: This function intentionally fails" + ] } ] diff --git a/tests/mockServer/data/run.json b/tests/mockServer/data/run.json index d4f2b453da..c20282b9e3 100644 --- a/tests/mockServer/data/run.json +++ b/tests/mockServer/data/run.json @@ -71547,6 +71547,58 @@ "status_text": "aborted", "retry_count": 0 } + }, + { + "kind": "run", + "metadata": { + "name": "test-func-oyn-handler", + "uid": "98418b756c4b4307be9a3e7c39e66f21", + "iteration": 0, + "project": "default", + "labels": { + "v3io_user": "normal-user", + "kind": "job", + "owner": "normal-user", + "mlrun/client_version": "1.10.0-rc23", + "mlrun/client_python_version": "3.9.18", + "host": "test-func-oyn-handler-h9xjm" + }, + "annotations": {} + }, + "spec": { + "function": "default/test-func-oyn@93124a9c66fcefbe27b24109a729691f8dbea5c0", + "log_level": "info", + "parameters": {}, + "handler": "handler", + "outputs": [], + "output_path": "v3io:///projects/mm-alerts-proj/artifacts", + "inputs": {}, + "notifications": [], + "state_thresholds": { + "pending_scheduled": "1h", + "pending_not_scheduled": "-1", + "image_pull_backoff": "1h", + "executing": "24h" + }, + "node_selector": {}, + "tolerations": {}, + "affinity": {}, + "retry": {}, + "hyperparams": {}, + "hyper_param_options": {}, + "data_stores": [] + }, + "status": { + "results": {}, + "start_time": "2025-09-04T12:45:48.586000+00:00", + "last_update": "2025-09-04T12:45:48.925000+00:00", + "retry_count": null, + "retries": [], + "state": "error", + "artifact_uris": {}, + "error": "This function intentionally fails", + "end_time": "2025-09-04T12:45:48.870872+00:00" + } } ] -} \ No newline at end of file +} diff --git a/tests/mockServer/data/runs.json b/tests/mockServer/data/runs.json index 2f89e038f7..c88fcb93b7 100644 --- a/tests/mockServer/data/runs.json +++ b/tests/mockServer/data/runs.json @@ -71462,6 +71462,58 @@ "status_text": "aborted", "retry_count": 2 } + }, + { + "kind": "run", + "metadata": { + "name": "test-func-oyn-handler", + "uid": "98418b756c4b4307be9a3e7c39e66f21", + "iteration": 0, + "project": "default", + "labels": { + "v3io_user": "normal-user", + "kind": "job", + "owner": "normal-user", + "mlrun/client_version": "1.10.0-rc23", + "mlrun/client_python_version": "3.9.18", + "host": "test-func-oyn-handler-h9xjm" + }, + "annotations": {} + }, + "spec": { + "function": "default/test-func-oyn@93124a9c66fcefbe27b24109a729691f8dbea5c0", + "log_level": "info", + "parameters": {}, + "handler": "handler", + "outputs": [], + "output_path": "v3io:///projects/mm-alerts-proj/artifacts", + "inputs": {}, + "notifications": [], + "state_thresholds": { + "pending_scheduled": "1h", + "pending_not_scheduled": "-1", + "image_pull_backoff": "1h", + "executing": "24h" + }, + "node_selector": {}, + "tolerations": {}, + "affinity": {}, + "retry": {}, + "hyperparams": {}, + "hyper_param_options": {}, + "data_stores": [] + }, + "status": { + "results": {}, + "start_time": "2025-09-04T12:45:48.586000+00:00", + "last_update": "2025-09-04T12:45:48.925000+00:00", + "retry_count": null, + "retries": [], + "state": "error", + "artifact_uris": {}, + "error": "This function intentionally fails", + "end_time": "2025-09-04T12:45:48.870872+00:00" + } } ] -} \ No newline at end of file +} diff --git a/tests/mockServer/mock.js b/tests/mockServer/mock.js index 26f4b6b567..0b3bc7c7cb 100644 --- a/tests/mockServer/mock.js +++ b/tests/mockServer/mock.js @@ -2956,7 +2956,7 @@ app.get( getMonitoringApplicationData ) app.get( - `${mlrunAPIIngress}/projects/:project/model-endpoints/drift-over-time`, + `${mlrunAPIIngress}/projects/:project/model-monitoring/drift-over-time`, getMonitoringApplicationDrift )