mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-02 08:39:44 +01:00
9e42f6d6d1
In Helm pipeline, harbor access address is by domain name instead of IP, so cert directory should be created by domain name. Signed-off-by: danfengliu <danfengl@vmware.com>
49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
# Copyright Project Harbor Authors
|
|
#
|
|
# 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 ***
|
|
|
|
*** Keywords ***
|
|
Assign User Admin
|
|
[Arguments] ${user}
|
|
Retry Element Click xpath=//harbor-user//hbr-filter//clr-icon
|
|
Input Text xpath=//harbor-user//hbr-filter//input ${user}
|
|
Sleep 2
|
|
#select checkbox
|
|
Retry Element Click //clr-dg-row[contains(.,'${user}')]//label
|
|
#click assign admin
|
|
Retry Element Click //*[@id='set-admin']
|
|
Sleep 1
|
|
|
|
Switch to User Tag
|
|
Retry Element Click xpath=${administration_user_tag_xpath}
|
|
Sleep 1
|
|
|
|
Administration Tag Should Display
|
|
Retry Wait Until Page Contains Element xpath=${administration_tag_xpath}
|
|
|
|
User Email Should Exist
|
|
[Arguments] ${email}
|
|
Sign In Harbor ${HARBOR_URL} %{HARBOR_ADMIN} %{HARBOR_PASSWORD}
|
|
Switch to User Tag
|
|
Retry Wait Until Page Contains Element xpath=//clr-dg-cell[contains(., '${email}')]
|
|
|
|
Add User Button Should Be Disabled
|
|
Sleep 1
|
|
Retry Wait Until Page Contains Element //button[contains(.,'New') and @disabled='']
|