Skip to content

Commit

Permalink
Change test case for audit log ext
Browse files Browse the repository at this point in the history
Signed-off-by: stonezdj <stone.zhang@broadcom.com>
  • Loading branch information
stonezdj committed Feb 27, 2025
1 parent 94430c9 commit ffb7a05
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/resources/Harbor-Pages/Log_Rotation.robot
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Click Exclude Operation
Verify Last completed Time
${latest_purge_job_update_time}= Get Text ${latest_purge_job_update_time_xpath}
${purge_job_last_completed_time}= Get Text ${purge_job_last_completed_time_xpath}
Should Be Equal ${latest_purge_job_update_time} ${purge_job_last_completed_time}
Should Be Equal ${latest_purge_job_update_time}(Dry Run) ${purge_job_last_completed_time}

Set Log Rotation Schedule
[Arguments] ${keep_records} ${keep_records_unit} ${type} ${cron}=${null} ${exclude_operations}=@{EMPTY}
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/Harbor-Pages/Logs_Elements.robot
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Documentation This resource provides any keywords related to the Harbor private
*** Variables ***
${logs_xpath} //clr-main-container//clr-vertical-nav//a[contains(.,'Logs')]
${logs_refresh_btn} //hbr-log//span[contains(@class,'refresh-btn')]
${logs_refresh_btn} //hbr-audit-log//span[contains(@class,'refresh-btn')]
2 changes: 1 addition & 1 deletion tests/robot-cases/Group1-Nightly/Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ Test Case - Audit Log And Purge
Logout Harbor
# Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
Switch To Logs
Verify Log ${user} project${d} project delete
Verify Log ${user} project${d} project delete 3
Switch To Log Rotation
Purge Now 1 Hours
Close Browser
Expand Down
2 changes: 1 addition & 1 deletion tests/robot-cases/Group1-Nightly/Routing.robot
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Test Case - Main Menu Routing
Init Chrome Driver
# Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
&{routing}= Create Dictionary harbor/projects=//projects//div//h2[contains(.,'Projects')]
... harbor/logs=//hbr-log//div//h2[contains(.,'Logs')]
... harbor/logs=//hbr-audit-log//div//h2[contains(.,'Logs')]
... harbor/users=//harbor-user//div//h2[contains(.,'Users')]
... harbor/robot-accounts=//system-robot-accounts//h2[contains(.,'Robot Accounts')]
... harbor/registries=//hbr-endpoint//h2[contains(.,'Registries')]
Expand Down

0 comments on commit ffb7a05

Please # to comment.