mirror of
https://github.com/goharbor/harbor
synced 2025-05-06 15:42:37 +00:00
Merge pull request #16219 from YangJiao0817/update-deployment-security-case
Update Deployment security Notary xpath
This commit is contained in:
commit
07ae331830
@ -10,16 +10,16 @@ Goto Project Config
|
|||||||
Sleep 3
|
Sleep 3
|
||||||
Retry Element Click //project-detail//ul/li[contains(.,'Summary')]
|
Retry Element Click //project-detail//ul/li[contains(.,'Summary')]
|
||||||
Sleep 3
|
Sleep 3
|
||||||
Retry Double Keywords When Error Retry Element Click //project-detail//ul/li[contains(.,'Configuration')] Retry Wait Element //clr-checkbox-wrapper/label[contains(.,'Enable content trust')]
|
Retry Double Keywords When Error Retry Element Click //project-detail//ul/li[contains(.,'Configuration')] Retry Wait Element //clr-checkbox-wrapper/label[contains(.,'Prevent vulnerable images from running.')]
|
||||||
Sleep 2
|
Sleep 2
|
||||||
|
|
||||||
Click Project Public
|
Click Project Public
|
||||||
Mouse Down //hbr-project-policy-config//input[@name='public']
|
Mouse Down //hbr-project-policy-config//input[@name='public']
|
||||||
Mouse Up //hbr-project-policy-config//input[@name='public']
|
Mouse Up //hbr-project-policy-config//input[@name='public']
|
||||||
|
|
||||||
Click Content Trust
|
Click Notary Deployment security
|
||||||
Mouse Down //hbr-project-policy-config//input[@name='content-trust']
|
Mouse Down //input[@id='content-trust']
|
||||||
Mouse Up //hbr-project-policy-config//input[@name='content-trust']
|
Mouse Up //input[@id='content-trust']
|
||||||
|
|
||||||
Click Prevent Running
|
Click Prevent Running
|
||||||
Mouse Down //hbr-project-policy-config//input[@name='prevent-vulnerability-image']
|
Mouse Down //hbr-project-policy-config//input[@name='prevent-vulnerability-image']
|
||||||
@ -47,7 +47,7 @@ Project Should Be Public
|
|||||||
Retry Wait Until Page Contains Element //clr-dg-row[contains(.,'${projectName}')]//clr-dg-cell[contains(.,'Public')]
|
Retry Wait Until Page Contains Element //clr-dg-row[contains(.,'${projectName}')]//clr-dg-cell[contains(.,'Public')]
|
||||||
|
|
||||||
Content Trust Should Be Selected
|
Content Trust Should Be Selected
|
||||||
Checkbox Should Be Selected //hbr-project-policy-config//input[@name='content-trust']
|
Checkbox Should Be Selected //input[@id='content-trust']
|
||||||
|
|
||||||
Prevent Running Should Be Selected
|
Prevent Running Should Be Selected
|
||||||
Checkbox Should Be Selected //hbr-project-policy-config//input[@name='prevent-vulnerability-image']
|
Checkbox Should Be Selected //hbr-project-policy-config//input[@name='prevent-vulnerability-image']
|
||||||
|
@ -23,7 +23,7 @@ ${SSH_USER} root
|
|||||||
${HARBOR_ADMIN} admin
|
${HARBOR_ADMIN} admin
|
||||||
|
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
Test Case - Project Level Policy Content Trust
|
Test Case - Project Level Policy Notary Deployment security
|
||||||
Init Chrome Driver
|
Init Chrome Driver
|
||||||
${d}= Get Current Date result_format=%m%s
|
${d}= Get Current Date result_format=%m%s
|
||||||
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
|
||||||
@ -31,7 +31,7 @@ Test Case - Project Level Policy Content Trust
|
|||||||
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} hello-world:latest
|
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} project${d} hello-world:latest
|
||||||
Go Into Project project${d}
|
Go Into Project project${d}
|
||||||
Goto Project Config
|
Goto Project Config
|
||||||
Click Content Trust
|
Click Notary Deployment security
|
||||||
Save Project Config
|
Save Project Config
|
||||||
# Verify
|
# Verify
|
||||||
# Unsigned image can not be pulled
|
# Unsigned image can not be pulled
|
||||||
|
Loading…
x
Reference in New Issue
Block a user