Added support for NotAutomatic, ButAutomaticUpgrades and Origin fields

This commit is contained in:
Oliver Sauder
2017-05-23 15:30:57 +02:00
parent 39293d7faf
commit e3f1880ad4
33 changed files with 171 additions and 65 deletions
+14
View File
@@ -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',