Public bug reported:
consul/1.8.7+dfsg1-2 (just synced it from Debian) has a test failure
with go1.16:
=== RUN TestDynamicTLSConfig
tls_test.go:263:
Error Trace: tls_test.go:263
tls_test.go:339
Error: Not equal:
expected:
&x509.CertPool{byName:map[string][]int{"0\x141\x120\x10\x06\x03U\x04\x03\x13\tTest
CA 8":[]int{0}},
lazyCerts:[]x509.lazyCert{x509.lazyCert{rawSubject:[]uint8{0x30, 0x14, 0x31,
0x12, 0x30, 0x10, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x9, 0x54, 0x65, 0x73, 0x74,
0x20, 0x43, 0x41, 0x20, 0x38}, getCert:(func() (*x509.Certificate,
error))(0x670120)}}, haveSum:map[x509.sum224]bool{x509.sum224{0xe0, 0xf9, 0xb0,
0x89, 0xeb, 0x95, 0x19, 0x55, 0xb1, 0xd9, 0xa3, 0x6f, 0xec, 0x7a, 0x28, 0xaa,
0xe9, 0x69, 0x64, 0x7f, 0xa7, 0xb2, 0x11, 0xf0, 0xb2, 0x12, 0x4, 0x19}:true}}
actual :
&x509.CertPool{byName:map[string][]int{"0\x141\x120\x10\x06\x03U\x04\x03\x13\tTest
CA 8":[]int{0}},
lazyCerts:[]x509.lazyCert{x509.lazyCert{rawSubject:[]uint8{0x30, 0x14, 0x31,
0x12, 0x30, 0x10, 0x6, 0x3, 0x55, 0x4, 0x3, 0x13, 0x9, 0x54, 0x65, 0x73, 0x74,
0x20, 0x43, 0x41, 0x20, 0x38}, getCert:(func() (*x509.Certificate,
error))(0x670120)}}, haveSum:map[x509.sum224]bool{x509.sum224{0xe0, 0xf9, 0xb0,
0x89, 0xeb, 0x95, 0x19, 0x55, 0xb1, 0xd9, 0xa3, 0x6f, 0xec, 0x7a, 0x28, 0xaa,
0xe9, 0x69, 0x64, 0x7f, 0xa7, 0xb2, 0x11, 0xf0, 0xb2, 0x12, 0x4, 0x19}:true}}
Diff:
Test: TestDynamicTLSConfig
--- FAIL: TestDynamicTLSConfig (0.00s)
According to upstream:
'''
There is no way to compare x509.CertPools now that it has an unexpected
function field. This comparison is as close as we can get.
See https://github.com/golang/go/issues/26614 for a related issue.
'''
I tested it locally and the following upstream commit fixes the issue:
https://github.com/hashicorp/consul/commit/3e20bd25bdbec9b1b50fb5b1e0591314ec0c5fe2
** Affects: consul (Ubuntu)
Importance: Undecided
Status: New
** Tags: update-excuse
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1940152
Title:
TLS related test failure with go1.16
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/consul/+bug/1940152/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs