mirror of
https://github.com/goharbor/harbor.git
synced 2025-03-02 10:41:59 +01:00
test cases
This commit is contained in:
parent
a011c84e19
commit
c3463247d2
@ -24,7 +24,7 @@ In below test, user A is non-admin user. User A and project X, Y should be repla
|
|||||||
3. On a Docker client, log in as User A and run `docker push` to push an image to the project X, e.g. projectX/myimage:v1.
|
3. On a Docker client, log in as User A and run `docker push` to push an image to the project X, e.g. projectX/myimage:v1.
|
||||||
4. Push a second image with different tag to project X, e.g. projectX/myimage:v2 .
|
4. Push a second image with different tag to project X, e.g. projectX/myimage:v2 .
|
||||||
5. Push an image with different name to project X, e.g. projectX/newimage:v1 .
|
5. Push an image with different name to project X, e.g. projectX/newimage:v1 .
|
||||||
6. Run `docker pull` to verify images can be pushed successfully.
|
6. Run `docker pull` to verify images can be pulled successfully.
|
||||||
7. In UI, delete the three images one by one.
|
7. In UI, delete the three images one by one.
|
||||||
8. On a Docker client, log in as User A and run `docker pull` to pull the three deleted images of project X.
|
8. On a Docker client, log in as User A and run `docker pull` to pull the three deleted images of project X.
|
||||||
9. In UI, delete project X.
|
9. In UI, delete project X.
|
||||||
|
@ -25,7 +25,7 @@ User guide
|
|||||||
2. Create a project X so that the user has the project admin role.
|
2. Create a project X so that the user has the project admin role.
|
||||||
3. On a Docker client, log in as User A and run `docker push` to push an image to project X, e.g. projectX/myimage:v1.
|
3. On a Docker client, log in as User A and run `docker push` to push an image to project X, e.g. projectX/myimage:v1.
|
||||||
4. Push an image with different name to project X, e.g. projectX/newimage:v1 .
|
4. Push an image with different name to project X, e.g. projectX/newimage:v1 .
|
||||||
5. Run `docker pull` to verify images can be pushed successfully.
|
5. Run `docker pull` to verify images can be pulled successfully.
|
||||||
6. In UI, delete project X directly. (should fail with errors)
|
6. In UI, delete project X directly. (should fail with errors)
|
||||||
7. While keeping the current user A logged on, in a different browser, log in as admin user.
|
7. While keeping the current user A logged on, in a different browser, log in as admin user.
|
||||||
8. Under "Admin Options", create a replication policy of project X to another Harbor instance. (Do not need to activate this policy.)
|
8. Under "Admin Options", create a replication policy of project X to another Harbor instance. (Do not need to activate this policy.)
|
||||||
|
@ -23,7 +23,7 @@ In below test, user A is non-admin user. User A and project X should be replaced
|
|||||||
2. Create a project X so that the user has the project admin role.
|
2. Create a project X so that the user has the project admin role.
|
||||||
3. On a Docker client, log in as User A and run `docker push` to push an image to the project X, e.g. projectX/myimage:v1.
|
3. On a Docker client, log in as User A and run `docker push` to push an image to the project X, e.g. projectX/myimage:v1.
|
||||||
4. Push an image with different name to project X, e.g. projectX/newimage:v1 .
|
4. Push an image with different name to project X, e.g. projectX/newimage:v1 .
|
||||||
5. Run `docker pull` to verify images can be pushed successfully.
|
5. Run `docker pull` to verify images can be pulled successfully.
|
||||||
6. In UI, log out user A's session.
|
6. In UI, log out user A's session.
|
||||||
7. Log in as admin user.
|
7. Log in as admin user.
|
||||||
8. Under project X, delete the two images one by one.
|
8. Under project X, delete the two images one by one.
|
||||||
|
@ -24,7 +24,7 @@ User guide
|
|||||||
1. Log in to UI as user A (non-admin).
|
1. Log in to UI as user A (non-admin).
|
||||||
2. Create a project X so that the user has the project admin role.
|
2. Create a project X so that the user has the project admin role.
|
||||||
3. On a Docker client, log in as User A and run `docker push` to push an image to project X, e.g. projectX/myimage:v1.
|
3. On a Docker client, log in as User A and run `docker push` to push an image to project X, e.g. projectX/myimage:v1.
|
||||||
4. Run `docker pull` to verify images can be pushed successfully.
|
4. Run `docker pull` to verify images can be pulled successfully.
|
||||||
5. In UI, log out user A.
|
5. In UI, log out user A.
|
||||||
6. Log in as admin user.
|
6. Log in as admin user.
|
||||||
7. Delete project X. (should fail with errors)
|
7. Delete project X. (should fail with errors)
|
||||||
@ -35,7 +35,7 @@ User guide
|
|||||||
# Expected Outcome:
|
# Expected Outcome:
|
||||||
* Step 7, deleting project X should fail because there are images under it.
|
* Step 7, deleting project X should fail because there are images under it.
|
||||||
* Step 8-9, deleting images of project X and then deleting project X should succeed.
|
* Step 8-9, deleting images of project X and then deleting project X should succeed.
|
||||||
* Step 10, there should be logs for delete and create of project X, notice the project name of the deleted operation is displayed differently.
|
* Step 10, there should be logs for deletion and creation of project X.
|
||||||
|
|
||||||
# Possible Problems:
|
# Possible Problems:
|
||||||
None
|
None
|
Loading…
Reference in New Issue
Block a user