From 470000a9ec7997836e49fad48e0b79b420e63184 Mon Sep 17 00:00:00 2001 From: wang yan Date: Fri, 24 Aug 2018 13:30:07 +0800 Subject: [PATCH] Deprecate unused robot cases Signed-off-by: wang yan --- tests/robot-cases/Group0-BAT/BAT.robot | 2 +- .../Group0-Concourse-CI/Basic.robot | 116 ------------ .../Group0-Concourse-CI/LDAP.robot | 59 ------ .../notary-push-image.sh | 0 .../Common.robot | 2 +- .../DB.robot | 0 .../LDAP.robot | 0 .../Nightly.robot | 2 +- .../Replication.robot | 0 .../Setup.robot | 0 .../Teardown.robot | 0 .../UAA.robot | 0 .../1-01-DB-user-registration.robot | 25 --- .../1-02-DB-user-log-in-log-out.robot | 25 --- .../1-03-DB-user-update-password.robot | 28 --- ...1-04-DB-user-update-account-settings.robot | 26 --- .../1-05-LDAP-user-log-in-log-out.robot | 29 --- .../1-08-admin-log-in-log-out.robot | 25 --- .../1-10-admin-update-account-settings.robot | 25 --- .../1-11-admin-update-password.robot | 27 --- .../1-12-admin-assign-sys-admin-role.robot | 32 ---- .../Dockerfile.longevity | 0 .../Longevity.robot | 0 .../2-01-DB-user-create-project.robot | 26 --- .../2-04-DB-user-view-projects.robot | 32 ---- .../2-21-admin-view-project.robot | 70 ------- .../3-01-DB-user-manage-project-members.robot | 175 ------------------ ...-02-DB-user-manage-project-publicity.robot | 59 ------ .../data.json | 0 .../prepare.py | 0 .../sign_image.sh | 0 .../verify.robot | 0 .../4-01-DB-user-view-logs.robot | 36 ---- .../5-00-OVA-BAT.robot | 51 ----- .../7-01-Proj-replication-rules-add.robot | 29 --- .../8-01-edit-authentacation.robot | 61 ------ .../8-02-edit-project-creat.robot | 48 ----- .../8-03-edit-self-registration.robot | 36 ---- .../8-04-edit-verify-remote-cert.robot | 36 ---- .../8-05-edit-email-settings.robot | 34 ---- .../8-06-edit-token-expire.robot | 34 ---- .../9-21-admin-push-signed-images.robot | 35 ---- .../9-29-notary-inteceptor.robot | 26 --- .../notary-pull-image-inteceptor.sh | 8 - 44 files changed, 3 insertions(+), 1216 deletions(-) delete mode 100644 tests/robot-cases/Group0-Concourse-CI/Basic.robot delete mode 100644 tests/robot-cases/Group0-Concourse-CI/LDAP.robot rename tests/robot-cases/{Group9-Content-trust => Group0-Util}/notary-push-image.sh (100%) rename tests/robot-cases/{Group11-Nightly => Group1-Nightly}/Common.robot (99%) rename tests/robot-cases/{Group11-Nightly => Group1-Nightly}/DB.robot (100%) rename tests/robot-cases/{Group11-Nightly => Group1-Nightly}/LDAP.robot (100%) rename tests/robot-cases/{Group11-Nightly => Group1-Nightly}/Nightly.robot (99%) rename tests/robot-cases/{Group11-Nightly => Group1-Nightly}/Replication.robot (100%) rename tests/robot-cases/{Group11-Nightly => Group1-Nightly}/Setup.robot (100%) rename tests/robot-cases/{Group11-Nightly => Group1-Nightly}/Teardown.robot (100%) rename tests/robot-cases/{Group11-Nightly => Group1-Nightly}/UAA.robot (100%) delete mode 100644 tests/robot-cases/Group1-user-management/1-01-DB-user-registration.robot delete mode 100644 tests/robot-cases/Group1-user-management/1-02-DB-user-log-in-log-out.robot delete mode 100644 tests/robot-cases/Group1-user-management/1-03-DB-user-update-password.robot delete mode 100644 tests/robot-cases/Group1-user-management/1-04-DB-user-update-account-settings.robot delete mode 100644 tests/robot-cases/Group1-user-management/1-05-LDAP-user-log-in-log-out.robot delete mode 100644 tests/robot-cases/Group1-user-management/1-08-admin-log-in-log-out.robot delete mode 100644 tests/robot-cases/Group1-user-management/1-10-admin-update-account-settings.robot delete mode 100644 tests/robot-cases/Group1-user-management/1-11-admin-update-password.robot delete mode 100644 tests/robot-cases/Group1-user-management/1-12-admin-assign-sys-admin-role.robot rename tests/robot-cases/{Group12-Longevity => Group2-Longevity}/Dockerfile.longevity (100%) rename tests/robot-cases/{Group12-Longevity => Group2-Longevity}/Longevity.robot (100%) delete mode 100644 tests/robot-cases/Group2-image-management/2-01-DB-user-create-project.robot delete mode 100644 tests/robot-cases/Group2-image-management/2-04-DB-user-view-projects.robot delete mode 100644 tests/robot-cases/Group2-image-management/2-21-admin-view-project.robot delete mode 100644 tests/robot-cases/Group3-RBAC/3-01-DB-user-manage-project-members.robot delete mode 100644 tests/robot-cases/Group3-RBAC/3-02-DB-user-manage-project-publicity.robot rename tests/robot-cases/{Group13-Upgrade => Group3-Upgrade}/data.json (100%) rename tests/robot-cases/{Group13-Upgrade => Group3-Upgrade}/prepare.py (100%) rename tests/robot-cases/{Group13-Upgrade => Group3-Upgrade}/sign_image.sh (100%) rename tests/robot-cases/{Group13-Upgrade => Group3-Upgrade}/verify.robot (100%) delete mode 100644 tests/robot-cases/Group4-logging/4-01-DB-user-view-logs.robot delete mode 100644 tests/robot-cases/Group5-OVA-install-config/5-00-OVA-BAT.robot delete mode 100644 tests/robot-cases/Group7-Replication/7-01-Proj-replication-rules-add.robot delete mode 100644 tests/robot-cases/Group8-Configuration/8-01-edit-authentacation.robot delete mode 100644 tests/robot-cases/Group8-Configuration/8-02-edit-project-creat.robot delete mode 100644 tests/robot-cases/Group8-Configuration/8-03-edit-self-registration.robot delete mode 100644 tests/robot-cases/Group8-Configuration/8-04-edit-verify-remote-cert.robot delete mode 100644 tests/robot-cases/Group8-Configuration/8-05-edit-email-settings.robot delete mode 100644 tests/robot-cases/Group8-Configuration/8-06-edit-token-expire.robot delete mode 100644 tests/robot-cases/Group9-Content-trust/9-21-admin-push-signed-images.robot delete mode 100644 tests/robot-cases/Group9-Content-trust/9-29-notary-inteceptor.robot delete mode 100755 tests/robot-cases/Group9-Content-trust/notary-pull-image-inteceptor.sh diff --git a/tests/robot-cases/Group0-BAT/BAT.robot b/tests/robot-cases/Group0-BAT/BAT.robot index a9e228a8f..0e00d27c3 100644 --- a/tests/robot-cases/Group0-BAT/BAT.robot +++ b/tests/robot-cases/Group0-BAT/BAT.robot @@ -54,7 +54,7 @@ Test Case - Notary Basic Verfication Log ${output} Push image ${ip} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} library hello-world:latest - ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group9-Content-trust/notary-push-image.sh ${ip} ${notaryServerEndpoint} + ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group0-Util/notary-push-image.sh ${ip} ${notaryServerEndpoint} Log ${output} Should Be Equal As Integers ${rc} 0 diff --git a/tests/robot-cases/Group0-Concourse-CI/Basic.robot b/tests/robot-cases/Group0-Concourse-CI/Basic.robot deleted file mode 100644 index 06c2a698f..000000000 --- a/tests/robot-cases/Group0-Concourse-CI/Basic.robot +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Harbor BATs -Resource ../../resources/Util.robot -Default Tags BAT - -*** Variables *** -${HARBOR_URL} https://${ip} - -*** Test Cases *** -Test Case - Sign With Admin - Init Chrome Driver - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Close Browser - -Test Case - Create An New Project - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Create An New User url=${HARBOR_URL} username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - Create An New Project test${d} - Close Browser - -Test Case - Push Image - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Create An New User url=${HARBOR_URL} username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - Create An New Project test${d} - - Push image ${ip} tester${d} Test1@34 test${d} hello-world:latest - Go Into Project test${d} - Wait Until Page Contains test${d}/hello-world - -Test Case - Project Level Policy Public - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Create An New Project project${d} - Go Into Project project${d} - Goto Project Config - Click Project Public - Save Project Config - #verify - Public Should Be Selected - Back To Projects - #project${d} default should be private - Project Should Be Public project${d} - Close Browser - -Test Case - Project Level Policy Content Trust - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Create An New Project project${d} - Push Image ${ip} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} project${d} hello-world:latest - Go Into Project project${d} - Goto Project Config - Click Content Trust - Save Project Config - #verify - Content Trust Should Be Selected - Cannot Pull Unsigned Image ${ip} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} project${d} hello-world:latest - Close Browser - -Test Case - Create An Replication Rule New Endpoint - Init Chrome Driver - ${d}= Get current date result_format=%m%s - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Create An New Project project${d} - Go Into Project project${d} - Switch To Replication - Create An New Rule With New Endpoint policy_name=test_policy_${d} policy_description=test_description destination_name=test_destination_name_${d} destination_url=test_destination_url_${d} destination_username=test_destination_username destination_password=test_destination_password - Close Browser - -Test Case - Scan A Tag - Init Chrome Driver - ${d}= get current date result_format=%m%s - Create An New Project With New User url=${HARBOR_URL} username=tester${d} email=tester${d}@vmware.com realname=tester${d} newPassword=Test1@34 comment=harbor projectname=project${d} public=false - Push Image ${ip} tester${d} Test1@34 project${d} hello-world - Go Into Project project${d} - Expand Repo project${d} - Scan Repo latest - Summary Chart Should Display latest - Close Browser - -Test Case - Admin Push Signed Image - Enabe Notary Client - - ${rc} ${output}= Run And Return Rc And Output docker pull hello-world:latest - Log ${output} - - Push image ${ip} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} library hello-world:latest - ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group9-Content-trust/notary-push-image.sh - Log ${output} - Should Be Equal As Integers ${rc} 0 - - ${rc} ${output}= Run And Return Rc And Output curl -u admin:Harbor12345 -s --insecure -H "Content-Type: application/json" -X GET "https://${ip}/api/repositories/library/tomcat/signatures" - Log To Console ${output} - Should Be Equal As Integers ${rc} 0 - #Should Contain ${output} sha256 - -Test Case - Admin Push Un-Signed Image - ${rc} ${output}= Run And Return Rc And Output docker push ${ip}/library/hello-world:latest - Log To Console ${output} \ No newline at end of file diff --git a/tests/robot-cases/Group0-Concourse-CI/LDAP.robot b/tests/robot-cases/Group0-Concourse-CI/LDAP.robot deleted file mode 100644 index 756d0fbda..000000000 --- a/tests/robot-cases/Group0-Concourse-CI/LDAP.robot +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Harbor BATs -Resource ../../resources/Util.robot -Default Tags BAT - -*** Variables *** -${HARBOR_URL} https://${ip} - -*** Test Cases *** -Test Case - Ldap Verify Cert - Init Chrome Driver - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Switch To Configure - Test Ldap Connection - Close Browser - -Test Case - Ldap Sign in and out - Init Chrome Driver - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Switch To Configure - Init LDAP - Logout Harbor - Sign In Harbor ${HARBOR_URL} mike zhu88jie - Close Browser - -Test Case - Ldap User Create Project - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Sign In Harbor ${HARBOR_URL} mike zhu88jie - Create An New Project project${d} - Close Browser - -Test Case - Ldap User Push An Image - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Sign In Harbor ${HARBOR_URL} mike zhu88jie - Create An New Project project${d} - - Push Image ${ip} mike zhu88jie project${d} hello-world:latest - Go Into Project project${d} - Wait Until Page Contains project${d}/hello-world - Close Browser - -Test Case - Ldap User Can Not login - Docker Login Fail ${ip} test 123456 \ No newline at end of file diff --git a/tests/robot-cases/Group9-Content-trust/notary-push-image.sh b/tests/robot-cases/Group0-Util/notary-push-image.sh similarity index 100% rename from tests/robot-cases/Group9-Content-trust/notary-push-image.sh rename to tests/robot-cases/Group0-Util/notary-push-image.sh diff --git a/tests/robot-cases/Group11-Nightly/Common.robot b/tests/robot-cases/Group1-Nightly/Common.robot similarity index 99% rename from tests/robot-cases/Group11-Nightly/Common.robot rename to tests/robot-cases/Group1-Nightly/Common.robot index e7413aeae..801d4fe99 100644 --- a/tests/robot-cases/Group11-Nightly/Common.robot +++ b/tests/robot-cases/Group1-Nightly/Common.robot @@ -616,7 +616,7 @@ Test Case - Admin Push Signed Image Log ${output} Push image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library hello-world:latest - ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group9-Content-trust/notary-push-image.sh ${ip} ${notaryServerEndpoint} + ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group0-Util/notary-push-image.sh ${ip} ${notaryServerEndpoint} Log ${output} Should Be Equal As Integers ${rc} 0 diff --git a/tests/robot-cases/Group11-Nightly/DB.robot b/tests/robot-cases/Group1-Nightly/DB.robot similarity index 100% rename from tests/robot-cases/Group11-Nightly/DB.robot rename to tests/robot-cases/Group1-Nightly/DB.robot diff --git a/tests/robot-cases/Group11-Nightly/LDAP.robot b/tests/robot-cases/Group1-Nightly/LDAP.robot similarity index 100% rename from tests/robot-cases/Group11-Nightly/LDAP.robot rename to tests/robot-cases/Group1-Nightly/LDAP.robot diff --git a/tests/robot-cases/Group11-Nightly/Nightly.robot b/tests/robot-cases/Group1-Nightly/Nightly.robot similarity index 99% rename from tests/robot-cases/Group11-Nightly/Nightly.robot rename to tests/robot-cases/Group1-Nightly/Nightly.robot index 7fd94574d..5422b61b8 100644 --- a/tests/robot-cases/Group11-Nightly/Nightly.robot +++ b/tests/robot-cases/Group1-Nightly/Nightly.robot @@ -641,7 +641,7 @@ Test Case - Admin Push Signed Image Log ${output} Push image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library hello-world:latest - ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group9-Content-trust/notary-push-image.sh ${ip} + ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group0-Util/notary-push-image.sh ${ip} Log ${output} Should Be Equal As Integers ${rc} 0 diff --git a/tests/robot-cases/Group11-Nightly/Replication.robot b/tests/robot-cases/Group1-Nightly/Replication.robot similarity index 100% rename from tests/robot-cases/Group11-Nightly/Replication.robot rename to tests/robot-cases/Group1-Nightly/Replication.robot diff --git a/tests/robot-cases/Group11-Nightly/Setup.robot b/tests/robot-cases/Group1-Nightly/Setup.robot similarity index 100% rename from tests/robot-cases/Group11-Nightly/Setup.robot rename to tests/robot-cases/Group1-Nightly/Setup.robot diff --git a/tests/robot-cases/Group11-Nightly/Teardown.robot b/tests/robot-cases/Group1-Nightly/Teardown.robot similarity index 100% rename from tests/robot-cases/Group11-Nightly/Teardown.robot rename to tests/robot-cases/Group1-Nightly/Teardown.robot diff --git a/tests/robot-cases/Group11-Nightly/UAA.robot b/tests/robot-cases/Group1-Nightly/UAA.robot similarity index 100% rename from tests/robot-cases/Group11-Nightly/UAA.robot rename to tests/robot-cases/Group1-Nightly/UAA.robot diff --git a/tests/robot-cases/Group1-user-management/1-01-DB-user-registration.robot b/tests/robot-cases/Group1-user-management/1-01-DB-user-registration.robot deleted file mode 100644 index 23b2a7e6d..000000000 --- a/tests/robot-cases/Group1-user-management/1-01-DB-user-registration.robot +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Create An New User -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Create An New User - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Create An New User username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - Close Browser diff --git a/tests/robot-cases/Group1-user-management/1-02-DB-user-log-in-log-out.robot b/tests/robot-cases/Group1-user-management/1-02-DB-user-log-in-log-out.robot deleted file mode 100644 index 0960cd459..000000000 --- a/tests/robot-cases/Group1-user-management/1-02-DB-user-log-in-log-out.robot +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Sign in and out -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Sign in and out - Init Chrome Driver - Sign In Harbor %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Logout Harbor - Close Browser diff --git a/tests/robot-cases/Group1-user-management/1-03-DB-user-update-password.robot b/tests/robot-cases/Group1-user-management/1-03-DB-user-update-password.robot deleted file mode 100644 index dd30df547..000000000 --- a/tests/robot-cases/Group1-user-management/1-03-DB-user-update-password.robot +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Update Password -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Update Password - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Create An New User username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - Change Password Test1@34 Test12#4 - Logout Harbor - Sign In Harbor tester${d} Test12#4 - Close Browser diff --git a/tests/robot-cases/Group1-user-management/1-04-DB-user-update-account-settings.robot b/tests/robot-cases/Group1-user-management/1-04-DB-user-update-account-settings.robot deleted file mode 100644 index acdb1739d..000000000 --- a/tests/robot-cases/Group1-user-management/1-04-DB-user-update-account-settings.robot +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Update account settings -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Update User Comment - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Create An New User username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - Update User Comment Test12#4 - Logout Harbor diff --git a/tests/robot-cases/Group1-user-management/1-05-LDAP-user-log-in-log-out.robot b/tests/robot-cases/Group1-user-management/1-05-LDAP-user-log-in-log-out.robot deleted file mode 100644 index b98403d1c..000000000 --- a/tests/robot-cases/Group1-user-management/1-05-LDAP-user-log-in-log-out.robot +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Update account settings -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Ldap Sign in and out - Switch To LDAP - Init Chrome Driver - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Switch To Configure - Init LDAP - Logout Harbor - Sign In Harbor ${HARBOR_URL} user001 user001 - Close Browser diff --git a/tests/robot-cases/Group1-user-management/1-08-admin-log-in-log-out.robot b/tests/robot-cases/Group1-user-management/1-08-admin-log-in-log-out.robot deleted file mode 100644 index ac8235aef..000000000 --- a/tests/robot-cases/Group1-user-management/1-08-admin-log-in-log-out.robot +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Update User Comment -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Update User Comment - Init Chrome Driver - Sign In Harbor %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Logout Harbor - Close Browser diff --git a/tests/robot-cases/Group1-user-management/1-10-admin-update-account-settings.robot b/tests/robot-cases/Group1-user-management/1-10-admin-update-account-settings.robot deleted file mode 100644 index d55634f8c..000000000 --- a/tests/robot-cases/Group1-user-management/1-10-admin-update-account-settings.robot +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Update User Comment -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Update User Comment - Init Chrome Driver - Sign In Harbor %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Update User Comment Test12#4 - Logout Harbor diff --git a/tests/robot-cases/Group1-user-management/1-11-admin-update-password.robot b/tests/robot-cases/Group1-user-management/1-11-admin-update-password.robot deleted file mode 100644 index 33b2731f9..000000000 --- a/tests/robot-cases/Group1-user-management/1-11-admin-update-password.robot +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Admin Update Password -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Admin Update Password - Init Chrome Driver - Sign In Harbor %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Change Password %{HARBOR_PASSWORD} Test12#4 - Logout Harbor - Sign In Harbor %{HARBOR_ADMIN} Test12#4 - Close Browser diff --git a/tests/robot-cases/Group1-user-management/1-12-admin-assign-sys-admin-role.robot b/tests/robot-cases/Group1-user-management/1-12-admin-assign-sys-admin-role.robot deleted file mode 100644 index 3dbb9ccc2..000000000 --- a/tests/robot-cases/Group1-user-management/1-12-admin-assign-sys-admin-role.robot +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Assign Sys Admin -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Assign Sys Admin - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Create An New User url=${HARBOR_URL} username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - Logout Harbor - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Switch to User Tag - Assign User Admin tester${d} - Logout Harbor - Sign In Harbor ${HARBOR_URL} tester${d} Test1@34 - Administration Tag Should Display - Close Browser diff --git a/tests/robot-cases/Group12-Longevity/Dockerfile.longevity b/tests/robot-cases/Group2-Longevity/Dockerfile.longevity similarity index 100% rename from tests/robot-cases/Group12-Longevity/Dockerfile.longevity rename to tests/robot-cases/Group2-Longevity/Dockerfile.longevity diff --git a/tests/robot-cases/Group12-Longevity/Longevity.robot b/tests/robot-cases/Group2-Longevity/Longevity.robot similarity index 100% rename from tests/robot-cases/Group12-Longevity/Longevity.robot rename to tests/robot-cases/Group2-Longevity/Longevity.robot diff --git a/tests/robot-cases/Group2-image-management/2-01-DB-user-create-project.robot b/tests/robot-cases/Group2-image-management/2-01-DB-user-create-project.robot deleted file mode 100644 index 90c3b1884..000000000 --- a/tests/robot-cases/Group2-image-management/2-01-DB-user-create-project.robot +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Create An New Project -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Create An New Project - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Create An New User username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - Create An New Project test${d} - Close Browser diff --git a/tests/robot-cases/Group2-image-management/2-04-DB-user-view-projects.robot b/tests/robot-cases/Group2-image-management/2-04-DB-user-view-projects.robot deleted file mode 100644 index d27471691..000000000 --- a/tests/robot-cases/Group2-image-management/2-04-DB-user-view-projects.robot +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation User View Projects -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - User View Projects - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Create An New User username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - Create An New Project test${d}1 - Create An New Project test${d}2 - Create An New Project test${d}3 - Switch To Log - Wait Until Page Contains test${d}1 - Wait Until Page Contains test${d}2 - Wait Until Page Contains test${d}3 - Close Browser diff --git a/tests/robot-cases/Group2-image-management/2-21-admin-view-project.robot b/tests/robot-cases/Group2-image-management/2-21-admin-view-project.robot deleted file mode 100644 index fe67acbd0..000000000 --- a/tests/robot-cases/Group2-image-management/2-21-admin-view-project.robot +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Admin View Project -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Admin View Project - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Create An New User username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - Create An New Project test${d}1 - Create An New Public Project test${d}2 - Close Browser - - ${rc} ${ip}= Run And Return Rc And Output ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}' - Log To Console ${ip} - Should Be Equal As Integers ${rc} 0 - ${rc}= Run And Return Rc docker pull hello-world - Log ${rc} - ${rc}= Run And Return Rc docker pull busybox - Log ${rc} - Should Be Equal As Integers ${rc} 0 - ${rc} ${output}= Run And Return Rc And Output docker login -u tester${d} -p Test1@34 ${ip} - Log To Console ${output} - Should Be Equal As Integers ${rc} 0 - ${rc}= Run And Return Rc docker tag hello-world ${ip}/test${d}1/hello-world:latest - Log ${rc} - ${rc}= Run And Return Rc docker tag hello-world ${ip}/test${d}2/busybox:latest - Log ${rc} - Should Be Equal As Integers ${rc} 0 - ${rc}= Run And Return Rc docker push ${ip}/test${d}1/hello-world:latest - Log ${rc} - Should Be Equal As Integers ${rc} 0 - ${rc}= Run And Return Rc docker push ${ip}/test${d}2/busybox:latest - Log ${rc} - Should Be Equal As Integers ${rc} 0 - - Init Chrome Driver - Go To http://localhost - Sleep 2 - ${title}= Get Title - Should Be Equal ${title} Harbor - Sign In Harbor %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Sleep 2 - Wait Until Page Contains test${d}1 - Wait Until Page Contains test${d}2 - Click Element xpath=/html/body/harbor-app/harbor-shell/clr-main-container/div/nav/section/a[2] - Sleep 2 - Click Element xpath=/html/body/harbor-app/harbor-shell/clr-main-container/div/nav/section/a[1] - Sleep 2 - Click Element xpath=/html/body/harbor-app/harbor-shell/clr-main-container/div/div/project/div/div/list-project/clr-datagrid/div/div/div[2]/clr-dg-row[1]/clr-dg-row-master/clr-dg-cell[1]/a - Sleep - Wait Until Page Contains test${d}1/hello-world - Click Element xpath=/html/body/harbor-app/harbor-shell/clr-main-container/div/div/project-detail/nav/ul/li[2]/a - Sleep 2 - Wait Until Page Contains tester${d} diff --git a/tests/robot-cases/Group3-RBAC/3-01-DB-user-manage-project-members.robot b/tests/robot-cases/Group3-RBAC/3-01-DB-user-manage-project-members.robot deleted file mode 100644 index 5bc3a3caf..000000000 --- a/tests/robot-cases/Group3-RBAC/3-01-DB-user-manage-project-members.robot +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Manage Project Member -Resource ../../resources/Util.robot -Default Tags regression - -Test Case - Manage Project Member - Init Chrome Driver - ${d}= Get current Date result_format=%m%s - ${rc} ${ip}= run and return rc and output ip add s eth0|grep "inet "|awk '{print $2}'|awk -F "/" '{print $1}' - log to console ${ip} - Create An New User ${HARBOR_URL} username=usera${d} email=usera${d}@vmware.com realname=usera${d} newPassword=Test1@34 comment=harbor - Logout Harbor - Create An New User ${HARBOR_URL} username=userb${d} email=userb${d}@vmware.com realname=userb${d} newPassword=Test1@34 comment=harbor - Logout Harbor - Create An New User ${HARBOR_URL} username=userc${d} email=userc${d}@vmware.com realname=userc${d} newPassword=Test1@34 comment=harbor - Logout Harbor - Sign In Harbor ${HARBOR_URL} usera${d} Test1@34 - #create project - Create An New Project project${d} - #verify can not change role - Mouse down xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Mouse up xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Sleep 1 - click element xpath=//project-detail//li[2] - page should not contain element xpath=//project-detail//clr-dg-cell//clr-dg-action-overflow - Logout Harbor - #login console as usera and push - ${rc}= run and return rc docker pull hello-world - ${rc} ${output}= run and return rc and output docker login -u usera${d} -p Test1@34 ${ip} - ${rc}= run and return rc docker tag hello-world ${d}/project${d}/hello-world - ${rc}= run and return rc docker push ${d}/project${d}/hello-world - ${rc}= run and return rc docker logout ${d} - #logout change userb and pull push - ${rc} ${output}= run and return rc and output docker login -u userb${d} -p Test1@34 ${ip} - ${rc}= run and return rc docker tag hello-world ${d}/project${d}/bbbbb - ${rc}= run and return rc docker pull ${ip}/project${d}/hello-world - should not be equal as integers ${rc} 0 - ${rc}= run and return rc docker push ${ip}/project${d}/bbbbb - should not be equal as integers ${rc} 0 - #login ui as b - Sign In Harbor ${HARBOR_URL} userb${d} Test1@34 - page should not contain element xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Logout Harbor - #login as a - Sign In Harbor ${HARBOR_URL} usera${d} Test1@34 - Mouse down xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Mouse up xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Sleep 1 - click element xpath=//project-detail//li[2] - #click add member - click element xpath=//project-detail//button//clr-icon - Sleep 1 - input text xpath=//add-member//input[@id="member_name"] userb${d} - #select guest - Mouse down xpath=//project-detail//form//input[@id="checkrads_guest"] - Mouse up xpath=//project-detail//form//input[@id="checkrads_guest"] - click button xpath=//project-detail//add-member//button[2] - Logout Harbor - #sign in as b - Sign In Harbor ${HARBOR_URL} userb${d} Test1@34 - #step 12 - page should contain element xpath=//clr-dg-cell//a[contains(.,'project${d}')] - #step 13 - Mouse down xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Mouse up xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Sleep 1 - click element xpath=//project-detail//li[2] - sleep 1 - #page should contain element xpath=//project-detail//clr-dg-cell//clr-dg-action-overflow[@hidden=""] - xpath should match x times //project-detail//clr-dg-action-overflow[@hidden=""] 2 - #step 14 - page should not contain element xpath=//project-detail//button//clr-icon - ${rc} ${output}= run and return rc and output docker login -u userb${d} -p Test1@34 ${ip} - #step 15 - ${rc}= run and return rc docker pull ${ip}/project${d}/hello-world - #step 16 - ${rc}= run and return rc docker push ${ip}/project${d}/bbbbb - should not be equal as integers ${rc} 0 - Logout Harbor - Sign In Harbor ${HARBOR_URL} usera${d} Test1@34 - #change userb to developer - Mouse down xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Mouse up xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Sleep 1 - click element xpath=//project-detail//li[2] - sleep 1 - click element xpath=//project-detail//clr-dg-row-master[contains(.,'userb${d}')]//clr-dg-action-overflow - click element xpath=//project-detail//clr-dg-row-master[contains(.,'userb${d}')]//clr-dg-action-overflow//button[contains(.,"Developer")] - Logout Harbor - Sign In Harbor ${HARBOR_URL} userb${d} Test1@34 - page should contain element xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Mouse down xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Mouse up xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Sleep 1 - click element xpath=//project-detail//li[2] - sleep 1 - #page should contain element xpath=//project-detail//clr-dg-cell//clr-dg-action-overflow[@hidden=""] - xpath should match x times //project-detail//clr-dg-action-overflow[@hidden=""] 2 - #step 20 - page should not contain element xpath=//project-detail//button//clr-icon - #step 21 - ${rc}= run and return rc docker login -u userb${d} -p Test1@34 ${ip} - ${rc}= run and return rc docker tag hello-world ${ip}/project${d}/hello-world:v1 - ${rc}= run and return rc docker push ${ip}/project${d}/hello-world:v1 - should be equal as integers ${rc} 0 - Logout Harbor - Sign In Harbor ${HARBOR_URL} usera${d} Test1@34 - #step 22 - #change userb to admin of project - Mouse down xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Mouse up xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Sleep 1 - click element xpath=//project-detail//li[2] - sleep 1 - click element xpath=//project-detail//clr-dg-row-master[contains(.,'userb${d}')]//clr-dg-action-overflow - click element xpath=//project-detail//clr-dg-row-master[contains(.,'userb${d}')]//clr-dg-action-overflow//button[contains(.,"Admin")] - Logout Harbor - Sign In Harbor ${HARBOR_URL} userb${d} Test1@34 - page should contain element xpath=//clr-dg-cell//a[contains(.,'project${d}')] - # add userc - Mouse down xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Mouse up xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Sleep 1 - click element xpath=//project-detail//li[2] - sleep 1 - click element xpath=//project-detail//button//clr-icon - input text xpath=//add-member//input[@id="member_name"] userc${d} - mouse down xpath=//project-detail//form//input[@id="checkrads_guest"] - mouse up xpath=//project-detail//form//input[@id="checkrads_guest"] - click button xpath=//project-detail//add-member//button[2] - sleep 1 - #step 25 verify b can change c role - page should contain element xpath=//project-detail//clr-dg-row-master[contains(.,'userc${d}')]//clr-dg-action-overflow - ${rc}= run and return rc docker login -u userb${d} -p Test1@34 ${ip} - ${rc}= run and return rc docker tag hello-world ${ip}/project${d}/hello-world:v2 - ${rc}= run and return rc docker push ${ip}/project${d}/hello-world:v2 - #should be equal as integers ${rc} 0 - Logout Harbor - #step 27 remove b from project - Sign In Harbor ${HARBOR_URL} usera${d} Test1@34 - Mouse down xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Mouse up xpath=//clr-dg-cell//a[contains(.,'project${d}')] - Sleep 1 - click element xpath=//project-detail//li[2] - sleep 1 - click element xpath=//project-detail//clr-dg-row-master[contains(.,'userb${d}')]//clr-dg-action-overflow - click element xpath=//project-detail//clr-dg-cell//clr-dg-action-overflow//button[contains(.,"Delete")] - sleep 1 - click element xpath=//confiramtion-dialog//button[2] - sleep 1 - #step28 - ${rc}= run and return rc docker login -u userb${d} -p Test1@34 ${ip} - ${rc}= run and return rc docker pull ${ip}/project${d}/hello-world - should not be equal as integers ${rc} 0 - #step 29 - ${rc}= run and return rc docker logout ${ip} - #step 30 - ${rc}= run and return rc docker login -u userc${d} -p Test1@34 ${ip} - ${rc}= run and return rc docker pull ${ip}/project${d}/hello-world - should be equal as integers ${rc} 0 - Close Browser \ No newline at end of file diff --git a/tests/robot-cases/Group3-RBAC/3-02-DB-user-manage-project-publicity.robot b/tests/robot-cases/Group3-RBAC/3-02-DB-user-manage-project-publicity.robot deleted file mode 100644 index 4cd827561..000000000 --- a/tests/robot-cases/Group3-RBAC/3-02-DB-user-manage-project-publicity.robot +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Manage project publicity -Resource ../../resources/Util.robot -Default Tags regression - -Test Case - Manage project publicity - #Start Docker Daemon Locally - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - ${rc} ${ip}= run and return rc and output ip a s eth0|grep "inet "|awk '{print $2}'|awk -F "/" '{print $1}' - Log to console ${ip} - - Create An New User url=${HARBOR_URL} username=usera${d} email=usera${d}@vmware.com realname=usera${d} newPassword=Test1@34 comment=harbor - Logout Harbor - Create An New User url=${HARBOR_URL} username=userb${d} email=userb${d}@vmware.com realname=userb${d} newPassword=Test1@34 comment=harbor - Logout Harbor - - Sign In Harbor ${HARBOR_URL} usera${d} Test1@34 - Create An New Public Project project${d} - - Push image ${ip} usera${d} Test1@34 project${d} hello-world:latest - Pull image ${ip} userb${d} Test1@34 project${d} hello-world:latest - - Logout Harbor - Sign In Harbor ${HARBOR_URL} userb${d} Test1@34 - Project Should Display project${d} - Search Private Projects - Project Should Not Display project${d} - - Logout Harbor - Sign In Harbor ${HARBOR_URL} usera${d} Test1@34 - Make Project Private project${d} - - Logout Harbor - Sign In Harbor ${HARBOR_URL} userb${d} Test1@34 - Project Should Not Display project${d} - Cannot Pull image ${ip} usera${d} Test1@34 project${d} hello-world:latest - - Logout Harbor - Sign In Harbor ${HARBOR_URL} usera${d} Test1@34 - Make Project Public project${d} - - Logout Harbor - Sign In Harbor ${HARBOR_URL} userb${d} Test1@34 - Project Should Display project${d} diff --git a/tests/robot-cases/Group13-Upgrade/data.json b/tests/robot-cases/Group3-Upgrade/data.json similarity index 100% rename from tests/robot-cases/Group13-Upgrade/data.json rename to tests/robot-cases/Group3-Upgrade/data.json diff --git a/tests/robot-cases/Group13-Upgrade/prepare.py b/tests/robot-cases/Group3-Upgrade/prepare.py similarity index 100% rename from tests/robot-cases/Group13-Upgrade/prepare.py rename to tests/robot-cases/Group3-Upgrade/prepare.py diff --git a/tests/robot-cases/Group13-Upgrade/sign_image.sh b/tests/robot-cases/Group3-Upgrade/sign_image.sh similarity index 100% rename from tests/robot-cases/Group13-Upgrade/sign_image.sh rename to tests/robot-cases/Group3-Upgrade/sign_image.sh diff --git a/tests/robot-cases/Group13-Upgrade/verify.robot b/tests/robot-cases/Group3-Upgrade/verify.robot similarity index 100% rename from tests/robot-cases/Group13-Upgrade/verify.robot rename to tests/robot-cases/Group3-Upgrade/verify.robot diff --git a/tests/robot-cases/Group4-logging/4-01-DB-user-view-logs.robot b/tests/robot-cases/Group4-logging/4-01-DB-user-view-logs.robot deleted file mode 100644 index 75ec3a7fa..000000000 --- a/tests/robot-cases/Group4-logging/4-01-DB-user-view-logs.robot +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation User View Logs -Resource ../../resources/Util.robot -Default Tags regression - -Test Case - User View Logs - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - - Create An New Project With New User url=${HARBOR_URL} username=tester${d} email=tester${d}@vmware.com realname=tester${d} newPassword=Test1@34 comment=harbor projectname=project${d} public=true - - Push image ${ip} tester${d} Test1@34 project${d} busybox:latest - Pull image ${ip} tester${d} Test1@34 project${d} busybox:latest - - Go Into Project project${d} - Delete Repo project${d} - - Go To Project Log - Advanced Search Should Display - - Do Log Advanced Search - Close Browser \ No newline at end of file diff --git a/tests/robot-cases/Group5-OVA-install-config/5-00-OVA-BAT.robot b/tests/robot-cases/Group5-OVA-install-config/5-00-OVA-BAT.robot deleted file mode 100644 index ba58e008f..000000000 --- a/tests/robot-cases/Group5-OVA-install-config/5-00-OVA-BAT.robot +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Harbor BATs -Resource ../../resources/Util.robot -Default Tags OVA - -*** Test Cases *** -Test Case - Deploy OVA - Deploy Harbor-OVA To Test Server %{DHCP} %{PROTOCOL} False %{USER} %{PASSWORD} ${ova_url} %{HOST} %{DATASTORE} %{CLUSTER} %{DATACENTER} - -Test Case - Sign With Admin Modified Pwd - Open Connection %{HARBOR_IP} - Login root ova-test-root-pwd - SSHLibrary.Get File /data/ca_download/harbor_ca.crt - Close All Connections - Generate Certificate Authority For Chrome %{HARBOR_PASSWORD} - Init Chrome Driver - Sign In Harbor https://%{HARBOR_IP} admin %{HARBOR_ADMIN_PASSWORD} - Close Browser - -Test Case - Push Image - Init Chrome Driver - Start Docker Daemon Locally - ${d}= Get Current Date result_format=%m%s - Create An New User url=https://%{HARBOR_IP} username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - Create An New Project test${d} - - Push image %{HARBOR_IP} tester${d} Test1@34 test${d} hello-world:latest - Go Into Project test${d} - Wait Until Page Contains test${d}/hello-world - -Test Case - OVA reboot - Reboot VM harbor-unified-ova-integration-test - Wait for Harbor Ready %{protocol} %{HARBOR_IP} - -Test Case - OVA reset - Reset VM harbor-unified-ova-integration-test - Wait for Harbor Ready %{protocol} %{HARBOR_IP} diff --git a/tests/robot-cases/Group7-Replication/7-01-Proj-replication-rules-add.robot b/tests/robot-cases/Group7-Replication/7-01-Proj-replication-rules-add.robot deleted file mode 100644 index a7cb85ea7..000000000 --- a/tests/robot-cases/Group7-Replication/7-01-Proj-replication-rules-add.robot +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Harbor BATs -Resource ../../resources/Util.robot -Default Tags Bundle - -*** Test Cases *** -Test Case - Create An Replication Rule New Endpoint - Init Chrome Driver - ${d}= Get current date result_format=%m%s - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Create An New Project project${d} - Go Into Project project${d} - Switch To Replication - Create An New Rule With New Endpoint policy_name=test_policy_${d} policy_description=test_description destination_name=test_destination_name_${d} destination_url=test_destination_url_${d} destination_username=test_destination_username destination_password=test_destination_password - Close Browser diff --git a/tests/robot-cases/Group8-Configuration/8-01-edit-authentacation.robot b/tests/robot-cases/Group8-Configuration/8-01-edit-authentacation.robot deleted file mode 100644 index 28a01d689..000000000 --- a/tests/robot-cases/Group8-Configuration/8-01-edit-authentacation.robot +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Resource ../../resources/Uitl.robot -suite setup Start Docker Daemon Locally -default tags regression - -*** Test Cases *** -Test Case - Edit authentication - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Sign In Harbor admin Harbor12345 - Click Element xpath=//clr-main-container//nav//ul/li[3] - Click Element xpath=//select[@id="authMode"] - Click Element xpath=//select[@id="authMode"]//option[@value="ldap_auth"] - Sleep 1 - Input Text xpath=//input[@id="ldapUrl"] - Input Text xpath=//input[@id="ldapSearchDN"] - Input Text xpath=//input[@id="ldapSearchPwd"] - Input Text xpath=//input[@id="ldapUid"] - #scope keep subtree - #click save - Click Button xpath=//config//div/button[1] - Logout Harbor - #check can change back to db - Sign In Harbor admin Harbor12345 - Click Element xpath=//clr-main-container//nav//ul/li[3] - Page Should Not Contain Element xpath=//select[@disabled=''] - Logout Harbor - #signin ldap user - Sign In Harbor user001 user001 - Logout Harbor - #sign in as admin - Sign In Harbor admin Harbor12345 - Click Element xpath=//clr-main-container//nav//ul/li[3] - Page Should Contain Element xpath=//select[@disabled=''] - - #clean database and restart harbor - Down Harbor - ${rc} ${output}= Run And Return Rc And Output rm -rf /data - Prepare - Up Harbor - - Create An New User username=test${d} email=test${d}@vmware.com realname=test{d} newPassword=Test1@34 comment=harbor - Sign In Harbor admin Harbor12345 - Click Element xpath=//clr-main-containter//nav//ul/li[3] - Page Should Contain Element xpath=//select[@disabled=''] - Sleep 1 - Close Browser diff --git a/tests/robot-cases/Group8-Configuration/8-02-edit-project-creat.robot b/tests/robot-cases/Group8-Configuration/8-02-edit-project-creat.robot deleted file mode 100644 index 3ae49bdd6..000000000 --- a/tests/robot-cases/Group8-Configuration/8-02-edit-project-creat.robot +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -resource ../../resources/Util.robot -suite setup Start Docker Daemon Locally -default tags regression - -*** Test cases *** -Test Case - Edit Project Creation - # create normal user and login - Init Chrome Driver - ${d}= Get Current Date result_format=%m%s - Create An New User username=tester${d} email=tester${d}@vmware.com realname=harbortest newPassword=Test1@34 comment=harbortest - #check project creation - Page Should Contain Element xpath=//project//div[@class="option-left"]/button - #logout and login admin - Logout Harbor - Sign In Harbor admin Harbor12345 - #set limit to admin only - Click Element xpath=//clr-main-container//nav//ul/li[3] - Click Element xpath=//select[@id="proCreation"] - Click Element xpath=//select[@id="proCreation"]//option[@value="adminonly"] - Click Element xpath=//config//div/button[1] - #logout and login normal user - Logout Harbor - Sign In Harbor tester${d} Test1@34 - #check if can create project - Page Should Not Contain Element xpath=//project//div[@class="option-left"]/button - Logout Harbor - Sign In Harbor admin Harbor12345 - Click Element xpath=//clr-main-container//nav//ul/li[3] - Click Element xpath=//select[@id="proCreation"] - Click Element xpath=//select[@id="proCreation"]//option[@value="everyone"] - Click Element xpath=//config//div/button[1] - Sleep 2 - Close browser diff --git a/tests/robot-cases/Group8-Configuration/8-03-edit-self-registration.robot b/tests/robot-cases/Group8-Configuration/8-03-edit-self-registration.robot deleted file mode 100644 index caceb2fad..000000000 --- a/tests/robot-cases/Group8-Configuration/8-03-edit-self-registration.robot +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Resource ../../resources/Util.robot -Suite Setup Start Docker Daemon Locally -Default Tags regression - -*** Test Cases *** -Test Case - Edit Self-Registration - Init Chrome Driver - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Disable Self Reg - Logout Harbor - - Sign Up Should Not Display - - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Switch To Configure - Self Reg Should Be Disabled - Sleep 1 - - #restore setting - Enable Self Reg - Close Browser diff --git a/tests/robot-cases/Group8-Configuration/8-04-edit-verify-remote-cert.robot b/tests/robot-cases/Group8-Configuration/8-04-edit-verify-remote-cert.robot deleted file mode 100644 index d436b4cde..000000000 --- a/tests/robot-cases/Group8-Configuration/8-04-edit-verify-remote-cert.robot +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Resource ../../resources/Util.robot -Suite Setup Start Docker Daemon Locally -Default Tags regression - -*** Test Cases *** -Test Case - Edit Verify Remote Cert - Init Chrome Driver - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - - Switch To System Replication - Check Verify Remote Cert - - Logout Harbor - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - - Switch To System Replication - Should Verify Remote Cert Be Enabled - - #restore setting - Check Verify Remote Cert - Close Browser diff --git a/tests/robot-cases/Group8-Configuration/8-05-edit-email-settings.robot b/tests/robot-cases/Group8-Configuration/8-05-edit-email-settings.robot deleted file mode 100644 index 55757c425..000000000 --- a/tests/robot-cases/Group8-Configuration/8-05-edit-email-settings.robot +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Resource ../../resources/Util.robot -Suite setup Start Docker Daemon Locally -default tags regression - -*** Test Cases *** -Test Case - Edit Email Settings - Init Chrome Driver - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - - Switch To Email - Config Email - - Logout Harbor - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - - Switch To Email - Verify Email - - Close Browser diff --git a/tests/robot-cases/Group8-Configuration/8-06-edit-token-expire.robot b/tests/robot-cases/Group8-Configuration/8-06-edit-token-expire.robot deleted file mode 100644 index 5be1ef96f..000000000 --- a/tests/robot-cases/Group8-Configuration/8-06-edit-token-expire.robot +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Resource ../../resources/Util.robot -Suite Setup Start Docker Daemon Locally -Default Tags regression - -*** Test Cases *** -Test Case - Edit Token Expire - Init Chrome Driver - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Switch To System Settings - Modify Token Expiration 20 - Logout Harbor - - Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} - Switch To System Settings - Token Must Be Match 20 - - #reset to default - Modify Token Expiration 30 - Close Browser diff --git a/tests/robot-cases/Group9-Content-trust/9-21-admin-push-signed-images.robot b/tests/robot-cases/Group9-Content-trust/9-21-admin-push-signed-images.robot deleted file mode 100644 index 8902973c3..000000000 --- a/tests/robot-cases/Group9-Content-trust/9-21-admin-push-signed-images.robot +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2017 VMware, Inc. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -*** Settings *** -Documentation Admin Push Signed Image -Resource ../../resources/Util.robot -Default Tags regression - -*** Test Cases *** -Test Case - Admin Push Signed Image - Install Harbor to Test Server - Enabe Notary Client - - ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group9-Content-trust/notary-push-image.sh - Log ${output} - Should Be Equal As Integers ${rc} 0 - - ${rc} ${ip}= Run And Return Rc And Output ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}' - Log ${ip} - - ${rc} ${output}= Run And Return Rc And Output curl -u admin:Harbor12345 -s --insecure -H "Content-Type: application/json" -X GET "https://${ip}/api/repositories/library/tomcat/signatures" - Log To Console ${output} - Should Be Equal As Integers ${rc} 0 - Should Contain ${output} sha256 diff --git a/tests/robot-cases/Group9-Content-trust/9-29-notary-inteceptor.robot b/tests/robot-cases/Group9-Content-trust/9-29-notary-inteceptor.robot deleted file mode 100644 index 2fe0943cc..000000000 --- a/tests/robot-cases/Group9-Content-trust/9-29-notary-inteceptor.robot +++ /dev/null @@ -1,26 +0,0 @@ -#Test Case - Notary Inteceptor -# ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group9-Content-trust/notary-pull-image-inteceptor.sh -# Log To Console ${output} -# Should Be Equal As Integers ${rc} 0 -# -# Down Harbor with_notary=true -# ${rc} ${output}= Run And Return Rc And Output echo "PROJECT_CONTENT_TRUST=1\n" >> ./make/common/config/ui/env -# Log To Console ${output} -# Should Be Equal As Integers ${rc} 0 -# ${rc} ${output}= Run And Return Rc And Output cat ./make/common/config/ui/env -# -# Log To Console ${output} -# Up Harbor with_notary=true -# ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group9-Content-trust/notary-pull-image-inteceptor.sh -# Log To Console ${output} -# -# Down Harbor with_notary=true -# ${rc} ${output}= Run And Return Rc And Output sed "s/^PROJECT_CONTENT_TRUST=1.*/PROJECT_CONTENT_TRUST=0/g" -i ./make/common/config/ui/env -# Log To Console ${output} -# Should Be Equal As Integers ${rc} 0 -# ${rc} ${output}= Run And Return Rc And Output cat ./make/common/config/ui/env -# -# Up Harbor with_notary=true -# ${rc} ${output}= Run And Return Rc And Output ./tests/robot-cases/Group9-Content-trust/notary-pull-image-inteceptor.sh -# Log To Console ${output} -# Should Be Equal As Integers ${rc} 0 \ No newline at end of file diff --git a/tests/robot-cases/Group9-Content-trust/notary-pull-image-inteceptor.sh b/tests/robot-cases/Group9-Content-trust/notary-pull-image-inteceptor.sh deleted file mode 100755 index 4a6da507f..000000000 --- a/tests/robot-cases/Group9-Content-trust/notary-pull-image-inteceptor.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'` -export DOCKER_CONTENT_TRUST=1 -export DOCKER_CONTENT_TRUST_SERVER=https://$IP:4443 - -docker login -u admin -p Harbor12345 $IP -docker pull $IP/library/tomcat:latest