mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-11-12 14:31:02 +00:00
Add system test for architecture variant mirrors
This commit is contained in:
1 parent
972cf0b981
commit
b6cb4de05d
3 files changed
+36
No files matched your search
@@ -0,0 +1,12 @@
|
||||
Downloading: http://repo.aptly.info/system-tests/archive.ubuntu.com/ubuntu/dists/resolute/Release
|
||||
Downloading & parsing package files...
|
||||
Downloading: http://repo.aptly.info/system-tests/archive.ubuntu.com/ubuntu/dists/resolute/main/binary-amd64/Packages.gz
|
||||
Downloading: http://repo.aptly.info/system-tests/archive.ubuntu.com/ubuntu/dists/resolute/main/binary-amd64v3/Packages.gz
|
||||
Applying filter...
|
||||
Packages filtered: 9974 -> 2.
|
||||
Building download queue...
|
||||
Download queue: 2 items (0.54 MiB)
|
||||
Downloading: http://repo.aptly.info/system-tests/archive.ubuntu.com/ubuntu/pool/main/r/rust-threecpio/3cpio_0.14.0-1ubuntu1_amd64v3.deb
|
||||
Downloading: http://repo.aptly.info/system-tests/archive.ubuntu.com/ubuntu/pool/main/r/rust-threecpio/3cpio_0.14.0-1ubuntu1_amd64.deb
|
||||
|
||||
Mirror `arch-variant` has been updated successfully.
|
||||
@@ -0,0 +1,2 @@
|
||||
Pamd64 3cpio 0.14.0-1ubuntu1
|
||||
Pamd64v3 3cpio 0.14.0-1ubuntu1
|
||||
@@ -544,3 +544,25 @@ class UpdateMirror31Test(BaseTest):
|
||||
"""
|
||||
runCmd = "aptly mirror update -max-versions=-1 varnish"
|
||||
expectedCode = 1
|
||||
|
||||
|
||||
class UpdateMirror32Test(BaseTest):
|
||||
"""
|
||||
update mirrors: architecture variants
|
||||
"""
|
||||
sortOutput = True
|
||||
longTest = False
|
||||
fixtureCmds = [
|
||||
"aptly mirror create --ignore-signatures "
|
||||
"-architectures=amd64,amd64v3 "
|
||||
"-filter='Name (3cpio)' "
|
||||
"arch-variant http://repo.aptly.info/system-tests/archive.ubuntu.com/ubuntu/ resolute main",
|
||||
]
|
||||
runCmd = "aptly mirror update --ignore-signatures arch-variant"
|
||||
|
||||
def check(self):
|
||||
self.check_output()
|
||||
self.check_cmd_output(
|
||||
"aptly mirror search -format='{{.ShortKey}}' arch-variant 'Name (3cpio)'",
|
||||
"packages",
|
||||
)
|
||||
Reference in new issue
Block a user