Commit eb07f56
committed
Update openssl from 3.3.2 to 4.0.0
First rubocop fails with the following error:
lib/util.rb:29:3: W: Lint/ShadowedException: Do not shadow rescued Exceptions.
rescue OpenSSL::PKey::ECError, OpenSSL::PKey::DSAError ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It's starting to complain about because errors are unified under
OpenSSL::PKey::PKeyError at ruby/openssl#929
So no need to rescue specific errors anymore, we can just rescue the
parent error.
Secondly, postgres_resource_nexus_spec test fails with the following
error:
1) Prog::Postgres::PostgresResourceNexus#refresh_certificates rotates server certificate using root_cert_2 if root_cert_1 is close to expiration
Failure/Error: expect { nx.refresh_certificates }.to hop("wait")
ArgumentError:
OpenSSL::PKey::EC.new cannot be called without arguments; pkeys are immutable with OpenSSL 3.0
# ./prog/postgres/postgres_resource_nexus.rb:305:in 'OpenSSL::PKey::EC#initialize'
# ./prog/postgres/postgres_resource_nexus.rb:305:in 'Class#new'
# ./prog/postgres/postgres_resource_nexus.rb:305:in 'Prog::Postgres::PostgresResourceNexus#create_certificate'
# ./prog/postgres/postgres_resource_nexus.rb:187:in 'Prog::Postgres::PostgresResourceNexus#refresh_certificates'
# ./spec/prog/postgres/postgres_resource_nexus_spec.rb:324:in 'block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:173:in 'block (3 levels) in <top (required)>'
# ./spec/prog/postgres/postgres_resource_nexus_spec.rb:324:in 'block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:62:in 'block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:61:in 'block (2 levels) in <top (required)>'
It doesn't allow to pass nil to OpenSSL::PKey::EC.new anymore.1 parent c18143c commit eb07f56
File tree
3 files changed
+6
-4
lines changed- lib
- spec/prog/postgres
3 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
| |||
0 commit comments