diff --git a/system/t04_mirror/CreateMirror19Test_gold b/system/t04_mirror/CreateMirror19Test_gold new file mode 100644 index 00000000..f250a513 --- /dev/null +++ b/system/t04_mirror/CreateMirror19Test_gold @@ -0,0 +1,6 @@ +Downloading http://security.debian.org/dists/wheezy/updates/InRelease... +gpgv: RSA key ID 46925553 +gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) " + +Mirror [mirror19]: http://security.debian.org/ wheezy/updates [src] successfully added. +You can run 'aptly mirror update mirror19' to download repository contents. diff --git a/system/t04_mirror/CreateMirror19Test_mirror_show b/system/t04_mirror/CreateMirror19Test_mirror_show new file mode 100644 index 00000000..52bf55df --- /dev/null +++ b/system/t04_mirror/CreateMirror19Test_mirror_show @@ -0,0 +1,20 @@ +Name: mirror19 +Archive Root URL: http://security.debian.org/ +Distribution: wheezy/updates +Components: main +Architectures: i386 +Download Sources: yes +Last update: never + +Information from release file: +Architectures: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc +Codename: wheezy +Components: updates/main updates/contrib updates/non-free +Date: Tue, 11 Mar 2014 21:11:28 UTC +Description: Debian 7.0 Security Updates + +Label: Debian-Security +Origin: Debian +Suite: stable +Valid-Until: Fri, 21 Mar 2014 21:11:28 UTC +Version: 7.0 diff --git a/system/t04_mirror/create.py b/system/t04_mirror/create.py index d8750fda..92d006ec 100644 --- a/system/t04_mirror/create.py +++ b/system/t04_mirror/create.py @@ -207,3 +207,20 @@ class CreateMirror18Test(BaseTest): def check(self): self.check_output() self.check_cmd_output("aptly mirror show mirror18", "mirror_show") + + +class CreateMirror19Test(BaseTest): + """ + create mirror: mirror with / in components + """ + fixtureGpg = True + outputMatchPrepare = lambda _, s: re.sub(r'Signature made .* using', '', s) + + runCmd = "aptly -architectures='i386' mirror create -with-sources mirror19 http://security.debian.org/ wheezy/updates main" + + def check(self): + def removeDates(s): + return re.sub(r"(Date|Valid-Until): [,0-9:+A-Za-z -]+\n", "", s) + + self.check_output() + self.check_cmd_output("aptly mirror show mirror19", "mirror_show", match_prepare=removeDates)