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

Rewrote ToAutorenewCerts 'check' to Python3 #4822

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ocket8888
Copy link
Contributor

@ocket8888 ocket8888 commented Jun 24, 2020

What does this PR (Pull Request) do?

This rewrites a single "check" script from Perl to Python3. It doesn't replace the old script - yet - just provides an alternative.

The script in question is ToAutorenewCerts.pl, and it has several external dependencies that would not be dependencies of a Go-only Traffic Ops deployment. The Python version has no dependencies outside of the Python3 standard library.

Which Traffic Control components are affected by this PR?

  • Traffic Ops

What is the best way to verify this PR?

There are some very sparing unit tests that can be run with python3 -m doctest path/to/ToAutorenewCerts.py, but the best way to test it is to simply run the script (-h/--help for usage - but it should be perfectly able to run using existing commands by just replacing ToAutorenewCerts.pl with ToAutorenewCerts.py because it supports the exact same command line arguments) and verify that it properly renews expired certificates by calling the appropriate API endpoints. Which is all it really does, to be honest.

The following criteria are ALL met by this PR

  • This PR includes tests
  • This PR includes docstrings
  • This PR includes an update to CHANGELOG.md
  • This PR includes any and all required license headers
  • This PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

@ocket8888 ocket8888 added Traffic Ops related to Traffic Ops low impact affects only a small portion of a CDN, and cannot itself break one tech debt rework due to choosing easy/limited solution labels Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low impact affects only a small portion of a CDN, and cannot itself break one tech debt rework due to choosing easy/limited solution Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant