From 345b5e545d43aea1a738942dba6f3d1b569e1fba Mon Sep 17 00:00:00 2001 From: guangwu Date: Mon, 7 Aug 2023 17:21:38 +0800 Subject: [PATCH] fix: privileges member successfully typo (#19091) Signed-off-by: guoguangwu Co-authored-by: Shengwen YU --- tests/apitests/python/test_robot_account.py | 4 ++-- .../python/test_scan_image_artifact_in_public_project.py | 2 +- tests/integration.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/apitests/python/test_robot_account.py b/tests/apitests/python/test_robot_account.py index 084d48fba..5f49bf885 100644 --- a/tests/apitests/python/test_robot_account.py +++ b/tests/apitests/python/test_robot_account.py @@ -58,8 +58,8 @@ class TestRobotAccount(unittest.TestCase): 1. Create user(UA); 2. Create private project(PA), private project(PB) and public project(PC) by user(UA); 3. Push image(ImagePA) to project(PA), image(ImagePB) to project(PB) and image(ImagePC) to project(PC) by user(UA); - 4. Create a new robot account(RA) with pull and push privilige in project(PA) by user(UA); - 5. Check robot account info, it should has both pull and push priviliges; + 4. Create a new robot account(RA) with pull and push privilege in project(PA) by user(UA); + 5. Check robot account info, it should has both pull and push privileges; 6. Pull image(ImagePA) from project(PA) by robot account(RA), it must be successful; 7. Push image(ImageRA) to project(PA) by robot account(RA), it must be successful; 8. Push image(ImageRA) to project(PB) by robot account(RA), it must be not successful; diff --git a/tests/apitests/python/test_scan_image_artifact_in_public_project.py b/tests/apitests/python/test_scan_image_artifact_in_public_project.py index 091663273..604a5e38a 100644 --- a/tests/apitests/python/test_scan_image_artifact_in_public_project.py +++ b/tests/apitests/python/test_scan_image_artifact_in_public_project.py @@ -49,7 +49,7 @@ class TestScanImageInPublicProject(unittest.TestCase): self.scan.scan_artifact(project_name, repo_name, tag, expect_status_code=401, username=None, password=None) with created_user(password) as (_, username1): - # scan image with non project memeber + # scan image with non project member self.scan.scan_artifact(project_name, repo_name, tag, expect_status_code=403, username=username1, password=password) self.scan.scan_artifact(project_name, repo_name, tag, username=username, password=password) diff --git a/tests/integration.sh b/tests/integration.sh index decdec0b9..4a608f01c 100755 --- a/tests/integration.sh +++ b/tests/integration.sh @@ -200,7 +200,7 @@ fi ## --------------------------------------------- Upload Harbor Latest Build File ---------------------------------- # -# latest.build file holds the latest offline installer url, it must be sure that the installer has been uploaded successfull. +# latest.build file holds the latest offline installer url, it must be sure that the installer has been uploaded successfully. # if [ $upload_latest_build == true ] && [ $upload_bundle_success == true ]; then echo 'https://storage.googleapis.com/'$harbor_target_bucket/$harbor_offline_build_bundle > $latest_build_file