Commit b4d289a
authored
Fix verify_in_ssl log statement which no longer has access to SSL params (#202)
## Ticket
#200
## Changes
Removes log statement that relies on variables no longer in psycopg 3.
## Context for reviewers
The upgrade to psycopg3 got this error during migrations:
`AttributeError: 'ConnectionInfo' object has no attribute
'ssl_attribute_names'` -
https://github.com/navapbc/platform-test-flask/actions/runs/6275581568/job/17043454952
These aren't available anymore and looking through the connection info
object, I don't see any equivalent. Looking at the docs for version 2,
these attributes say `Only available if psycopg was built with libpq >=
9.5`
https://www.psycopg.org/docs/extensions.html#psycopg2.extensions.ConnectionInfo.ssl_attribute
While the docs for psycopg3 mention libpq as being the backing library
it uses, I don't see any mention of these parameters in their docs.
https://www.psycopg.org/psycopg3/docs/api/connections.html#psycopg.Connection.pgconn
- so seems to just be gone entirely?
## Testing
Updated tests1 parent 42d6923 commit b4d289a
File tree
2 files changed
+5
-18
lines changed- app
- src/adapters/db/clients
- tests/src/adapters/db/clients
2 files changed
+5
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 124 | + | |
131 | 125 | | |
132 | 126 | | |
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | 18 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
27 | 22 | | |
28 | | - | |
| 23 | + | |
29 | 24 | | |
30 | 25 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 26 | + | |
34 | 27 | | |
35 | 28 | | |
36 | 29 | | |
37 | 30 | | |
38 | 31 | | |
39 | 32 | | |
40 | | - | |
| 33 | + | |
41 | 34 | | |
42 | 35 | | |
43 | 36 | | |
| |||
0 commit comments