Fixing tests.

Signed-off-by: Christoph Fiehe <c.fiehe@eurodata.de>
This commit is contained in:
Christoph Fiehe
2024-10-10 08:23:58 +02:00
committed by André Roth
parent 73cdf5417b
commit 14c29ff912
25 changed files with 78 additions and 91 deletions
+3 -10
View File
@@ -424,22 +424,15 @@ class PublishSwitch11Test(BaseTest):
class PublishSwitch12Test(BaseTest):
"""
publish switch: add new component to publish
publish switch: wrong component names
"""
fixtureCmds = [
"aptly snapshot create snap1 empty",
"aptly snapshot create snap2 empty",
"aptly snapshot create snap3 empty",
"aptly publish snapshot -architectures=i386 -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -distribution=maverick -component=a,b snap1 snap2",
]
runCmd = "aptly publish switch -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -component=a,c maverick snap2 snap3"
gold_processor = BaseTest.expand_environ
def check(self):
super(PublishSwitch12Test, self).check()
self.check_exists('public/dists/maverick/a/binary-i386/Packages')
self.check_exists('public/dists/maverick/c/binary-i386/Packages')
runCmd = "aptly publish switch -keyring=${files}/aptly.pub -secret-keyring=${files}/aptly.sec -component=a,c maverick snap2 snap1"
expectedCode = 1
class PublishSwitch13Test(BaseTest):