Ejemplo n.º 1
0
 def _mock_fetch(name, tag=None, secret=None):
     mock(name=name)
     return HubExecutor(
         uuid='dummy_mwu_encoder',
         alias='alias_dummy',
         tag='v0',
         image_name='jinahub/pod.dummy_mwu_encoder',
         md5sum=None,
         visibility=True,
         archive_url=None,
     )
Ejemplo n.º 2
0
 def _mock_fetch(name, tag=None, secret=None, force=False):
     mock(name=name)
     if fail_meta_fetch:
         raise urllib.error.URLError('Failed fetching meta')
     else:
         return HubExecutor(
             uuid='dummy_mwu_encoder',
             name='alias_dummy',
             tag='v0',
             image_name=f'jinahub/pod.dummy_mwu_encoder:{version}',
             md5sum=None,
             visibility=True,
             archive_url=None,
         )
Ejemplo n.º 3
0
 def _mock_fetch(
     name,
     tag=None,
     secret=None,
     image_required=True,
     rebuild_image=True,
     force=False,
 ):
     mock(name=name)
     return (
         HubExecutor(
             uuid='dummy_mwu_encoder',
             name='alias_dummy',
             tag='v0',
             image_name='jinahub/pod.dummy_mwu_encoder',
             md5sum=None,
             visibility=True,
             archive_url=None,
         ),
         False,
     )