mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-13 16:59:52 +08:00
idempotent KojiBuilder implementation of rida/builder.py
- Allows to call build() and connect() multiple times. This needs to be followed by allowing to resubmit module build tasks in REST. - rename buildroot_add_repo() to buildroot_add_repos() (input data is artifacts) Signed-off-by: Lubos Kocman <lkocman@redhat.com> Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
committed by
Nils Philippsen
parent
dd0b60dcdd
commit
68e32ee8c7
@@ -52,9 +52,9 @@ class TestRepoDone(unittest.TestCase):
|
||||
@mock.patch('rida.builder.KojiModuleBuilder.buildroot_ready')
|
||||
@mock.patch('rida.builder.KojiModuleBuilder.get_session_from_config')
|
||||
@mock.patch('rida.builder.KojiModuleBuilder.build')
|
||||
@mock.patch('rida.builder.KojiModuleBuilder.buildroot_resume')
|
||||
@mock.patch('rida.builder.KojiModuleBuilder.buildroot_connect')
|
||||
@mock.patch('rida.models.ModuleBuild.from_repo_done_event')
|
||||
def test_a_single_match(self, from_repo_done_event, resume, build_fn, config, ready):
|
||||
def test_a_single_match(self, from_repo_done_event, build_fn, config, ready):
|
||||
""" Test that when a repo msg hits us and we have a single match.
|
||||
"""
|
||||
config.return_value = mock.Mock(), "development"
|
||||
|
||||
Reference in New Issue
Block a user