Skip to content

Commit

Permalink
Update system tests after Debian buster was released.
Browse files Browse the repository at this point in the history
  • Loading branch information
smira committed Jul 10, 2019
1 parent 3b8c067 commit e91621c
Show file tree
Hide file tree
Showing 27 changed files with 67 additions and 62 deletions.
4 changes: 4 additions & 0 deletions system/t04_mirror/CreateMirror10Test_gold
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ Downloading http://mirror.yandex.ru/debian/dists/stretch-backports/InRelease...

gpgv: RSA key ID 2B90D010

gpgv: RSA key ID B7D453EC

Downloading http://mirror.yandex.ru/debian/dists/stretch-backports/Release...
Downloading http://mirror.yandex.ru/debian/dists/stretch-backports/Release.gpg...

gpgv: RSA key ID 2B90D010

gpgv: RSA key ID B7D453EC

ERROR: unable to fetch mirror: verification of detached signature failed: exit status 2
5 changes: 1 addition & 4 deletions system/t04_mirror/CreateMirror11Test_gold
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
Downloading http://mirror.yandex.ru/debian/dists/stretch/InRelease...
Downloading http://mirror.yandex.ru/debian/dists/stretch/Release...
Downloading http://mirror.yandex.ru/debian/dists/stretch/Release.gpg...
gpgv: RSA key ID 46925553
gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>"
gpgv: WARNING: multiple signatures detected. Only the first will be checked.
gpgv: RSA key ID 2B90D010
gpgv: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
gpgv: RSA key ID 1A7B6500
gpgv: Good signature from "Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>"

Mirror [mirror11]: http://mirror.yandex.ru/debian/ stretch successfully added.
You can run 'aptly mirror update mirror11' to download repository contents.
4 changes: 2 additions & 2 deletions system/t04_mirror/CreateMirror11Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
5 changes: 1 addition & 4 deletions system/t04_mirror/CreateMirror12Test_gold
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ Downloading http://mirror.yandex.ru/debian/dists/stretch/InRelease...
Downloading http://mirror.yandex.ru/debian/dists/stretch/Release...
Downloading http://mirror.yandex.ru/debian/dists/stretch/Release.gpg...

gpgv: RSA key ID 46925553

gpgv: WARNING: multiple signatures detected. Only the first will be checked.
gpgv: RSA key ID 2B90D010

gpgv: RSA key ID 1A7B6500

ERROR: unable to fetch mirror: verification of detached signature failed: exit status 2
4 changes: 2 additions & 2 deletions system/t04_mirror/CreateMirror13Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
4 changes: 2 additions & 2 deletions system/t04_mirror/CreateMirror17Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
2 changes: 2 additions & 0 deletions system/t04_mirror/CreateMirror19Test_gold
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Downloading http://security.debian.org/dists/stretch/updates/InRelease...
gpgv: RSA key ID C857C906
gpgv: Good signature from "Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
gpgv: RSA key ID 331F7F50
gpgv: Good signature from "Debian Security Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>"

Mirror [mirror19]: http://security.debian.org/ stretch/updates [src] successfully added.
You can run 'aptly mirror update mirror19' to download repository contents.
2 changes: 1 addition & 1 deletion system/t04_mirror/CreateMirror19Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Description: Debian 9 Security Updates

Label: Debian-Security
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9
4 changes: 2 additions & 2 deletions system/t04_mirror/CreateMirror1Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
2 changes: 1 addition & 1 deletion system/t04_mirror/CreateMirror22Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Description: Debian 9 Security Updates

Label: Debian-Security
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9
2 changes: 2 additions & 0 deletions system/t04_mirror/CreateMirror24Test_gold
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Downloading http://security.debian.org/dists/stretch/updates/InRelease...
gpgv: RSA key ID C857C906
gpgv: Good signature from "Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
gpgv: RSA key ID 331F7F50
gpgv: Good signature from "Debian Security Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>"

