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-03-11 04:19:29 +01:00
|
|
|
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
|
2020-02-21 10:08:27 +01:00
|
|
|
Test Case - Delete a Repository of a Certain Project Created by Normal User
|
|
|
|
Harbor API Test ./tests/apitests/python/test_del_repo.py
|
2020-02-25 03:40:29 +01:00
|
|
|
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-02-25 03:40:29 +01:00
|
|
|
Test Case - Manage Project Member
|
|
|
|
Harbor API Test ./tests/apitests/python/test_manage_project_member.py
|
|
|
|
Test Case - Project Level Policy Content Trust
|
|
|
|
Harbor API Test ./tests/apitests/python/test_project_level_policy_content_trust.py
|
2020-03-19 07:56:37 +01:00
|
|
|
Test Case - User View Logs
|
|
|
|
Harbor API Test ./tests/apitests/python/test_user_view_logs.py
|
2020-03-11 08:00:52 +01:00
|
|
|
Test Case - List Helm Charts
|
|
|
|
Harbor API Test ./tests/apitests/python/test_list_helm_charts.py
|
2020-02-25 03:40:29 +01:00
|
|
|
Test Case - Assign Sys Admin
|
|
|
|
Harbor API Test ./tests/apitests/python/test_assign_sys_admin.py
|
2020-02-21 10:08:27 +01:00
|
|
|
Test Case - Copy Artifact Outside Project
|
|
|
|
Harbor API Test ./tests/apitests/python/test_copy_artifact_outside_project.py
|
2020-02-25 03:40:29 +01:00
|
|
|
Test Case - Robot Account
|
|
|
|
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-03-12 04:50:30 +01:00
|
|
|
Test Case - Project Quota
|
|
|
|
Harbor API Test ./tests/apitests/python/test_project_quota.py
|
2020-02-25 03:40:29 +01:00
|
|
|
Test Case - System Level CVE Whitelist
|
|
|
|
Harbor API Test ./tests/apitests/python/test_sys_cve_whitelists.py
|
|
|
|
Test Case - Project Level CVE Whitelist
|
|
|
|
Harbor API Test ./tests/apitests/python/test_project_level_cve_whitelist.py
|
|
|
|
Test Case - Tag Retention
|
|
|
|
Harbor API Test ./tests/apitests/python/test_retention.py
|
|
|
|
Test Case - Health Check
|
|
|
|
Harbor API Test ./tests/apitests/python/test_health_check.py
|
2020-03-01 10:57:40 +01:00
|
|
|
Test Case - Push Index By Docker Manifest
|
|
|
|
Harbor API Test ./tests/apitests/python/test_push_index_by_docker_manifest.py
|
2020-03-16 03:13:28 +01:00
|
|
|
Test Case - Push Chart By Helm3 Chart CLI
|
2020-03-04 09:08:03 +01:00
|
|
|
Harbor API Test ./tests/apitests/python/test_push_chart_by_helm3_chart_cli.py
|
2020-03-07 04:15:19 +01:00
|
|
|
Test Case - Push Cnab Bundle
|
|
|
|
Harbor API Test ./tests/apitests/python/test_push_cnab_bundle.py
|
2020-03-16 08:46:43 +01:00
|
|
|
Test Case - Create/Delete tag
|
|
|
|
Harbor API Test ./tests/apitests/python/test_create_delete_tag.py
|
2020-03-26 10:07:58 +01:00
|
|
|
Test Case - Scan Image
|
|
|
|
Harbor API Test ./tests/apitests/python/test_scan_image_artifact.py
|
|
|
|
Test Case - Scan All Images
|
|
|
|
Harbor API Test ./tests/apitests/python/test_system_level_scan_all.py
|