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

feat: add support for PSC #291

Merged
merged 2 commits into from
Apr 8, 2024
Merged

feat: add support for PSC #291

merged 2 commits into from
Apr 8, 2024

Conversation

ttosta-google
Copy link
Contributor

@ttosta-google ttosta-google commented Mar 28, 2024

Add support to Python Connector for PSC connections:

  • Code changes
  • Add unit tests
  • Add integration tests

Fixes #290

@ttosta-google ttosta-google force-pushed the psc-support branch 2 times, most recently from 86e51a0 to 5a73704 Compare April 5, 2024 18:53
Copy link
Member

@enocom enocom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jackwotherspoon Mind taking a look as well?

# Remove trailing period from PSC DNS name.
psc_dns = resp_dict.get("pscDnsName")
if psc_dns:
psc_dns = psc_dns.rstrip(".")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this necessary in Python?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried without it and it failed:

>       self._sslobj.do_handshake()
E       ssl.SSLError: [SSL: SSLV3_ALERT_UNEXPECTED_MESSAGE] sslv3 alert unexpected message (_ssl.c:1131)

https://github.com/GoogleCloudPlatform/alloydb-python-connector/actions/runs/8471675334/job/23489146452

tests/system/test_asyncpg_psc.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@jackwotherspoon jackwotherspoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, awesome job!

@ttosta-google ttosta-google merged commit 9698431 into main Apr 8, 2024
15 checks passed
@ttosta-google ttosta-google deleted the psc-support branch April 8, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for PSC Connections
3 participants