harbor/tests/apitests/python/library
Daniel Jiang 2064a1cd6d Switch to basic authentication for registry
1. Add basic authorizer for registry which modify the request
to add basic authorization header to request based on configuration.
2. Set basic auth header for proxy when accessing registry
3. Switche the registry to use basic auth by default and use the basic
authorizer to access Harbor.
4. Make necessary change to test cases, particularly
"test_robot_account.py" and "docker_api.py", because the error is
changed after siwtched to basic auth from token auth.  #10604 is opened
to track the follow up work.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2020-01-31 21:46:47 +09:00
..
__init__.py add new api tests (#6127) 2018-10-31 13:13:31 +08:00
base.py build(clair): internal clair adapter when install with clair 2019-10-17 12:00:51 +08:00
chart.py Add API test case scan all images and test case API test case list helm charts. (#6388) 2018-12-03 17:05:06 +08:00
configurations.py Add API test case assign system admin role. (#6413) 2018-12-04 12:26:12 +08:00
docker_api.py Switch to basic authentication for registry 2020-01-31 21:46:47 +09:00
Harbor.py After helm cli test was added to nightly, ca was get by reading from local file, but in helm nighly test, ca file was not in local, it has to be got from harbor api. 2019-08-06 11:28:54 +08:00
label.py Check the existence of name when creating replication rule and fix bugs in testing library (#6381) 2018-11-30 13:32:20 +08:00
project.py add expiration data time when to create a robot account 2020-01-03 13:47:06 +08:00
registry.py Since harbor 1.8 released, API test for replication was not update yet, so in this PR, replicaiton test will be adapt for harbor 1.8. 2019-08-08 17:06:37 +08:00
replication.py Since harbor 1.8 released, API test for replication was not update yet, so in this PR, replicaiton test will be adapt for harbor 1.8. 2019-08-08 17:06:37 +08:00
repository.py build(clair): internal clair adapter when install with clair 2019-10-17 12:00:51 +08:00
retention.py add swagger for tag retention 2019-09-06 17:27:20 +08:00
sign.py Add API test case sign image back to travis, despite codacy block it when pulling a pr. 2019-08-16 01:26:36 -07:00
system.py add e2e test case for project quota 2019-09-15 22:16:11 +08:00
user.py Fix admin permission not revoked when removed from LDAP admin group 2019-12-20 13:12:22 +08:00