2018-09-19 18:57:15 +02:00
|
|
|
# Copyright Project Harbor Authors
|
2017-08-07 08:02:38 +02:00
|
|
|
#
|
|
|
|
# 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 ***
|
|
|
|
Library OperatingSystem
|
|
|
|
Library String
|
|
|
|
Library Collections
|
|
|
|
Library requests
|
|
|
|
Library Process
|
|
|
|
Library SSHLibrary 1 minute
|
|
|
|
Library DateTime
|
2018-10-11 09:04:57 +02:00
|
|
|
Library Selenium2Library 60 10
|
2018-07-25 11:46:09 +02:00
|
|
|
Library JSONLibrary
|
2017-08-07 08:02:38 +02:00
|
|
|
Resource Nimbus-Util.robot
|
|
|
|
Resource Vsphere-Util.robot
|
|
|
|
Resource VCH-Util.robot
|
|
|
|
Resource Drone-Util.robot
|
|
|
|
Resource Github-Util.robot
|
|
|
|
Resource Harbor-Util.robot
|
|
|
|
Resource Harbor-Pages/HomePage.robot
|
|
|
|
Resource Harbor-Pages/HomePage_Elements.robot
|
|
|
|
Resource Harbor-Pages/Project.robot
|
|
|
|
Resource Harbor-Pages/Project_Elements.robot
|
|
|
|
Resource Harbor-Pages/Project-Members.robot
|
|
|
|
Resource Harbor-Pages/Project-Members_Elements.robot
|
2018-01-23 06:04:19 +01:00
|
|
|
Resource Harbor-Pages/Project-Repository.robot
|
|
|
|
Resource Harbor-Pages/Project-Repository_Elements.robot
|
2018-07-03 17:42:26 +02:00
|
|
|
Resource Harbor-Pages/Project-Config.robot
|
2018-09-04 09:08:51 +02:00
|
|
|
Resource Harbor-Pages/Project-Helmcharts.robot
|
|
|
|
Resource Harbor-Pages/Project-Helmcharts_Elements.robot
|
2018-11-15 11:57:30 +01:00
|
|
|
Resource Harbor-Pages/Project-Retag.robot
|
|
|
|
Resource Harbor-Pages/Project-Retag_Elements.robot
|
2017-08-07 08:02:38 +02:00
|
|
|
Resource Harbor-Pages/Replication.robot
|
|
|
|
Resource Harbor-Pages/Replication_Elements.robot
|
|
|
|
Resource Harbor-Pages/UserProfile.robot
|
|
|
|
Resource Harbor-Pages/Administration-Users.robot
|
|
|
|
Resource Harbor-Pages/Administration-Users_Elements.robot
|
|
|
|
Resource Harbor-Pages/Configuration.robot
|
|
|
|
Resource Harbor-Pages/Configuration_Elements.robot
|
2018-01-12 03:42:17 +01:00
|
|
|
Resource Harbor-Pages/ToolKit.robot
|
2018-07-19 11:02:09 +02:00
|
|
|
Resource Harbor-Pages/ToolKit_Elements.robot
|
2018-03-12 07:20:37 +01:00
|
|
|
Resource Harbor-Pages/Vulnerability.robot
|
2018-03-28 10:45:49 +02:00
|
|
|
Resource Harbor-Pages/LDAP-Mode.robot
|
2018-07-25 11:46:09 +02:00
|
|
|
Resource Harbor-Pages/Verify.robot
|
2017-08-07 08:02:38 +02:00
|
|
|
Resource Docker-Util.robot
|
|
|
|
Resource Admiral-Util.robot
|
|
|
|
Resource OVA-Util.robot
|
|
|
|
Resource Cert-Util.robot
|
|
|
|
Resource SeleniumUtil.robot
|
2018-01-23 06:04:19 +01:00
|
|
|
Resource Nightly-Util.robot
|
2018-11-02 10:06:22 +01:00
|
|
|
Resource APITest-Util.robot
|
|
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
Wait Unitl Vul Data Ready
|
|
|
|
[Arguments] ${url} ${timeout} ${interval}
|
|
|
|
${n}= Evaluate ${timeout}/${interval}
|
|
|
|
:FOR ${i} IN RANGE ${n}
|
|
|
|
\ Log Checking the vul data: ${i} ... console=True
|
|
|
|
\ ${rc} ${output}= Run And Return Rc And Output curl -k ${url}/api/systeminfo
|
|
|
|
\ Should Be Equal As Integers ${rc} 0
|
|
|
|
\ ${contains}= Run Keyword And Return Status Should Contain ${output} overall_last_update
|
|
|
|
\ Exit For Loop If ${contains}
|
|
|
|
\ Sleep ${interval}
|
|
|
|
Run Keyword If ${i+1}==${n} Fail The vul data is not ready
|