diff --git a/src/portal/src/app/project/repository/artifact/artifact-additions/artifact-vulnerabilities/artifact-vulnerabilities.component.scss b/src/portal/src/app/project/repository/artifact/artifact-additions/artifact-vulnerabilities/artifact-vulnerabilities.component.scss index df55621b0..c8eed98b4 100644 --- a/src/portal/src/app/project/repository/artifact/artifact-additions/artifact-vulnerabilities/artifact-vulnerabilities.component.scss +++ b/src/portal/src/app/project/repository/artifact/artifact-additions/artifact-vulnerabilities/artifact-vulnerabilities.component.scss @@ -5,7 +5,7 @@ .rightPos{ position: absolute; z-index: 100; - right: 35px; + right: 0; margin-top: 1.25rem; } diff --git a/src/portal/src/lib/services/permission-static.ts b/src/portal/src/lib/services/permission-static.ts index 2174e0e67..b845551bb 100644 --- a/src/portal/src/lib/services/permission-static.ts +++ b/src/portal/src/lib/services/permission-static.ts @@ -106,7 +106,7 @@ export const USERSTATICPERMISSION = { } }, "REPOSITORY_ARTIFACT_LABEL": { - 'KEY': 'repository-artifact-label', + 'KEY': 'artifact-label', 'VALUE': { "CREATE": "create", "DELETE": "delete", diff --git a/tests/robot-cases/Group1-Nightly/Trivy.robot b/tests/robot-cases/Group1-Nightly/Trivy.robot index a24699f5e..ffa436608 100644 --- a/tests/robot-cases/Group1-Nightly/Trivy.robot +++ b/tests/robot-cases/Group1-Nightly/Trivy.robot @@ -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