diff --git a/tests/testcases/Group9-Content-trust/9-01-DB-user-push-signed-images.md b/tests/testcases/Group9-Content-trust/9-01-DB-user-push-signed-images.md index 58da6a4d3..967bba24a 100644 --- a/tests/testcases/Group9-Content-trust/9-01-DB-user-push-signed-images.md +++ b/tests/testcases/Group9-Content-trust/9-01-DB-user-push-signed-images.md @@ -14,9 +14,16 @@ User guide * A Linux host with Docker CLI installed (Docker client). # Test Steps: +**NOTE:** +In below test, should be replaced by your harbor's ip or FQDN. If you are using a self-signed certificate,make sure to copy the CA root cert into ```/etc/docker/certs.d/``` and ```$HOME/.docker/tls/:4443/``` 1. Login UI and create a project. -2. On Docker clinet, follow [Set up notary](../../../../docs/use_notary.md) to set up notary and login Harbor. +2. On Docker clinet, run +```sh +export DOCKER_CONTENT_TRUST=1 +export DOCKER_CONTNET_TRUST_SERVER=https://:4443 +``` +and login Harbor. 3. Push an image to the project created in step1. diff --git a/tests/testcases/Group9-Content-trust/9-03-DB-user-pull-signed-images.md b/tests/testcases/Group9-Content-trust/9-03-DB-user-pull-signed-images.md index 33e4e263c..ab8b0a704 100644 --- a/tests/testcases/Group9-Content-trust/9-03-DB-user-pull-signed-images.md +++ b/tests/testcases/Group9-Content-trust/9-03-DB-user-pull-signed-images.md @@ -14,11 +14,16 @@ User guide * A Linux machine with Docker CLI(Docker client) installed. # Test Steps: -NOTE: -In below test, project X should be replaced by an existing project. +**NOTE:** +In below test, project X should be replaced by an existing project and should be replaced by your harbor's ip or FQDN. If you are using a self-signed certificate,make sure to copy the CA root cert into ```/etc/docker/certs.d/``` and ```$HOME/.docker/tls/:4443/``` 1. Login UI. -2. On Docker client, follow [Set up notary](../../../../docs/use_notary.md) to set up notary and login Harobr. +2. On Docker client, run +```sh +export DOCKER_CONTENT_TRUST=1 +export DOCKER_CONTENT_TRUST_SERVER=https://:4443 +``` +and login Harobr. 3. Pull an image from project X. # Expected Outcome: diff --git a/tests/testcases/Group9-Content-trust/9-05-DB-user-delete-signed-images.md b/tests/testcases/Group9-Content-trust/9-05-DB-user-delete-signed-images.md index 0ab148f56..16867c3cc 100644 --- a/tests/testcases/Group9-Content-trust/9-05-DB-user-delete-signed-images.md +++ b/tests/testcases/Group9-Content-trust/9-05-DB-user-delete-signed-images.md @@ -14,9 +14,16 @@ User guide * A Linux host with Docker CLI(Docker client) installed. # Test Steps: +**NOTE:** +In below test, should be replaced by your harbor's ip or FQDN. If you are using a self-signed certificate,make sure to copy the CA root cert into ```/etc/docker/certs.d/``` and ```$HOME/.docker/tls/:4443/``` 1. Login UI and create a project. -2. On a Docker client,follow [Set up notary](../../../../docs/use_notary.md) to set up notary and login Harbor. +2. On a Docker client,run +```sh +export DOCKER_CONTENT_TRUST=1 +export DOCKER_CONTENT_TRUST_SERVER=https://:4443 +``` +and login Harbor. 3. Push an image to project created in step1. 4. Delete the pushed image. 5. Delete notary tag according to message from UI in step4.