fix proxy cache e2e test

1. Add print in docker pull api;
2. Move proxy cache API to the front of case list.

Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
danfengliu 2020-12-02 16:52:57 +08:00
parent e2bc0a46e0
commit 8c3552993d
2 changed files with 5 additions and 5 deletions

View File

@ -114,7 +114,7 @@ class DockerAPI(object):
expected_error_message = None
ret = ""
try:
self.DCLIENT.pull(r'{}:{}'.format(image, _tag))
ret = self.DCLIENT.pull(r'{}:{}'.format(image, _tag))
return ret
except Exception as err:
if expected_error_message is not None:

View File

@ -21,6 +21,10 @@ Test Case - Garbage Collection
[Tags] gc
Harbor API Test ./tests/apitests/python/test_garbage_collection.py
Test Case - Proxy Cache
[Tags] proxy_cache
Harbor API Test ./tests/apitests/python/test_proxy_cache.py
Test Case - Add Private Project Member and Check User Can See It
[Tags] private_member
Harbor API Test ./tests/apitests/python/test_add_member_to_private_project.py
@ -145,10 +149,6 @@ Test Case - Replication From Dockerhub
[Tags] replic_dockerhub
Harbor API Test ./tests/apitests/python/test_replication_from_dockerhub.py
Test Case - Proxy Cache
[Tags] proxy_cache
Harbor API Test ./tests/apitests/python/test_proxy_cache.py
Test Case - Tag Immutability
[Tags] tag_immutability
Harbor API Test ./tests/apitests/python/test_tag_immutability.py