harbor/tests/testcases/Group10-Vulnerability/10-08-User-can-not-pull-image-exceed-vulnerability-severity-setting.md
sigsbee 5caf31c57d
add vulnerability case (#3206)
* Add vulnerability manual case
2017-12-14 10:53:42 +08:00

766 B

10-08 user can not pull image exceed vulnerability severity

Purpose:

To verify user can not pull image exceed vulnerability severity setting.

Reference:

User guide.

Environment:

  • This test requires that one Harbor instance is running and availiable.
  • Harbor is installed with clair enable.
  • A Linux host with Docker client installed.
  • Clair has been updated to the latest.

Test Step:

  1. Login harbor as admin.
  2. Go to configuration.
  3. Set vulnerability severity limit to medium and save configuration.
  4. Push some images with vulnerability and scan them.
  5. On a docker client, user pull an image with high vulneability severity.

Expect outcome:

  • Step5 pull request should be refused.

Possible problem:

None