Merge pull request #11380 from jwangyangls/nightly-case-trivy-1

[Nightly] add case about trivy
This commit is contained in:
danfengliu 2020-04-01 22:45:40 +08:00 committed by GitHub
commit f11e713ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 14 deletions

View File

@ -5,7 +5,7 @@
.rightPos{
position: absolute;
z-index: 100;
right: 35px;
right: 0;
margin-top: 1.25rem;
}

View File

@ -106,7 +106,7 @@ export const USERSTATICPERMISSION = {
}
},
"REPOSITORY_ARTIFACT_LABEL": {
'KEY': 'repository-artifact-label',
'KEY': 'artifact-label',
'VALUE': {
"CREATE": "create",
"DELETE": "delete",

View File

@ -59,18 +59,17 @@ Test Case - Scan As An Unprivileged User
Select Object latest
Scan Is Disabled
Close Browser
# # chose a emptyVul repo
# Test Case - Scan Image With Empty Vul
# Init Chrome Driver
# Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library vmware/photon:1.0
# Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
# Go Into Project library
# Go Into Repo vmware/photon
# # Go Into Repo busybox
# Scan Repo 1.0 Succeed
# Move To Summary Chart
# Wait Until Page Contains No vulnerability
# Close Browser
# chose a emptyVul repo
Test Case - Scan Image With Empty Vul
Init Chrome Driver
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library photon:2.0_scan
Sign In Harbor ${HARBOR_URL} ${HARBOR_ADMIN} ${HARBOR_PASSWORD}
Go Into Project library
Go Into Repo library/photon
Scan Repo 2.0 Succeed
Move To Summary Chart
Wait Until Page Contains No vulnerability
Close Browser
Test Case - Manual Scan All
Init Chrome Driver
Push Image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library redis