Support updating label and origin domain of publish

Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
This commit is contained in:
Zhang Xiao
2025-08-20 09:14:21 +00:00
committed by André Roth
parent 19b98c62c1
commit a2ffffedc1
3 changed files with 42 additions and 4 deletions
+8 -4
View File
@@ -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',