mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Support updating label and origin domain of publish
Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
This commit is contained in:
@@ -938,6 +938,8 @@ class PublishSwitchAPITestRepo(APITest):
|
||||
"Snapshots": [{"Component": "main", "Name": snapshot2_name}],
|
||||
"Signing": DefaultSigningOptions,
|
||||
"SkipContents": True,
|
||||
"Label": "fun",
|
||||
"Origin": "earth",
|
||||
})
|
||||
self.check_task(task)
|
||||
repo_expected = {
|
||||
@@ -945,8 +947,8 @@ class PublishSwitchAPITestRepo(APITest):
|
||||
'Architectures': ['i386', 'source'],
|
||||
'Codename': '',
|
||||
'Distribution': 'wheezy',
|
||||
'Label': '',
|
||||
'Origin': '',
|
||||
'Label': 'fun',
|
||||
'Origin': 'earth',
|
||||
'NotAutomatic': '',
|
||||
'ButAutomaticUpgrades': '',
|
||||
'Path': prefix + '/' + 'wheezy',
|
||||
@@ -1845,6 +1847,8 @@ class PublishUpdateSourcesAPITestRepo(APITest):
|
||||
"Signing": DefaultSigningOptions,
|
||||
"SkipBz2": True,
|
||||
"SkipContents": True,
|
||||
"Label": "fun",
|
||||
"Origin": "earth",
|
||||
}
|
||||
).status_code, 200)
|
||||
|
||||
@@ -1853,8 +1857,8 @@ class PublishUpdateSourcesAPITestRepo(APITest):
|
||||
'Architectures': ['i386', 'source'],
|
||||
'Codename': '',
|
||||
'Distribution': 'wheezy',
|
||||
'Label': '',
|
||||
'Origin': '',
|
||||
'Label': 'fun',
|
||||
'Origin': 'earth',
|
||||
'NotAutomatic': '',
|
||||
'ButAutomaticUpgrades': '',
|
||||
'Path': prefix + '/' + 'wheezy',
|
||||
|
||||
Reference in New Issue
Block a user