Retry Double Keywords When Error Retry Element Click //clr-main-container//clr-vertical-nav-group//span[contains(.,'Job Service Dashboard')] Retry Wait Until Page Contains Element ${job_service_stop_btn}
Retry Double Keywords When Error Retry Element Click //clr-datagrid//clr-dg-row[contains(.,'${job_type}')]//div[contains(@class,'clr-checkbox-wrapper')] Retry Checkbox Should Be Selected //clr-datagrid//clr-dg-row[contains(.,'${job_type}')]//input
Retry Wait Until Page Contains Resumed jobs successfully
Check Jobs Paused No @{job_types}
Check Jobs Paused
[Arguments] ${paused}=No @{job_types}
FOR ${job_type} IN @{job_types}
Retry Double Keywords When Error Retry Element Click ${job_service_refresh_btn} Retry Wait Element Visible //clr-datagrid//clr-dg-row[contains(.,'${job_type}')]//clr-dg-cell[4][contains(.,'${paused}')]
Select Jobs ${job_type}
Run Keyword If '${paused}' == 'No' Run Keywords
... Retry Wait Element Should Be Disabled ${job_service_resume_btn}
... AND Retry Wait Element ${job_service_pause_btn}
... ELSE Run Keywords
... Retry Wait Element Should Be Disabled ${job_service_pause_btn}
... AND Retry Wait Element ${job_service_resume_btn}
END
Check Jobs Pending Count
[Arguments] &{jobs_type_pending_count}
FOR ${job_type} IN @{jobs_type_pending_count.keys()}
Retry Wait Element Visible //clr-datagrid//clr-dg-row[contains(.,'${job_type}')]//clr-dg-cell[2][contains(.,'${jobs_type_pending_count['${job_type}']}')]
END
Check Pending Job Card
[Arguments] &{jobs_type_pending_count}
${total}= Set Variable ${jobs_type_pending_count['Total']}
Remove From Dictionary ${jobs_type_pending_count} Total
${total_pending_count}= Set Variable 0
${index}= Set Variable 1
FOR ${job_type} IN @{jobs_type_pending_count.keys()}
Run Keyword If '${total}' != '0' Retry Wait Until Page Contains Element //app-pending-job-card//div[contains(@class,'clr-row ng-star-inserted')][${index}]//div[1][contains(.,'${job_type}')]
Retry Wait Until Page Contains Element //app-pending-job-card//div[contains(@class,'clr-row ng-star-inserted')][${index}]//div[2][contains(.,'${jobs_type_pending_count['${job_type}']}')]
# Check that the retention policy schedule is Pause
Go Into Project ${project_name}
Switch To Tag Retention
Retry Wait Until Page Contains Element //span[text()='Schedule has been paused']
# Check that the preheat policy schedule is Pause
Switch To P2P Preheat
Retry Wait Until Page Contains Element //clr-dg-row[.//clr-dg-cell[text()='${p2p_policy_name}'] and .//clr-dg-cell[text()=' Scheduled(Paused) ']]
# Check that the replication policy schedule is Pause
Switch To Replication Manage
Retry Wait Until Page Contains Element //clr-dg-row[.//clr-dg-cell[text()='${replication_rule_name}'] and .//clr-dg-cell[text()=' Scheduled(Paused) ']]
# Check that the scan all schedule is Pause
Switch To Vulnerability Page
Retry Wait Until Page Contains Element //span[text()='Schedule to scan all has been paused']
# Check that the GC schedule is Pause
Switch To Garbage Collection
Retry Wait Until Page Contains Element //span[text()='Schedule to GC has been paused']
# Check that the log rotation schedule is Pause
Switch To Log Rotation
Retry Wait Until Page Contains Element //span[text()='Schedule to purge has been paused']
# Check that the retention policy schedule is not Pause
Go Into Project ${project_name}
Switch To Tag Retention
Retry Wait Until Page Not Contains Element //span[text()='Schedule has been paused']
# Check that the preheat policy schedule is not Pause
Switch To P2P Preheat
Retry Wait Until Page Not Contains Element //clr-dg-row[.//clr-dg-cell[text()='${p2p_policy_name}'] and .//clr-dg-cell[text()=' Scheduled(Paused) ']]
# Check that the replication policy schedule is not Pause
Switch To Replication Manage
Retry Wait Until Page Not Contains Element //clr-dg-row[.//clr-dg-cell[text()='${replication_rule_name}'] and .//clr-dg-cell[text()=' Scheduled(Paused) ']]
# Check that the scan all schedule is not Pause
Switch To Vulnerability Page
Retry Wait Until Page Not Contains Element //span[text()='Schedule to scan all has been paused']
# Check that the GC schedule is not Pause
Switch To Garbage Collection
Retry Wait Until Page Not Contains Element //span[text()='Schedule to GC has been paused']
# Check that the log rotation schedule is not Pause
Switch To Log Rotation
Retry Wait Until Page Not Contains Element //span[text()='Schedule to purge has been paused']