From 8c3552993d98905a50ca75338023131527492ffc Mon Sep 17 00:00:00 2001 From: danfengliu Date: Wed, 2 Dec 2020 16:52:57 +0800 Subject: [PATCH] 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 --- tests/apitests/python/library/docker_api.py | 2 +- tests/robot-cases/Group0-BAT/API_DB.robot | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/apitests/python/library/docker_api.py b/tests/apitests/python/library/docker_api.py index 2f892ca4c..656d00a42 100644 --- a/tests/apitests/python/library/docker_api.py +++ b/tests/apitests/python/library/docker_api.py @@ -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: diff --git a/tests/robot-cases/Group0-BAT/API_DB.robot b/tests/robot-cases/Group0-BAT/API_DB.robot index 1c5a50c7c..7d62ee216 100644 --- a/tests/robot-cases/Group0-BAT/API_DB.robot +++ b/tests/robot-cases/Group0-BAT/API_DB.robot @@ -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