mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-19 23:28:20 +01:00
Merge pull request #9850 from jwangyangls/add-scanner-nightly-case
Modify scan now nightly case
This commit is contained in:
commit
87de8f1de0
@ -22,7 +22,7 @@
|
|||||||
<span>{{ 'SCANNER.TOTAL' | translate }}</span>
|
<span>{{ 'SCANNER.TOTAL' | translate }}</span>
|
||||||
<span class="margin-left-5">{{scanningMetrics?.total}}</span>
|
<span class="margin-left-5">{{scanningMetrics?.total}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="container" [style.width]="totalWidth+'px'">
|
<div class="container" id="scan-result-container" [style.width]="totalWidth+'px'">
|
||||||
<div class="error h-100" [style.width]="errorWidth()"></div>
|
<div class="error h-100" [style.width]="errorWidth()"></div>
|
||||||
<div class="finished h-100" [style.width]="finishedWidth()"></div>
|
<div class="finished h-100" [style.width]="finishedWidth()"></div>
|
||||||
<div class="in-progress h-100" [style.width]="runningWidth()"></div>
|
<div class="in-progress h-100" [style.width]="runningWidth()"></div>
|
||||||
|
@ -11,9 +11,10 @@ Disable Scan Schedule
|
|||||||
Retry Element Click ${vulnerability_dropdown_list_item_none}
|
Retry Element Click ${vulnerability_dropdown_list_item_none}
|
||||||
Retry Double Keywords When Error Retry Element Click ${vulnerability_save_btn} Retry Wait Until Page Not Contains Element ${vulnerability_save_btn}
|
Retry Double Keywords When Error Retry Element Click ${vulnerability_save_btn} Retry Wait Until Page Not Contains Element ${vulnerability_save_btn}
|
||||||
|
|
||||||
Trigger Scan Now
|
Trigger Scan Now And Wait Until The Result Appears
|
||||||
Retry Element Click xpath=${scan_now_button}
|
Retry Element Click xpath=${scan_now_button}
|
||||||
Sleep 10
|
Sleep 10
|
||||||
|
Retry Wait Until Page Contains Element ${scan_now_result}
|
||||||
|
|
||||||
Switch To Vulnerability Page
|
Switch To Vulnerability Page
|
||||||
Retry Element Click xpath=//clr-main-container//clr-vertical-nav//a[contains(.,'Interrogation')]
|
Retry Element Click xpath=//clr-main-container//clr-vertical-nav//a[contains(.,'Interrogation')]
|
||||||
|
@ -27,5 +27,6 @@ ${scanner_action_xpath} //span[@id='action-scanner']
|
|||||||
${delete_scanner_action_xpath} //span[@id='delete-scanner-action']
|
${delete_scanner_action_xpath} //span[@id='delete-scanner-action']
|
||||||
${immutable_msg_xpath} //span[contains(.,'registration Clair is not allowed to delete as it is immutable: scanner API: delete')]
|
${immutable_msg_xpath} //span[contains(.,'registration Clair is not allowed to delete as it is immutable: scanner API: delete')]
|
||||||
${delete_scanner_confirm_btn} xpath=//clr-modal//button[contains(.,'DELETE')]
|
${delete_scanner_confirm_btn} xpath=//clr-modal//button[contains(.,'DELETE')]
|
||||||
|
${scan_now_result} xpath=//div[@id="scan-result-container"]
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ Test Case - Manual Scan All
|
|||||||
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library redis
|
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library redis
|
||||||
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
||||||
Switch To Vulnerability Page
|
Switch To Vulnerability Page
|
||||||
Trigger Scan Now
|
Trigger Scan Now And Wait Until The Result Appears
|
||||||
Navigate To Projects
|
Navigate To Projects
|
||||||
Go Into Project library
|
Go Into Project library
|
||||||
Go Into Repo redis
|
Go Into Repo redis
|
||||||
|
@ -447,7 +447,7 @@ Test Case - Manual Scan All
|
|||||||
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library redis
|
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library redis
|
||||||
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
||||||
Switch To Vulnerability Page
|
Switch To Vulnerability Page
|
||||||
Trigger Scan Now
|
Trigger Scan Now And Wait Until The Result Appears
|
||||||
Navigate To Projects
|
Navigate To Projects
|
||||||
Go Into Project library
|
Go Into Project library
|
||||||
Go Into Repo redis
|
Go Into Repo redis
|
||||||
|
Loading…
Reference in New Issue
Block a user