[arvados] updated: 2.1.0-3175-g11ba82374
git repository hosting
git at public.arvados.org
Fri Dec 9 07:09:56 UTC 2022
Summary of changes:
sdk/python/tests/test_arv_keepdocker.py | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
via 11ba8237405d2424bd08da61be75e5ff73883f18 (commit)
from ed948e5ff97e22594d54845097dbea77048aa2fc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 11ba8237405d2424bd08da61be75e5ff73883f18
Author: Tom Clegg <tom at curii.com>
Date: Fri Dec 9 02:09:06 2022 -0500
19840: Cleanup link added during test.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>
diff --git a/sdk/python/tests/test_arv_keepdocker.py b/sdk/python/tests/test_arv_keepdocker.py
index 8dea29a44..526fd6872 100644
--- a/sdk/python/tests/test_arv_keepdocker.py
+++ b/sdk/python/tests/test_arv_keepdocker.py
@@ -168,15 +168,19 @@ class ArvKeepdockerTestCase(unittest.TestCase, tutil.VersionChecker):
find_image_mock.assert_called_with('[::1]:8888/repo/img', 'tag')
def test_list_images_with_host_and_port(self):
- arvados.api('v1').links().create(body={'link': {
+ api = arvados.api('v1')
+ taglink = api.links().create(body={'link': {
'link_class': 'docker_image_repo+tag',
'name': 'registry.example:1234/repo:latest',
'head_uuid': 'zzzzz-4zz18-1v45jub259sjjgb',
}}).execute()
- out = tutil.StringIO()
- with self.assertRaises(SystemExit):
- self.run_arv_keepdocker([], sys.stderr, stdout=out)
- self.assertRegex(out.getvalue(), '\nregistry.example:1234/repo +latest ')
+ try:
+ out = tutil.StringIO()
+ with self.assertRaises(SystemExit):
+ self.run_arv_keepdocker([], sys.stderr, stdout=out)
+ self.assertRegex(out.getvalue(), '\nregistry.example:1234/repo +latest ')
+ finally:
+ api.links().delete(uuid=taglink['uuid']).execute()
@mock.patch('arvados.commands.keepdocker.list_images_in_arv',
return_value=[])
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list