From 628b94db19da097afa4941be6da2e848ed0df326 Mon Sep 17 00:00:00 2001 From: yeya24 Date: Thu, 31 Jan 2019 21:49:06 +0800 Subject: [PATCH] fix some typos Signed-off-by: yeya24 --- docs/kubernetes_deployment.md | 2 +- docs/swagger.yaml | 6 +++--- tests/apitests/python/test_scan_image.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/kubernetes_deployment.md b/docs/kubernetes_deployment.md index eaac29e82..0a0e52ba6 100644 --- a/docs/kubernetes_deployment.md +++ b/docs/kubernetes_deployment.md @@ -65,7 +65,7 @@ These Basic Configuration must be set. Otherwise you can't deploy Harbor on Kube 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 : diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 2adb9265f..014f46e97 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -156,7 +156,7 @@ paths: description: Unexpected internal errors. '/projects/{project_id}': get: - summary: Return specific project detail infomation + summary: Return specific project detail information description: | This endpoint returns specific project information by project ID. parameters: @@ -707,7 +707,7 @@ paths: get: summary: Get current user info. description: | - This endpoint is to get the current user infomation. + This endpoint is to get the current user information. tags: - Products responses: @@ -1370,7 +1370,7 @@ paths: post: summary: Scan all images of the registry. 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: - name: project_id in: query diff --git a/tests/apitests/python/test_scan_image.py b/tests/apitests/python/test_scan_image.py index e4aa008e6..b45e1112f 100644 --- a/tests/apitests/python/test_scan_image.py +++ b/tests/apitests/python/test_scan_image.py @@ -46,7 +46,7 @@ class TestProjects(unittest.TestCase): 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); 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: 1. Delete repository(RA) by user(UA); 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); 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.check_image_scan_result(TestProjects.repo_name, tag, expected_scan_status = "finished", **TestProjects.USER_SCAN_IMAGE_CLIENT)