From 42cfee2c0995130f838082d5e4a933b4166ef067 Mon Sep 17 00:00:00 2001 From: Benj Fassbind Date: Thu, 11 Aug 2022 13:38:08 +0200 Subject: [PATCH] Fix mirror test --- system/t04_mirror/ShowMirror8Test_gold | 1 - system/t04_mirror/show.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/system/t04_mirror/ShowMirror8Test_gold b/system/t04_mirror/ShowMirror8Test_gold index 2b8ae8fe..dedfcd19 100644 --- a/system/t04_mirror/ShowMirror8Test_gold +++ b/system/t04_mirror/ShowMirror8Test_gold @@ -23,7 +23,6 @@ "Label": "Debian-Security", "Origin": "Debian", "Suite": "oldoldstable", - "Valid-Until": "Sat, 05 Feb 2022 10:02:07 UTC", "Version": "9" }, "LastDownloadDate": "0001-01-01T00:00:00Z", diff --git a/system/t04_mirror/show.py b/system/t04_mirror/show.py index ce1d25d4..9323a68c 100644 --- a/system/t04_mirror/show.py +++ b/system/t04_mirror/show.py @@ -39,7 +39,7 @@ class ShowMirror4Test(BaseTest): runCmd = "aptly mirror show mirror4" def outputMatchPrepare(self, s): - return re.sub(r"(Date|Valid-Until): [,0-9:+A-Za-z -]+\n", "", s) + return re.sub(r"(Date): [,0-9:+A-Za-z -]+\n", "", s) class ShowMirror5Test(BaseTest):