mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Fix up/add mirror update tests
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
Downloading http://packages.pagerduty.com/pdagent/deb/InRelease...
|
||||
Downloading http://packages.pagerduty.com/pdagent/deb/Release...
|
||||
Downloading http://packages.pagerduty.com/pdagent/deb/Release.gpg...
|
||||
gpgv: RSA key ID F8253540
|
||||
gpgv: RSA key ID 76203C00
|
||||
gpgv: Good signature from "Package Maintainer (PagerDuty, Inc.) <packages@pagerduty.com>"
|
||||
Downloading & parsing package files...
|
||||
Downloading http://packages.pagerduty.com/pdagent/deb/Packages.gz...
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
Downloading http://packages.pagerduty.com/pdagent/deb/InRelease...
|
||||
Downloading http://packages.pagerduty.com/pdagent/deb/Release...
|
||||
Downloading http://packages.pagerduty.com/pdagent/deb/Release.gpg...
|
||||
openpgp: RSA key ID 872A32ED76203C00
|
||||
openpgp: Good signature from "Package Maintainer (PagerDuty, Inc.) <packages@pagerduty.com>"
|
||||
Downloading & parsing package files...
|
||||
Downloading http://packages.pagerduty.com/pdagent/deb/Packages.gz...
|
||||
Building download queue...
|
||||
Download queue: 13 items (1.66 MiB)
|
||||
|
||||
Mirror `pagerduty` has been successfully updated.
|
||||
@@ -343,3 +343,20 @@ class UpdateMirror20Test(BaseTest):
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(sorted(output.split("\n")))
|
||||
|
||||
|
||||
class UpdateMirror21Test(BaseTest):
|
||||
"""
|
||||
update mirrors: correct matching of Release checksums (internal pgp implementation)
|
||||
"""
|
||||
longTest = False
|
||||
configOverride = {"gpgProvider": "internal"}
|
||||
fixtureGpg = True
|
||||
fixtureCmds = [
|
||||
"aptly mirror create --keyring=aptlytest.gpg pagerduty http://packages.pagerduty.com/pdagent deb/"
|
||||
]
|
||||
runCmd = "aptly mirror update --keyring=aptlytest.gpg pagerduty"
|
||||
outputMatchPrepare = filterOutSignature
|
||||
|
||||
def output_processor(self, output):
|
||||
return "\n".join(line for line in output.split("\n") if ".deb" not in line)
|
||||
|
||||
Reference in New Issue
Block a user