Skip to content

Comments

Issue #32: Add support for SSL certificate management.#33

Closed
jlfranklin wants to merge 4 commits intopmatias:2.xfrom
jlfranklin:feature/32-Add-SSL-support
Closed

Issue #32: Add support for SSL certificate management.#33
jlfranklin wants to merge 4 commits intopmatias:2.xfrom
jlfranklin:feature/32-Add-SSL-support

Conversation

@jlfranklin
Copy link
Contributor

Add support for the following endpoints:

  • get_ssl_settings(): /environments/{environment_uuid}/ssl
  • get_ssl_certs(): /environments/{environment_uuid}/ssl/certificates
  • get_ssl_cert(): /environments/{environment_uuid}/ssl/certificates/{cert_id}
  • install_ssl_cert(): /environments/{environment_uuid}/ssl/certificates (POST)
  • delete_ssl_cert(): /environments/{environment_uuid}/ssl/certificates/{cert_id} (DELETE)
  • activate_ssl_cert(): /environments/{environment_uuid}/ssl/certificates/{cert_id}/actions/activate (POST)
  • deactivate_ssl_cert(): /environments/{environment_uuid}/ssl/certificates/{cert_id}/actions/deactivate (POST)

Copy link
Owner

@pmatias pmatias left a comment

Choose a reason for hiding this comment

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

Hi @jlfranklin, thanks so much for your contrib!

Do you mind taking a look at the comments in the code, and, if possible, add the automated tests for the new methods?

Thanks!


return response.json().get('_embedded', {}).get('items')

def get_ssl_cert(self, cert_id) -> dict:
Copy link
Owner

Choose a reason for hiding this comment

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

I think you forgot the type hint here for cert_id :)


return response

def delete_ssl_cert(self, cert_id) -> Session:
Copy link
Owner

Choose a reason for hiding this comment

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

Same here.


return response

def activate_ssl_cert(self, cert_id) -> Session:
Copy link
Owner

Choose a reason for hiding this comment

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

And here.


return response

def deactivate_ssl_cert(self, cert_id) -> Session:
Copy link
Owner

Choose a reason for hiding this comment

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

And also here :)

@pmatias pmatias linked an issue Feb 1, 2021 that may be closed by this pull request
@jlfranklin
Copy link
Contributor Author

Type-hinting I can do now. Automated tests will have to wait until I have a block of time to devote to it.

@stale
Copy link

stale bot commented Apr 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for SSL management

2 participants