Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests #937

Merged
merged 5 commits into from
Feb 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
max-line-length = 200
ignore = E126,E241,E741,W504
include =
system
exclude =
system/env
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GOVERSION=$(shell go version | awk '{print $$3;}')
ifdef TRAVIS_TAG
TAG=$(TRAVIS_TAG)
else
TAG="$(shell git describe --tags)"
TAG="$(shell git describe --tags --always)"
endif
VERSION=$(shell echo $(TAG) | sed 's@^v@@' | sed 's@-@+@g')
PACKAGES=context database deb files gpg http query swift s3 utils
Expand All @@ -27,7 +27,7 @@ dev:
check: system/env
ifeq ($(RUN_LONG_TESTS), yes)
golangci-lint run
. system/env/bin/activate && flake8 --max-line-length=200 --exclude=system/env/ system/
system/env/bin/flake8
endif

install:
Expand Down
4 changes: 2 additions & 2 deletions http/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (s *DownloaderSuite) TestDownload404(c *C) {
}

func (s *DownloaderSuite) TestDownloadConnectError(c *C) {
c.Assert(s.d.Download(s.ctx, "http://nosuch.localhost/", s.tempfile.Name()),
c.Assert(s.d.Download(s.ctx, "http://nosuch.host/", s.tempfile.Name()),
ErrorMatches, ".*no such host")
}

Expand All @@ -138,7 +138,7 @@ func (s *DownloaderSuite) TestGetLength404(c *C) {
}

func (s *DownloaderSuite) TestGetLengthConnectError(c *C) {
_, err := s.d.GetLength(s.ctx, "http://nosuch.localhost/")
_, err := s.d.GetLength(s.ctx, "http://nosuch.host/")

c.Assert(err, ErrorMatches, ".*no such host")
}
2,876 changes: 1,183 additions & 1,693 deletions pgp/1.clearsigned

Large diffs are not rendered by default.

3,060 changes: 1,269 additions & 1,791 deletions pgp/1.cleartext

Large diffs are not rendered by default.

Binary file modified pgp/trusted.gpg
Binary file not shown.
2 changes: 1 addition & 1 deletion pgp/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (s *VerifierSuite) TestVerifyClearsigned(c *C) {

keyInfo, err := s.verifier.VerifyClearsigned(clearsigned, false)
c.Assert(err, IsNil)
c.Check(keyInfo.GoodKeys, DeepEquals, []Key{"8B48AD6246925553", "7638D0442B90D010"})
c.Check(keyInfo.GoodKeys, DeepEquals, []Key{"04EE7237B7D453EC", "648ACFD622F3D138", "DCC9EFBF77E11517"})
c.Check(keyInfo.MissingKeys, DeepEquals, []Key(nil))

clearsigned.Close()
Expand Down
Binary file modified system/files/debian-archive-keyring.gpg
Binary file not shown.
158 changes: 49 additions & 109 deletions system/files/jenkins.key
Original file line number Diff line number Diff line change
@@ -1,112 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.9 (GNU/Linux)

mQGiBEmFQG0RBACXScOxb6BTV6rQE/tcJopAEWsdvmE0jNIRWjDDzB7HovX6Anrq
n7+Vq4spAReSFbBVaYiiOx2cGDymj2dyx2i9NAI/9/cQXJOU+RPdDzHVlO1Edksp
5rKn0cGPWY5sLxRf8s/tO5oyKgwCVgTaB5a8gBHaoGms3nNC4YYf+lqlpwCgjbti
3u1iMIx6Rs+dG0+xw1oi5FUD/2tLJMx7vCUQHhPRupeYFPoD8vWpcbGb5nHfHi4U
8/x4qZspAIwvXtGw0UBHildGpqe9onp22Syadn/7JgMWhHoFw5Ke/rTMlxREL7pa
TiXuagD2G84tjJ66oJP1FigslJzrnG61y85V7THL61OFqDg6IOP4onbsdqHby4VD
zZj9A/9uQxIn5250AGLN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swake8xqowF
O+YrTyPUkMlH5tbQFXQ6vzWrkt69nSEBW629ronXm3E6R+1i5uEnN/SHsWoTU2v4
xcP+K/HT7a6AYq3bEp/vUMASSmaI51U3BA2XyxANtWTzDeseHNIMF6tuZuewwcjN
5F8jFI7iFtvrfUPZFPPQ2/vX2SwOlQARAQABiQI8BBgBCgAmFiEEYql1a/14DDd8
8kuo/O8y50Xyw9UFAl6B77kCGwwFCQWjmoAACgkQ/O8y50Xyw9XGGxAAhcLj80iM
M26mZA+hPxriP27eLI3yLOsuEKjZftcfOV5WC3iaklkZAmMkmIfhwg/QEkLqL4f4
MdnVj5/aVyygG2czW3Lvg4otjySTjBv+rf55GVK7KomAjJBU6m+IJdCHJbKKuixP
CEy5GXqdnXkaNbU+DAba0dP8lfQXHgpeeAYUushJrEOEVriCyrxyQan2HomJ2zs7
IoB1fCLI2FGV5MItyCmVOjJJ6ViJoQz6FRL9kvmT/xwMSwmrQMhMgU6zTZcYzdBL
KYkxahUr7ltETFy3LaPnDezX3zT8mNQ9bqfxaMLn/+Ku/AdriMhfzoC9NXvzhZYY
kWVGYwWzFAVOyn3o1A+MRjhT7FikWXQxKlGuGgcXDhbPWR4gUSWlEga1aFVRzYHO
Ty60f6SWcuTgL0tBNcdXqEkhSpoV/9wxhTox6lfaH3vajganr9gPyew1oiOrvIzw
PNbzJTe+Yj1WEUheSdWuI5jPQl5Mr5YYxf9j0T2xqb2k01/FW+aR5Xte5Bj9OGz2
Ou4QDK481XaUKovplz3jj2PtK8d/12OJT11ukFb8py6u1ezxRjOm3Nk6kzySG8vP
hjqccnUDI8Eg8yo0s02+SVt9lNkVe7ggF99TRp/rMBCxb+e27OPjqdRKEArB8JyI
Z77i4FhdLio04srxWsN+FkRwkBJdkJ8VKEE=
=0xpA
-----END PGP PUBLIC KEY BLOCK-----
1 change: 1 addition & 0 deletions system/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def run(include_long_tests=False, capture_results=False, tests=None, filters=Non
numFailed += 1
typ, val, tb = sys.exc_info()
fails.append((test, t, typ, val, tb, testModule))
traceback.print_exception(typ, val, tb)
sys.stdout.write(colored("FAIL\n", color="red"))
else:
sys.stdout.write(colored("OK\n", color="green"))
Expand Down
14 changes: 12 additions & 2 deletions system/swift_lib.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from lib import BaseTest
import logging
import uuid
import os


try:
import swiftclient

Expand Down Expand Up @@ -50,13 +52,21 @@ def prepare(self):

super(SwiftTest, self).prepare()

def shutdown(self):
if hasattr(self, "container_name"):
def _try_delete_container(self):
if not hasattr(self, "container_name"):
return

try:
for obj in swift_conn.get_container(self.container_name,
full_listing=True)[1]:
swift_conn.delete_object(self.container_name, obj.get("name"))

swift_conn.delete_container(self.container_name)
except swiftclient.ClientException:
logging.exception("Error shutting down Swift container")

def shutdown(self):
self._try_delete_container()
super(SwiftTest, self).shutdown()

def check_path(self, path):
Expand Down
8 changes: 4 additions & 4 deletions system/t04_mirror/CreateMirror10Test_gold
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Downloading http://cdn-fastly.deb.debian.org/debian/dists/stretch-backports/InRelease...

gpgv: RSA key ID 2B90D010

gpgv: RSA key ID B7D453EC

gpgv: RSA key ID 22F3D138

Downloading http://cdn-fastly.deb.debian.org/debian/dists/stretch-backports/Release...
Downloading http://cdn-fastly.deb.debian.org/debian/dists/stretch-backports/Release.gpg...

gpgv: RSA key ID 2B90D010

gpgv: RSA key ID B7D453EC

gpgv: RSA key ID 22F3D138

ERROR: unable to fetch mirror: verification of detached signature failed: exit status 2
5 changes: 4 additions & 1 deletion system/t04_mirror/CreateMirror11Test_gold
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
Downloading http://cdn-fastly.deb.debian.org/debian/dists/stretch/InRelease...
Downloading http://cdn-fastly.deb.debian.org/debian/dists/stretch/Release...
Downloading http://cdn-fastly.deb.debian.org/debian/dists/stretch/Release.gpg...
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 B7D453EC
gpgv: Good signature from "Debian Archive Automatic Signing Key (9/stretch) <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://cdn-fastly.deb.debian.org/debian/ stretch successfully added.
You can run 'aptly mirror update mirror11' to download repository contents.
6 changes: 3 additions & 3 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: Sun, 08 Sep 2019 16:58:45 UTC
Description: Debian 9.11 Released 08 September 2019
Date: Sat, 18 Jul 2020 10:50:51 UTC
Description: Debian 9.13 Released 18 July 2020

Label: Debian
Origin: Debian
Suite: oldstable
Version: 9.11
Version: 9.13
5 changes: 4 additions & 1 deletion system/t04_mirror/CreateMirror12Test_gold
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ Downloading http://cdn-fastly.deb.debian.org/debian/dists/stretch/InRelease...
Downloading http://cdn-fastly.deb.debian.org/debian/dists/stretch/Release...
Downloading http://cdn-fastly.deb.debian.org/debian/dists/stretch/Release.gpg...

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

gpgv: RSA key ID B7D453EC

gpgv: RSA key ID 1A7B6500

ERROR: unable to fetch mirror: verification of detached signature failed: exit status 2
6 changes: 3 additions & 3 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: Sun, 08 Sep 2019 16:58:45 UTC
Description: Debian 9.11 Released 08 September 2019
Date: Sat, 18 Jul 2020 10:50:51 UTC
Description: Debian 9.13 Released 18 July 2020

Label: Debian
Origin: Debian
Suite: oldstable
Version: 9.11
Version: 9.13
6 changes: 3 additions & 3 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: Sun, 08 Sep 2019 16:58:45 UTC
Description: Debian 9.11 Released 08 September 2019
Date: Sat, 18 Jul 2020 10:50:51 UTC
Description: Debian 9.13 Released 18 July 2020

Label: Debian
Origin: Debian
Suite: oldstable
Version: 9.11
Version: 9.13
5 changes: 2 additions & 3 deletions system/t04_mirror/CreateMirror19Test_gold
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Downloading http://security.debian.org/dists/stretch/updates/InRelease...
Following redirect to http://security-cdn.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>"
gpgv: RSA key ID E562B32A
gpgv: Good signature from "Debian Security Archive Automatic Signing Key (10/buster) <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 @@ -9,7 +9,7 @@ Last update: never

Information from release file:
Acquire-By-Hash: yes
Architectures: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x
Architectures: amd64 arm64 armel armhf i386
Codename: stretch
Components: updates/main updates/contrib updates/non-free
Description: Debian 9 Security Updates
Expand Down
6 changes: 3 additions & 3 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: Sun, 08 Sep 2019 16:58:45 UTC
Description: Debian 9.11 Released 08 September 2019
Date: Sat, 18 Jul 2020 10:50:51 UTC
Description: Debian 9.13 Released 18 July 2020

Label: Debian
Origin: Debian
Suite: oldstable
Version: 9.11
Version: 9.13
6 changes: 2 additions & 4 deletions system/t04_mirror/CreateMirror21Test_gold
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
Downloading http://pkg.jenkins-ci.org/debian-stable/binary/InRelease...
Downloading http://pkg.jenkins-ci.org/debian-stable/binary/Release...
Downloading http://pkg.jenkins-ci.org/debian-stable/binary/Release.gpg...
gpgv: DSA key ID D50582E6
gpgv: Good signature from "Kohsuke Kawaguchi <kk@kohsuke.org>"
gpgv: aka "Kohsuke Kawaguchi <kohsuke.kawaguchi@sun.com>"
gpgv: aka "[invalid image]"
gpgv: RSA key ID 45F2C3D5
gpgv: Good signature from "Jenkins Project <jenkinsci-board@googlegroups.com>"

Mirror [mirror21]: http://pkg.jenkins-ci.org/debian-stable/ ./binary/ successfully added.
You can run 'aptly mirror update mirror21' to download repository contents.
1 change: 0 additions & 1 deletion system/t04_mirror/CreateMirror22Test_gold
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Downloading http://security.debian.org/dists/stretch/updates/Release...
Following redirect to http://security-cdn.debian.org/dists/stretch/updates/Release...

Mirror [mirror22]: http://security.debian.org/ stretch/updates successfully added.
You can run 'aptly mirror update mirror22' to download repository contents.
Loading