mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-03 23:54:00 +01:00
894e0591bb
Add API test libraries which were based on swagger doc, it's including user and project , also add one scenario test case which is test_add_member_to_private_project to verify a user can see a project when the uesr is the member of it. Delete 2 old test case.Delete a quota. Signed-off-by: danfengliu <danfengl@vmware.com>
21 lines
663 B
Plaintext
21 lines
663 B
Plaintext
*** 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 ***
|
|
Test Case - Add Private Project Member and Check User Can See It
|
|
Harbor API Test ./tests/apitests/python/test_add_member_to_private_project.py |