mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
fix some typos
Signed-off-by: yeya24 <ben.ye@daocloud.io>
This commit is contained in:
parent
3d726219e5
commit
628b94db19
@ -65,7 +65,7 @@ These Basic Configuration must be set. Otherwise you can't deploy Harbor on Kube
|
|||||||
path: /data/registry
|
path: /data/registry
|
||||||
```
|
```
|
||||||
|
|
||||||
For more infomation about storage solution, Please check [Kubernetes Document](http://kubernetes.io/docs/user-guide/persistent-volumes/)
|
For more information about storage solution, Please check [Kubernetes Document](http://kubernetes.io/docs/user-guide/persistent-volumes/)
|
||||||
|
|
||||||
Then you can generate ConfigMap files by :
|
Then you can generate ConfigMap files by :
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ paths:
|
|||||||
description: Unexpected internal errors.
|
description: Unexpected internal errors.
|
||||||
'/projects/{project_id}':
|
'/projects/{project_id}':
|
||||||
get:
|
get:
|
||||||
summary: Return specific project detail infomation
|
summary: Return specific project detail information
|
||||||
description: |
|
description: |
|
||||||
This endpoint returns specific project information by project ID.
|
This endpoint returns specific project information by project ID.
|
||||||
parameters:
|
parameters:
|
||||||
@ -707,7 +707,7 @@ paths:
|
|||||||
get:
|
get:
|
||||||
summary: Get current user info.
|
summary: Get current user info.
|
||||||
description: |
|
description: |
|
||||||
This endpoint is to get the current user infomation.
|
This endpoint is to get the current user information.
|
||||||
tags:
|
tags:
|
||||||
- Products
|
- Products
|
||||||
responses:
|
responses:
|
||||||
@ -1370,7 +1370,7 @@ paths:
|
|||||||
post:
|
post:
|
||||||
summary: Scan all images of the registry.
|
summary: Scan all images of the registry.
|
||||||
description: |
|
description: |
|
||||||
The server will launch different jobs to scan each image on the regsitry, so this is equivalent to calling the API to scan the image one by one in background, so there's no way to track the overall status of the "scan all" action. Only system adim has permission to call this API.
|
The server will launch different jobs to scan each image on the regisitry, so this is equivalent to calling the API to scan the image one by one in background, so there's no way to track the overall status of the "scan all" action. Only system adim has permission to call this API.
|
||||||
parameters:
|
parameters:
|
||||||
- name: project_id
|
- name: project_id
|
||||||
in: query
|
in: query
|
||||||
|
@ -46,7 +46,7 @@ class TestProjects(unittest.TestCase):
|
|||||||
3. Add user(UA) as a member of project(PA) with project-admin role;
|
3. Add user(UA) as a member of project(PA) with project-admin role;
|
||||||
4. Get private project of user(UA), user(UA) can see only one private project which is project(PA);
|
4. Get private project of user(UA), user(UA) can see only one private project which is project(PA);
|
||||||
5. Create a new repository(RA) and tag(TA) in project(PA) by user(UA);
|
5. Create a new repository(RA) and tag(TA) in project(PA) by user(UA);
|
||||||
6. Send scan image command and get tag(TA) infomation to check scan result, it should be finished;
|
6. Send scan image command and get tag(TA) information to check scan result, it should be finished;
|
||||||
Tear down:
|
Tear down:
|
||||||
1. Delete repository(RA) by user(UA);
|
1. Delete repository(RA) by user(UA);
|
||||||
2. Delete project(PA);
|
2. Delete project(PA);
|
||||||
@ -78,7 +78,7 @@ class TestProjects(unittest.TestCase):
|
|||||||
#5. Create a new repository(RA) and tag(TA) in project(PA) by user(UA);
|
#5. Create a new repository(RA) and tag(TA) in project(PA) by user(UA);
|
||||||
TestProjects.repo_name, tag = push_image_to_project(project_scan_image_name, harbor_server, user_scan_image_name, user_001_password, image, src_tag)
|
TestProjects.repo_name, tag = push_image_to_project(project_scan_image_name, harbor_server, user_scan_image_name, user_001_password, image, src_tag)
|
||||||
|
|
||||||
#6. Send scan image command and get tag(TA) infomation to check scan result, it should be finished;
|
#6. Send scan image command and get tag(TA) information to check scan result, it should be finished;
|
||||||
self.repo.scan_image(TestProjects.repo_name, tag, **TestProjects.USER_SCAN_IMAGE_CLIENT)
|
self.repo.scan_image(TestProjects.repo_name, tag, **TestProjects.USER_SCAN_IMAGE_CLIENT)
|
||||||
self.repo.check_image_scan_result(TestProjects.repo_name, tag, expected_scan_status = "finished", **TestProjects.USER_SCAN_IMAGE_CLIENT)
|
self.repo.check_image_scan_result(TestProjects.repo_name, tag, expected_scan_status = "finished", **TestProjects.USER_SCAN_IMAGE_CLIENT)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user