update test case

This commit is contained in:
myufei 2017-04-14 15:51:31 +08:00
parent 57a4b39e0a
commit c7e6cbe3cc
3 changed files with 24 additions and 5 deletions

View File

@ -14,9 +14,16 @@ User guide
* A Linux host with Docker CLI installed (Docker client).
# Test Steps:
**NOTE:**
In below test, <harbor_ip> 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/<harbor_ip>``` and ```$HOME/.docker/tls/<harbor_ip>: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://<harbor_ip>:4443
```
and login Harbor.
3. Push an image to the project created in step1.

View File

@ -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 <harbor_ip> 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/<harbor_ip>``` and ```$HOME/.docker/tls/<harbor_ip>: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://<harbor_ip>:4443
```
and login Harobr.
3. Pull an image from project X.
# Expected Outcome:

View File

@ -14,9 +14,16 @@ User guide
* A Linux host with Docker CLI(Docker client) installed.
# Test Steps:
**NOTE:**
In below test,<harbor_ip> 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/<harbor_ip>``` and ```$HOME/.docker/tls/<harbor_ip>: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://<harbor_ip>: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.