harbor/tests/testcases/Group9-Content-trust/9-04-DB-user-pull-unsigned-images.md

31 lines
759 B
Markdown
Raw Normal View History

2017-03-16 09:06:38 +01:00
Test 9-04 User pull unsigned images(DB mode)
=======
# Purpose:
2017-04-11 06:36:35 +02:00
To verify whether user can pull unsigned images with content trust enabled.
2017-03-16 09:06:38 +01:00
# References:
User guide
# Environment:
2017-04-11 06:36:35 +02:00
* This test requires one Harbor instance is running and available.
* Harbor is set to authenticate against a local database.The user data is stored in a local database.
* A Linux host with Docker CLI(Docker client) installed.
2017-03-16 09:06:38 +01:00
# Test Steps:
2017-04-11 06:36:35 +02:00
1. Login UI and create a project.
2. On Docker client, unset DOCKER_CONTENT_TRUST and login Harbor.
3. Push an image to the project created in step1.
4. Reset DOCKER_CONTENT_TRUST to 1.
5. Pull the unsigned image.
2017-03-16 09:06:38 +01:00
# Expected Outcome:
2017-04-11 06:36:35 +02:00
* User cannot pull unsigned images with content trust enabled.
2017-03-16 09:06:38 +01:00
# Possible Problems:
None