mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-09 20:48:08 +02:00
74 lines
2.2 KiB
Plaintext
74 lines
2.2 KiB
Plaintext
|
# Copyright 2016-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 This resource provides any keywords related to the Harbor private registry appliance
|
||
|
Resource ../../resources/Util.robot
|
||
|
|
||
|
*** Variables ***
|
||
|
${HARBOR_VERSION} v1.1.1
|
||
|
|
||
|
*** Keywords ***
|
||
|
Sign In Harbor
|
||
|
[Arguments] ${url} ${user} ${pw}
|
||
|
Go To ${url}
|
||
|
Sleep 5
|
||
|
${title}= Get Title
|
||
|
Log To Console ${title}
|
||
|
Should Be Equal ${title} Harbor
|
||
|
Sleep 2
|
||
|
Input Text login_username ${user}
|
||
|
Input Text login_password ${pw}
|
||
|
Sleep 2
|
||
|
Click button css=.btn
|
||
|
sleep 5
|
||
|
Log To Console ${user}
|
||
|
Wait Until Page Contains ${user}
|
||
|
|
||
|
Sign Up Should Not Display
|
||
|
Page Should Not Contain Element xpath=${sign_up_button_xpath}
|
||
|
|
||
|
Create An New User
|
||
|
[Arguments] ${url} ${username} ${email} ${realname} ${newPassword} ${comment}
|
||
|
Go To ${url}
|
||
|
sleep 5
|
||
|
${title}= Get Title
|
||
|
Log To Console ${title}
|
||
|
Should Be Equal ${title} Harbor
|
||
|
${d}= Get Current Date result_format=%m%s
|
||
|
Sleep 5
|
||
|
Click Element xpath=${sign_up_for_an_account_xpath}
|
||
|
sleep 3
|
||
|
Input Text xpath=${username_xpath} ${username}
|
||
|
sleep 1
|
||
|
Input Text xpath=${email_xpath} ${email}
|
||
|
sleep 1
|
||
|
Input Text xpath=${realname_xpath} ${realname}
|
||
|
sleep 1
|
||
|
Input Text xpath=${newPassword_xpath} ${newPassword}
|
||
|
sleep 1
|
||
|
Input Text xpath=${confirmPassword_xpath} ${newPassword}
|
||
|
sleep 1
|
||
|
Input Text xpath=${comment_xpath} ${comment}
|
||
|
sleep 2
|
||
|
Click button xpath=${signup_xpath}
|
||
|
sleep 5
|
||
|
Input Text login_username ${username}
|
||
|
Input Text login_password ${newPassword}
|
||
|
sleep 2
|
||
|
Click button css=.btn
|
||
|
sleep 5
|
||
|
Wait Until Page Contains ${username}
|
||
|
Sleep 3
|