Bug#1018107: buster-pu: package golang-github-docker-go-connections/0.3.0-3+deb10u1
Package: release.debian.org
Severity: normal
Tags: buster
User: release.debian.org@packages.debian.org
Usertags: pu
X-Debbugs-Cc: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
* Add patch to skip tests which use expired certificate. (Closes: #986306)
diff -Nru golang-github-docker-go-connections-0.3.0/debian/changelog golang-github-docker-go-connections-0.3.0/debian/changelog
--- golang-github-docker-go-connections-0.3.0/debian/changelog 2018-02-16 10:55:09.000000000 +0200
+++ golang-github-docker-go-connections-0.3.0/debian/changelog 2022-08-25 21:05:07.000000000 +0300
@@ -1,3 +1,10 @@
+golang-github-docker-go-connections (0.3.0-3+deb10u1) buster; urgency=medium
+
+ * Non-maintainer upload.
+ * Add patch to skip tests which use expired certificate. (Closes: #986306)
+
+ -- Adrian Bunk <bunk@debian.org> Thu, 25 Aug 2022 21:05:07 +0300
+
golang-github-docker-go-connections (0.3.0-3) unstable; urgency=medium
* Team upload.
diff -Nru golang-github-docker-go-connections-0.3.0/debian/patches/0001-Skip-tests-which-use-expiered-certificate.patch golang-github-docker-go-connections-0.3.0/debian/patches/0001-Skip-tests-which-use-expiered-certificate.patch
--- golang-github-docker-go-connections-0.3.0/debian/patches/0001-Skip-tests-which-use-expiered-certificate.patch 1970-01-01 02:00:00.000000000 +0200
+++ golang-github-docker-go-connections-0.3.0/debian/patches/0001-Skip-tests-which-use-expiered-certificate.patch 2021-04-05 14:39:50.000000000 +0300
@@ -0,0 +1,28 @@
+From: Shengjing Zhu <zhsj@debian.org>
+Date: Mon, 5 Apr 2021 19:38:47 +0800
+Subject: Skip tests which use expiered certificate
+
+---
+ tlsconfig/config_test.go | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tlsconfig/config_test.go b/tlsconfig/config_test.go
+index 345cbe7..aa94f02 100644
+--- a/tlsconfig/config_test.go
++++ b/tlsconfig/config_test.go
+@@ -202,6 +202,7 @@ func TestConfigServerTLSClientCASet(t *testing.T) {
+ // Exclusive root pools determines whether the CA pool will be a union of the system
+ // certificate pool and custom certs, or an exclusive or of the custom certs and system pool
+ func TestConfigServerExclusiveRootPools(t *testing.T) {
++ t.Skip("certificate is expired")
+ key, cert := getCertAndKey()
+ ca := getMultiCert()
+
+@@ -562,6 +563,7 @@ func TestConfigClientTLSNotSetWithInvalidPassphrase(t *testing.T) {
+ // Exclusive root pools determines whether the CA pool will be a union of the system
+ // certificate pool and custom certs, or an exclusive or of the custom certs and system pool
+ func TestConfigClientExclusiveRootPools(t *testing.T) {
++ t.Skip("certificate is expired")
+ ca := getMultiCert()
+
+ caBytes, err := ioutil.ReadFile(ca)
diff -Nru golang-github-docker-go-connections-0.3.0/debian/patches/series golang-github-docker-go-connections-0.3.0/debian/patches/series
--- golang-github-docker-go-connections-0.3.0/debian/patches/series 1970-01-01 02:00:00.000000000 +0200
+++ golang-github-docker-go-connections-0.3.0/debian/patches/series 2021-04-05 14:39:50.000000000 +0300
@@ -0,0 +1 @@
+0001-Skip-tests-which-use-expiered-certificate.patch
Reply to: