diff --git a/system/t04_mirror/UpdateMirror32Test_gold b/system/t04_mirror/UpdateMirror32Test_gold new file mode 100644 index 00000000..86ce7588 --- /dev/null +++ b/system/t04_mirror/UpdateMirror32Test_gold @@ -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. diff --git a/system/t04_mirror/UpdateMirror32Test_packages b/system/t04_mirror/UpdateMirror32Test_packages new file mode 100644 index 00000000..9fa4e115 --- /dev/null +++ b/system/t04_mirror/UpdateMirror32Test_packages @@ -0,0 +1,2 @@ +Pamd64 3cpio 0.14.0-1ubuntu1 +Pamd64v3 3cpio 0.14.0-1ubuntu1 diff --git a/system/t04_mirror/update.py b/system/t04_mirror/update.py index e47d24d8..39315649 100644 --- a/system/t04_mirror/update.py +++ b/system/t04_mirror/update.py @@ -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", + )