rawlinp opened a new pull request #4429: Add support for TO_API_VERSION env var in to-access.sh URL: https://github.com/apache/trafficcontrol/pull/4429 ## What does this PR (Pull Request) do? By default, make requests at 2.0 but allow overriding the version when necessary to deal with older TO servers. - [x] This PR is not related to any Issue ## Which Traffic Control components are affected by this PR? - CDN in a Box ## What is the best way to verify this PR? With TO_URL, TO_USER, and TO_PASSWORD vars set appropriately: `. to-access.sh; to-auth` -> verify that the login request was made to TO at API version 2.0. `TO_API_VERSION=1.4; . to-access.sh; to-auth` -> verify that the login request was made to TO at API version 1.4. Start up a Docker CIAB instance, make sure it all starts up properly as it depends on the `to-access.sh` script. ## The following criteria are ALL met by this PR - [x] Starting up CIAB tests this script pretty well -- doesn't have its own specific tests - [x] The to-access.sh script doesn't have docs - [x] A changelog entry would be a little overkill for this undocumented script - [x] This PR includes any and all required license headers - [x] This PR does not include a database migration - [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY** (see [the Apache Software Foundation's security guidelines](https://www.apache.org/security/) for details)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
