Пример #1
0
 def get_unit(self, chart, timeout=None):
     return wait.ChartWait(k8s=mock.MagicMock(),
                           release_name='test-test',
                           chart=chart,
                           namespace='test',
                           k8s_wait_attempts=1,
                           k8s_wait_attempt_sleep=1,
                           timeout=timeout)
Пример #2
0
 def get_unit(self, chart_data, timeout=None, version=2):
     chart = {
         'schema': 'armada/Chart/v{}'.format(str(version)),
         'metadata': {
             'name': 'test'
         },
         const.KEYWORD_DATA: chart_data
     }
     return wait.ChartWait(k8s=mock.MagicMock(),
                           release_id=helm.HelmReleaseId(
                               'test', 'test-test'),
                           chart=chart,
                           k8s_wait_attempts=1,
                           k8s_wait_attempt_sleep=1,
                           timeout=timeout)