Mirror [mirror24]: http://security.debian.org/ stretch/updates successfully added.
You can run 'aptly mirror update mirror24' to download repository contents.
4 changes: 2 additions & 2 deletions system/t04_mirror/CreateMirror25Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
2 changes: 2 additions & 0 deletions system/t04_mirror/CreateMirror29Test_gold
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Downloading http://mirror.yandex.ru/debian/dists/stretch-backports/InRelease...
openpgp: RSA key ID 7638D0442B90D010
openpgp: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
openpgp: RSA key ID 04EE7237B7D453EC
openpgp: Good signature from "Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>"

Mirror [mirror9]: http://mirror.yandex.ru/debian/ stretch-backports successfully added.
You can run 'aptly mirror update mirror9' to download repository contents.
4 changes: 2 additions & 2 deletions system/t04_mirror/CreateMirror2Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
4 changes: 2 additions & 2 deletions system/t04_mirror/CreateMirror31Test_gold
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Downloading http://mirror.yandex.ru/debian/dists/stretch/InRelease...
Downloading http://mirror.yandex.ru/debian/dists/stretch/Release...
Downloading http://mirror.yandex.ru/debian/dists/stretch/Release.gpg...
openpgp: RSA key ID 8B48AD6246925553
openpgp: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>"
openpgp: RSA key ID 7638D0442B90D010
openpgp: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
openpgp: RSA key ID 04EE7237B7D453EC
openpgp: Good signature from "Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>"

Mirror [mirror11]: http://mirror.yandex.ru/debian/ stretch successfully added.
You can run 'aptly mirror update mirror11' to download repository contents.
3 changes: 1 addition & 2 deletions system/t04_mirror/CreateMirror32Test_gold
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Downloading http://mirror.yandex.ru/debian/dists/stretch/InRelease...
Downloading http://mirror.yandex.ru/debian/dists/stretch/Release...
Downloading http://mirror.yandex.ru/debian/dists/stretch/Release.gpg...
gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>"
gpgv: WARNING: multiple signatures detected. Only the first will be checked.
gpgv: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
gpgv: Good signature from "Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>"

Mirror [mirror32]: http://mirror.yandex.ru/debian/ stretch successfully added.
You can run 'aptly mirror update mirror32' to download repository contents.
4 changes: 2 additions & 2 deletions system/t04_mirror/CreateMirror32Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
4 changes: 2 additions & 2 deletions system/t04_mirror/CreateMirror3Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
4 changes: 2 additions & 2 deletions system/t04_mirror/CreateMirror7Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
2 changes: 2 additions & 0 deletions system/t04_mirror/CreateMirror9Test_gold
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Downloading http://mirror.yandex.ru/debian/dists/stretch-backports/InRelease...
gpgv: RSA key ID 2B90D010
gpgv: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
gpgv: RSA key ID B7D453EC
gpgv: Good signature from "Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>"

Mirror [mirror9]: http://mirror.yandex.ru/debian/ stretch-backports successfully added.
You can run 'aptly mirror update mirror9' to download repository contents.
2 changes: 1 addition & 1 deletion system/t04_mirror/EditMirror5Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Description: Debian 9 Security Updates

Label: Debian-Security
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9
4 changes: 2 additions & 2 deletions system/t04_mirror/EditMirror6Test_mirror_show
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
4 changes: 2 additions & 2 deletions system/t04_mirror/ShowMirror1Test_gold
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Changelogs: http://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Codename: stretch
Components: main contrib non-free
Date: Sat, 27 Apr 2019 09:29:22 UTC
Date: Sat, 06 Jul 2019 09:10:16 UTC
Description: Debian 9.9 Released 27 April 2019

Label: Debian
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9.9
2 changes: 1 addition & 1 deletion system/t04_mirror/ShowMirror4Test_gold
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Description: Debian 9 Security Updates

