bedrock/test_infra
Steve Jalim ab38b080ab
10570: Add isort support to project (#10573)
* Update requirements to avoid requests version clash

* 10570: Add isort to project

* 10570: Add isort config to project

* 10570: Add isort as a test run/CI step

* 10570: Add isort to pre-commit config

* 10570: Update isort config to allow tests/pages.py to be first-party, which is more appropriate

* 10570: Apply isort to entire codebase, using project config

* 10570: Explicitly include lib/ as a first-party import

This behaviour is already implicit in the current config, but making it explicit, partly to protect against a future change. Also makes it easier to grok what will happen to various bedrock-codebase imports

* 10570: Update isort config to stack Django imports above third-party ones

* 10570: [nit-fix] Update run-tests.sh to call isort with the same syntax pattern as we call black
2021-10-11 18:08:58 +01:00
..
fixtures Add TLS tests to the CDN move test suite 2020-10-23 12:20:41 -04:00
README.md Update CDN test running procedure, dockerize ssllabs-scan, and add README 2020-10-23 12:20:41 -04:00
test_cdn.py 10570: Add isort support to project (#10573) 2021-10-11 18:08:58 +01:00

README.md

CDN Tests

These tests will look for things like the geolocation endpoint functioning properly, the right headers being returned, the requests to /media/* coming from the S3 origin, etc. To run them issue the following command:

$ make TEST_DOMAIN=www.mozorg.moz.works test-cdn

This will download the TLS report if you don't already have it and run the tests against the TEST_DOMAIN you add to the command. If you don't include TEST_DOMAIN in the command it defaults to www.mozilla.org. If you'd like to download a new TLS report just rm test_infra/fixtures/tls.json and run it again.

NOTE: The TLS report download will take a few minutes.