-
Notifications
You must be signed in to change notification settings - Fork 12
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
Issue #32: Add support for SSL certificate management. #33
Conversation
…certs in get_ssl_certs(), not the raw response.
There was a problem hiding this 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!
acapi2/resources/environment.py
Outdated
|
||
return response.json().get('_embedded', {}).get('items') | ||
|
||
def get_ssl_cert(self, cert_id) -> dict: |
There was a problem hiding this comment.
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
:)
acapi2/resources/environment.py
Outdated
|
||
return response | ||
|
||
def delete_ssl_cert(self, cert_id) -> Session: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
acapi2/resources/environment.py
Outdated
|
||
return response | ||
|
||
def activate_ssl_cert(self, cert_id) -> Session: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here.
acapi2/resources/environment.py
Outdated
|
||
return response | ||
|
||
def deactivate_ssl_cert(self, cert_id) -> Session: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And also here :)
Type-hinting I can do now. Automated tests will have to wait until I have a block of time to devote to it. |
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. |
Add support for the following endpoints:
get_ssl_settings()
: /environments/{environment_uuid}/sslget_ssl_certs()
: /environments/{environment_uuid}/ssl/certificatesget_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)