зеркало из https://github.com/mozilla/bedrock.git
ab38b080ab
* 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 |
||
---|---|---|
.. | ||
fixtures | ||
README.md | ||
test_cdn.py |
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.