Label: Debian-Security
Origin: Debian
Suite: stable
Suite: oldstable
Version: 9
5 changes: 1 addition & 4 deletions system/t04_mirror/UpdateMirror12Test_gold
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ Downloading http://mirror.yandex.ru/debian/pool/main/g/gnupg2/scdaemon_2.1.18-8~
Downloading http://mirror.yandex.ru/debian/pool/main/g/gnupg2/scdaemon_2.1.18-8~deb9u4_i386.deb...
Mirror `stretch` has been successfully updated.
Packages filtered: 78253 -> 20.
gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>"
gpgv: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
gpgv: Good signature from "Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>"
gpgv: RSA key ID 2B90D010
gpgv: RSA key ID 46925553
gpgv: RSA key ID 1A7B6500
gpgv: WARNING: multiple signatures detected. Only the first will be checked.
5 changes: 1 addition & 4 deletions system/t04_mirror/UpdateMirror23Test_gold
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ Downloading http://mirror.yandex.ru/debian/dists/stretch/non-free/binary-s390x/P
Downloading http://mirror.yandex.ru/debian/dists/stretch/non-free/installer-s390x/current/images/SHA256SUMS...
Mirror `stretch` has been successfully updated.
Packages filtered: 49279 -> 1.
gpgv: Good signature from "Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>"
gpgv: Good signature from "Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>"
gpgv: Good signature from "Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>"
gpgv: RSA key ID 2B90D010
gpgv: RSA key ID 46925553
gpgv: RSA key ID 1A7B6500
gpgv: WARNING: multiple signatures detected. Only the first will be checked.
38 changes: 22 additions & 16 deletions system/t04_mirror/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ 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 mirror9", "mirror_show", match_prepare=removeDates)
self.check_cmd_output("aptly mirror show mirror9",
"mirror_show", match_prepare=removeDates)


class CreateMirror10Test(BaseTest):
Expand Down Expand Up @@ -174,7 +175,8 @@ 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 mirror14", "mirror_show", match_prepare=removeDates)
self.check_cmd_output("aptly mirror show mirror14",
"mirror_show", match_prepare=removeDates)


class CreateMirror15Test(BaseTest):
Expand Down Expand Up @@ -241,7 +243,8 @@ 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)
self.check_cmd_output("aptly mirror show mirror19",
"mirror_show", match_prepare=removeDates)


class CreateMirror20Test(BaseTest):
Expand All @@ -256,7 +259,8 @@ class CreateMirror20Test(BaseTest):

def outputMatchPrepare(self, s):
return s.replace('getsockopt: ', '').replace('connect: ', ''). \
replace('proxyconnect tcp', 'http: error connecting to proxy http://127.0.0.1:3137')
replace('proxyconnect tcp',
'http: error connecting to proxy http://127.0.0.1:3137')


class CreateMirror21Test(BaseTest):
Expand All @@ -277,7 +281,8 @@ 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 mirror21", "mirror_show", match_prepare=lambda s: removeSHA512(removeDates(s)))
self.check_cmd_output("aptly mirror show mirror21", "mirror_show",
match_prepare=lambda s: removeSHA512(removeDates(s)))


class CreateMirror22Test(BaseTest):
Expand All @@ -291,7 +296,8 @@ 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 mirror22", "mirror_show", match_prepare=removeDates)
self.check_cmd_output("aptly mirror show mirror22",
"mirror_show", match_prepare=removeDates)


class CreateMirror23Test(BaseTest):
Expand Down Expand Up @@ -337,16 +343,15 @@ class CreateMirror26Test(BaseTest):
expectedCode = 1


# TODO: disabled as linux.dell.com doesn't resolve
# class CreateMirror27Test(BaseTest):
# """
# create mirror: component with slashes, no stripping
# """
# runCmd = "aptly mirror create --ignore-signatures mirror27 http://linux.dell.com/repo/community/ubuntu wheezy openmanage/740"
class CreateMirror27Test(BaseTest):
"""
create mirror: component with slashes, no stripping
"""
runCmd = "aptly mirror create --ignore-signatures mirror27 http://linux.dell.com/repo/community/ubuntu wheezy openmanage/740"

# def check(self):
# self.check_output()
# self.check_cmd_output("aptly mirror show mirror27", "mirror_show")
def check(self):
self.check_output()
self.check_cmd_output("aptly mirror show mirror27", "mirror_show")


class CreateMirror28Test(BaseTest):
Expand All @@ -360,7 +365,8 @@ 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 mirror28", "mirror_show", match_prepare=removeDates)
self.check_cmd_output("aptly mirror show mirror28",
"mirror_show", match_prepare=removeDates)


class CreateMirror29Test(BaseTest):
Expand Down

0 comments on commit e91621c

Please sign in to comment.