mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 04:05:40 +01:00
Merge pull request #5724 from wy65701436/deprecate-tests
Deprecate unused robot cases
This commit is contained in:
commit
4965fc8df5
@ -54,7 +54,7 @@ Test Case - Notary Basic Verfication
|
|||||||
Log ${output}
|
Log ${output}
|
||||||
|
|
||||||
Push image ${ip} %{HARBOR_ADMIN} %{HARBOR_PASSWORD} library hello-world:latest
|
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}
|
Log ${output}
|
||||||
Should Be Equal As Integers ${rc} 0
|
Should Be Equal As Integers ${rc} 0
|
||||||
|
|
||||||
|
@ -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}
|
|
@ -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
|
|
@ -616,7 +616,7 @@ Test Case - Admin Push Signed Image
|
|||||||
Log ${output}
|
Log ${output}
|
||||||
|
|
||||||
Push image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library hello-world:latest
|
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}
|
Log ${output}
|
||||||
Should Be Equal As Integers ${rc} 0
|
Should Be Equal As Integers ${rc} 0
|
||||||
|
|
@ -641,7 +641,7 @@ Test Case - Admin Push Signed Image
|
|||||||
Log ${output}
|
Log ${output}
|
||||||
|
|
||||||
Push image ${ip} ${HARBOR_ADMIN} ${HARBOR_PASSWORD} library hello-world:latest
|
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}
|
Log ${output}
|
||||||
Should Be Equal As Integers ${rc} 0
|
Should Be Equal As Integers ${rc} 0
|
||||||
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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}
|
|
@ -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
|
|
@ -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}
|
|
@ -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
|
|
@ -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}
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user