Skip to content

Commit 9124db3

Browse files
authored
Add donwload cuncurrency for repository (#1272)
1 parent d44e766 commit 9124db3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

nailgun/entities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7071,6 +7071,7 @@ def __init__(self, server_config=None, **kwargs):
70717071
'deb_releases': entity_fields.StringField(),
70727072
'deb_components': entity_fields.StringField(),
70737073
'deb_architectures': entity_fields.StringField(),
7074+
'download_concurrency': entity_fields.IntegerField(),
70747075
}
70757076
if self._fields['content_type'].choices == 'yum':
70767077
self._fields['download_policy'].required = True
@@ -7141,6 +7142,7 @@ def read(self, entity=None, attrs=None, ignore=None, params=None):
71417142
ignore.add('organization')
71427143
ignore.add('upstream_password')
71437144
ignore.add('mirror_on_sync')
7145+
ignore.add('download_concurrency')
71447146
return super().read(entity, attrs, ignore, params)
71457147

71467148
def create_missing(self):

tests/test_entities.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,10 @@ def test_ignore_arg_v1(self):
12951295
{'discovery', 'remote_execution_proxy', 'subnet_parameters_attributes'},
12961296
),
12971297
(entities.Subscription, {'organization'}),
1298-
(entities.Repository, {'organization', 'upstream_password', 'mirror_on_sync'}),
1298+
(
1299+
entities.Repository,
1300+
{'organization', 'upstream_password', 'mirror_on_sync', 'download_concurrency'},
1301+
),
12991302
(entities.User, {'password'}),
13001303
(entities.ScapContents, {'scap_file'}),
13011304
(entities.TailoringFile, {'scap_file'}),

0 commit comments

Comments
 (0)