2018-09-19 11:49:43 +02:00
|
|
|
*** Settings ***
|
|
|
|
Documentation Harbor BATs
|
|
|
|
Resource ../../resources/APITest-Util.robot
|
|
|
|
Resource ../../resources/Docker-Util.robot
|
|
|
|
Library ../../apitests/python/library/Harbor.py ${SERVER_CONFIG}
|
|
|
|
Library OperatingSystem
|
|
|
|
Library String
|
|
|
|
Library Collections
|
|
|
|
Library requests
|
|
|
|
Library Process
|
|
|
|
Default Tags APIDB
|
|
|
|
|
|
|
|
*** Variables ***
|
|
|
|
${SERVER} ${ip}
|
|
|
|
${SERVER_URL} https://${SERVER}
|
|
|
|
${SERVER_API_ENDPOINT} ${SERVER_URL}/api
|
|
|
|
&{SERVER_CONFIG} endpoint=${SERVER_API_ENDPOINT} verify_ssl=False
|
|
|
|
|
|
|
|
*** Test Cases ***
|
2020-01-30 14:21:07 +01:00
|
|
|
# TODO uncomment this after re-implement the case
|
|
|
|
# Test Case - Garbage Collection
|
|
|
|
# Harbor API Test ./tests/apitests/python/test_garbage_collection.py
|
2018-10-31 06:13:31 +01:00
|
|
|
Test Case - Add Private Project Member and Check User Can See It
|
2018-11-01 11:26:04 +01:00
|
|
|
Harbor API Test ./tests/apitests/python/test_add_member_to_private_project.py
|
|
|
|
Test Case - Delete a Repository of a Certain Project Created by Normal User
|
|
|
|
Harbor API Test ./tests/apitests/python/test_del_repo.py
|
|
|
|
Test Case - Add a System Global Label to a Certain Tag
|
|
|
|
Harbor API Test ./tests/apitests/python/test_add_sys_label_to_tag.py
|
2020-02-02 06:04:13 +01:00
|
|
|
Test Case - Add Replication Rule
|
|
|
|
Harbor API Test ./tests/apitests/python/test_add_replication_rule.py
|
2018-11-14 09:23:44 +01:00
|
|
|
Test Case - Edit Project Creation
|
|
|
|
Harbor API Test ./tests/apitests/python/test_edit_project_creation.py
|
2020-01-27 20:31:18 +01:00
|
|
|
# TODO uncomment this after image scan work with basic auth - #10277
|
|
|
|
#Test Case - Scan Image
|
|
|
|
# Harbor API Test ./tests/apitests/python/test_scan_image.py
|
2018-11-20 07:24:13 +01:00
|
|
|
Test Case - Manage Project Member
|
2018-11-21 05:19:28 +01:00
|
|
|
Harbor API Test ./tests/apitests/python/test_manage_project_member.py
|
2020-01-22 11:28:08 +01:00
|
|
|
Test Case - Project Level Policy Content Trust
|
|
|
|
Harbor API Test ./tests/apitests/python/test_project_level_policy_content_trust.py
|
2020-01-27 20:31:18 +01:00
|
|
|
# TODO uncomment this after we move the accesslog away from registry notificaiton
|
|
|
|
# TODO potentially #10602 may also fix this.
|
|
|
|
# Test Case - User View Logs
|
|
|
|
# Harbor API Test ./tests/apitests/python/test_user_view_logs.py
|
2020-01-30 14:21:07 +01:00
|
|
|
# TODO uncomment this after making scan all work with OCI registry
|
|
|
|
# Test Case - Scan All Images
|
|
|
|
# Harbor API Test ./tests/apitests/python/test_scan_all_images.py
|
2020-02-07 08:04:25 +01:00
|
|
|
# TODO uncomment this after bump up chart API version to v2.0
|
|
|
|
# Test Case - List Helm Charts
|
|
|
|
# Harbor API Test ./tests/apitests/python/test_list_helm_charts.py
|
2018-12-04 05:26:12 +01:00
|
|
|
Test Case - Assign Sys Admin
|
2019-04-11 09:05:46 +02:00
|
|
|
Harbor API Test ./tests/apitests/python/test_assign_sys_admin.py
|
|
|
|
Test Case - Retag Image
|
2019-05-06 05:34:11 +02:00
|
|
|
Harbor API Test ./tests/apitests/python/test_retag.py
|
|
|
|
Test Case - Robot Account
|
2019-08-09 04:50:06 +02:00
|
|
|
Harbor API Test ./tests/apitests/python/test_robot_account.py
|
|
|
|
Test Case - Sign A Image
|
|
|
|
Harbor API Test ./tests/apitests/python/test_sign_image.py
|
2020-01-30 14:21:07 +01:00
|
|
|
# TODO uncomment this after making quota work with OCI registry
|
|
|
|
# Test Case - Project Quota
|
|
|
|
# Harbor API Test ./tests/apitests/python/test_project_quota.py
|
2019-09-04 07:52:56 +02:00
|
|
|
Test Case - System Level CVE Whitelist
|
|
|
|
Harbor API Test ./tests/apitests/python/test_sys_cve_whitelists.py
|
2019-09-05 12:02:53 +02:00
|
|
|
Test Case - Project Level CVE Whitelist
|
|
|
|
Harbor API Test ./tests/apitests/python/test_project_level_cve_whitelist.py
|
2019-09-03 09:52:41 +02:00
|
|
|
Test Case - Tag Retention
|
|
|
|
Harbor API Test ./tests/apitests/python/test_retention.py
|
2019-10-28 07:59:47 +01:00
|
|
|
Test Case - Health Check
|
|
|
|
Harbor API Test ./tests/apitests/python/test_health_check.py
|
2019-09-03 09:52:41 +02:00
|
|
|
|