mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 09:08:26 +01:00
update content trust test case
This commit is contained in:
parent
5646e84d44
commit
cdc49dd944
@ -16,12 +16,7 @@ User guide
|
|||||||
# Test Steps:
|
# Test Steps:
|
||||||
|
|
||||||
1. Login UI and create a project.
|
1. Login UI and create a project.
|
||||||
2. On Docker clinet,run
|
2. On Docker clinet, follow [Set up notary](../../../docs/use_notary.md)to set up notary and login Harbor.
|
||||||
```sh
|
|
||||||
export DOCKER_CONTENT_TRUST=1
|
|
||||||
export DOCKER_CONTENT_TRUST_SERVER=https://<harbor_ip>:4443
|
|
||||||
```
|
|
||||||
and login Harbor.
|
|
||||||
3. Push an image to the project created in step1.
|
3. Push an image to the project created in step1.
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ NOTE:
|
|||||||
In below test, project X should be replaced by an existing project.
|
In below test, project X should be replaced by an existing project.
|
||||||
|
|
||||||
1. Login UI.
|
1. Login UI.
|
||||||
2. On Docker client, set environment DOCKER_CONTENT_TRUST and DOCKER_CONTENT_TRUST_SERVER properly and login Harobr.
|
2. On Docker client, follow [Set up notary](../../../docs/use_notary.md) to set up notary and login Harobr.
|
||||||
3. Pull an image from project X.
|
3. Pull an image from project X.
|
||||||
|
|
||||||
# Expected Outcome:
|
# Expected Outcome:
|
||||||
|
@ -16,12 +16,7 @@ User guide
|
|||||||
# Test Steps:
|
# Test Steps:
|
||||||
|
|
||||||
1. Login UI and create a project.
|
1. Login UI and create a project.
|
||||||
2. On a Docker client,run
|
2. On a Docker client,follow [Set up notary](../../../docs/use_notary.md) to set up notary and login Harbor.
|
||||||
```sh
|
|
||||||
export DOCKER_CONTENT_TRUST=1
|
|
||||||
export DOCKER_CONTENT_TRUST_SERVER=https://<harbor_ip>:4443
|
|
||||||
```
|
|
||||||
and login Harbor.
|
|
||||||
3. Push an image to project created in step1.
|
3. Push an image to project created in step1.
|
||||||
4. Delete the pushed image.
|
4. Delete the pushed image.
|
||||||
5. Delete notary tag according to message from UI in step4.
|
5. Delete notary tag according to message from UI in step4.
|
||||||
|
Loading…
Reference in New Issue
Block a user