2017-08-07 08:02:38 +02:00
|
|
|
# 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 ***
|
|
|
|
Create An New Rule With New Endpoint
|
2017-09-07 12:29:05 +02:00
|
|
|
[Arguments] ${policy_name} ${policy_description} ${destination_name} ${destination_url} ${destination_username} ${destination_password}
|
2018-01-03 06:41:31 +01:00
|
|
|
|
2017-12-21 04:00:12 +01:00
|
|
|
Click element ${new_name_xpath}
|
2017-08-07 08:02:38 +02:00
|
|
|
Sleep 2
|
|
|
|
|
2017-09-07 12:29:05 +02:00
|
|
|
Input Text xpath=${policy_name_xpath} ${policy_name}
|
2017-08-07 08:02:38 +02:00
|
|
|
Input Text xpath=${policy_description_xpath} ${policy_description}
|
2017-09-07 12:29:05 +02:00
|
|
|
|
2017-12-21 04:00:12 +01:00
|
|
|
#Click element xpath=${policy_enable_checkbox}
|
|
|
|
#enable attribute is droped in new ui
|
2017-11-30 04:05:44 +01:00
|
|
|
|
2017-08-07 08:02:38 +02:00
|
|
|
Click element xpath=${policy_endpoint_checkbox}
|
2017-09-07 12:29:05 +02:00
|
|
|
|
2017-11-30 04:05:44 +01:00
|
|
|
Click element xpath=//*[@id="ruleBtnOk"]
|
2017-08-30 06:33:55 +02:00
|
|
|
Sleep 5
|
2017-09-07 12:29:05 +02:00
|
|
|
Capture Page Screenshot rule_${policy_name}.png
|
|
|
|
Wait Until Page Contains ${policy_name}
|
2018-01-03 06:41:31 +01:00
|
|
|
|
2017-09-07 12:29:05 +02:00
|
|
|
Wait Until Page Contains ${policy_description}
|
2017-12-21 04:00:12 +01:00
|
|
|
Wait Until Page Contains ${destination_name}
|
2018-01-03 06:41:31 +01:00
|
|
|
|