mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-01 18:01:40 +08:00
Update scratch context uniqueness suffix character from '.' to '_'.
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
This commit is contained in:
@@ -683,7 +683,7 @@ def submit_module_build(username, mmd, params):
|
||||
log.debug('Found %d previous scratch module build context(s): %s',
|
||||
scrmods.count(), ",".join(scrmod_contexts))
|
||||
# append incrementing counter to context
|
||||
context_suffix = '.' + str(scrmods.count() + 1)
|
||||
context_suffix = '_' + str(scrmods.count() + 1)
|
||||
mmd.set_context(mmd.get_context() + context_suffix)
|
||||
log.debug('Creating new module build')
|
||||
module = models.ModuleBuild.create(
|
||||
|
||||
@@ -1236,7 +1236,7 @@ class TestBuild:
|
||||
module_build_id = data['id']
|
||||
module_build = models.ModuleBuild.query.filter_by(id=module_build_id).one()
|
||||
# make sure scratch build has context with unique suffix
|
||||
assert module_build.context == '9c690d0e.1'
|
||||
assert module_build.context == '9c690d0e_1'
|
||||
|
||||
@patch('module_build_service.auth.get_user', return_value=user)
|
||||
@patch('module_build_service.scm.SCM')
|
||||
|
||||
Reference in New Issue
Block a user