mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Update system tests not to fail with GPG verification.
This commit is contained in:
+10
-10
@@ -8,9 +8,9 @@ class UpdateMirror1Test(BaseTest):
|
||||
"""
|
||||
longTest = True
|
||||
fixtureCmds = [
|
||||
"aptly -architectures=i386,amd64 mirror create alsa-ppa http://ppa.launchpad.net/alsa-backports/ubuntu/ hardy main",
|
||||
"aptly -architectures=i386,amd64 mirror create --ignore-signatures alsa-ppa http://ppa.launchpad.net/alsa-backports/ubuntu/ hardy main",
|
||||
]
|
||||
runCmd = "aptly mirror update alsa-ppa"
|
||||
runCmd = "aptly mirror update --ignore-signatures alsa-ppa"
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
@@ -29,10 +29,10 @@ class UpdateMirror3Test(BaseTest):
|
||||
update mirrors: wrong checksum in release file
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly mirror create failure ${url} hardy main",
|
||||
"aptly mirror create --ignore-signatures failure ${url} hardy main",
|
||||
]
|
||||
fixtureWebServer = "test_release"
|
||||
runCmd = "aptly mirror update failure"
|
||||
runCmd = "aptly mirror update --ignore-signatures failure"
|
||||
expectedCode = 1
|
||||
|
||||
def gold_processor(self, gold):
|
||||
@@ -44,10 +44,10 @@ class UpdateMirror4Test(BaseTest):
|
||||
update mirrors: wrong checksum in release file, but ignore
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly mirror create failure ${url} hardy main",
|
||||
"aptly mirror create --ignore-signatures failure ${url} hardy main",
|
||||
]
|
||||
fixtureWebServer = "test_release"
|
||||
runCmd = "aptly mirror update -ignore-checksums failure"
|
||||
runCmd = "aptly mirror update -ignore-checksums --ignore-signatures failure"
|
||||
expectedCode = 1
|
||||
|
||||
def gold_processor(self, gold):
|
||||
@@ -59,10 +59,10 @@ class UpdateMirror5Test(BaseTest):
|
||||
update mirrors: wrong checksum in package
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly mirror create failure ${url} hardy main",
|
||||
"aptly mirror create --ignore-signatures failure ${url} hardy main",
|
||||
]
|
||||
fixtureWebServer = "test_release2"
|
||||
runCmd = "aptly mirror update failure"
|
||||
runCmd = "aptly mirror update --ignore-signatures failure"
|
||||
expectedCode = 1
|
||||
|
||||
def gold_processor(self, gold):
|
||||
@@ -74,10 +74,10 @@ class UpdateMirror6Test(BaseTest):
|
||||
update mirrors: wrong checksum in package, but ignore
|
||||
"""
|
||||
fixtureCmds = [
|
||||
"aptly mirror create failure ${url} hardy main",
|
||||
"aptly mirror create --ignore-signatures failure ${url} hardy main",
|
||||
]
|
||||
fixtureWebServer = "test_release2"
|
||||
runCmd = "aptly mirror update -ignore-checksums failure"
|
||||
runCmd = "aptly mirror update -ignore-checksums --ignore-signatures failure"
|
||||
|
||||
def gold_processor(self, gold):
|
||||
return string.Template(gold).substitute({'url': self.webServerUrl})
|
||||
|
||||
Reference in New Issue
Block a user