mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Added support for NotAutomatic, ButAutomaticUpgrades and Origin fields
This commit is contained in:
@@ -40,6 +40,8 @@ class PublishAPITestRepo(APITest):
|
||||
'Distribution': 'wheezy',
|
||||
'Label': '',
|
||||
'Origin': '',
|
||||
'NotAutomatic': '',
|
||||
'ButAutomaticUpgrades': '',
|
||||
'Prefix': prefix,
|
||||
'SkipContents': False,
|
||||
'SourceKind': 'local',
|
||||
@@ -74,6 +76,8 @@ class PublishAPITestRepo(APITest):
|
||||
'Distribution': distribution,
|
||||
'Label': '',
|
||||
'Origin': '',
|
||||
'NotAutomatic': '',
|
||||
'ButAutomaticUpgrades': '',
|
||||
'Prefix': ".",
|
||||
'SkipContents': False,
|
||||
'SourceKind': 'local',
|
||||
@@ -120,6 +124,8 @@ class PublishSnapshotAPITest(APITest):
|
||||
"Sources": [{"Name": snapshot_name}],
|
||||
"Signing": DefaultSigningOptions,
|
||||
"Distribution": "squeeze",
|
||||
"NotAutomatic": "yes",
|
||||
"ButAutomaticUpgrades": "yes",
|
||||
})
|
||||
self.check_equal(resp.status_code, 201)
|
||||
self.check_equal(resp.json(), {
|
||||
@@ -127,6 +133,8 @@ class PublishSnapshotAPITest(APITest):
|
||||
'Distribution': 'squeeze',
|
||||
'Label': '',
|
||||
'Origin': '',
|
||||
'NotAutomatic': 'yes',
|
||||
'ButAutomaticUpgrades': 'yes',
|
||||
'Prefix': prefix,
|
||||
'SkipContents': False,
|
||||
'SourceKind': 'snapshot',
|
||||
@@ -188,6 +196,8 @@ class PublishUpdateAPITestRepo(APITest):
|
||||
'Distribution': 'wheezy',
|
||||
'Label': '',
|
||||
'Origin': '',
|
||||
'NotAutomatic': '',
|
||||
'ButAutomaticUpgrades': '',
|
||||
'Prefix': prefix,
|
||||
'SkipContents': False,
|
||||
'SourceKind': 'local',
|
||||
@@ -239,6 +249,8 @@ class PublishSwitchAPITestRepo(APITest):
|
||||
'Architectures': ['i386', 'source'],
|
||||
'Distribution': 'wheezy',
|
||||
'Label': '',
|
||||
'NotAutomatic': '',
|
||||
'ButAutomaticUpgrades': '',
|
||||
'Origin': '',
|
||||
'Prefix': prefix,
|
||||
'SkipContents': False,
|
||||
@@ -272,6 +284,8 @@ class PublishSwitchAPITestRepo(APITest):
|
||||
'Distribution': 'wheezy',
|
||||
'Label': '',
|
||||
'Origin': '',
|
||||
'NotAutomatic': '',
|
||||
'ButAutomaticUpgrades': '',
|
||||
'Prefix': prefix,
|
||||
'SkipContents': True,
|
||||
'SourceKind': 'snapshot',
|
||||
|
||||
Reference in New Issue
Block a user