Merge pull request #10654 from danfengliu/use-external-registry-goharbor-1.10

Fix project quotas API test issue
This commit is contained in:
Wang Yan 2020-02-06 18:43:20 +08:00 committed by GitHub
commit edefbe8c78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -67,7 +67,7 @@ class TestProjects(unittest.TestCase):
#4.Push an image to project(PA) by user(UA), then check the project quota usage; -- {"count": 1, "storage": 2791709} #4.Push an image to project(PA) by user(UA), then check the project quota usage; -- {"count": 1, "storage": 2791709}
#image = "harbor-repo.vmware.com/harbor-ci/alpine" #image = "harbor-repo.vmware.com/harbor-ci/alpine"
image = "alpine" image = "goharbor/alpine"
src_tag = "3.10" src_tag = "3.10"
TestProjects.repo_name, _ = push_image_to_project(project_test_quota_name, harbor_server, user_test_quota_name, user_001_password, image, src_tag) TestProjects.repo_name, _ = push_image_to_project(project_test_quota_name, harbor_server, user_test_quota_name, user_001_password, image, src_tag)

View File

@ -106,7 +106,9 @@ Make Project Private
Retry Checkbox Should Be Selected ${project_config_public_checkbox} Retry Checkbox Should Be Selected ${project_config_public_checkbox}
Retry Double Keywords When Error Retry Element Click ${project_config_public_checkbox_label} Retry Checkbox Should Not Be Selected ${project_config_public_checkbox} Retry Double Keywords When Error Retry Element Click ${project_config_public_checkbox_label} Retry Checkbox Should Not Be Selected ${project_config_public_checkbox}
Retry Element Click //button[contains(.,'SAVE')] Retry Element Click //button[contains(.,'SAVE')]
Retry Wait Until Page Contains Configuration has been successfully saved Go Into Project ${project name}
Switch To Project Configuration
Retry Checkbox Should Not Be Selected ${project_config_public_checkbox}
Make Project Public Make Project Public
[Arguments] ${projectname} [Arguments] ${projectname}
@ -115,7 +117,9 @@ Make Project Public
Retry Checkbox Should Not Be Selected ${project_config_public_checkbox} Retry Checkbox Should Not Be Selected ${project_config_public_checkbox}
Retry Double Keywords When Error Retry Element Click ${project_config_public_checkbox_label} Retry Checkbox Should Be Selected ${project_config_public_checkbox} Retry Double Keywords When Error Retry Element Click ${project_config_public_checkbox_label} Retry Checkbox Should Be Selected ${project_config_public_checkbox}
Retry Element Click //button[contains(.,'SAVE')] Retry Element Click //button[contains(.,'SAVE')]
Retry Wait Until Page Contains Configuration has been successfully saved Go Into Project ${project name}
Switch To Project Configuration
Retry Checkbox Should Be Selected ${project_config_public_checkbox}
Delete Repo Delete Repo
[Arguments] ${projectname} [Arguments] ${projectname}