MozillaFoundation / donate-wagtail

[Legacy] - Wagtail based donation stack
Mozilla Public License 2.0
43 stars 22 forks source link

added apple pay domain association view #1737

Closed danielfmiranda closed 1 year ago

danielfmiranda commented 1 year ago

Description

Related PRs/issues https://github.com/MozillaFoundation/foundation.mozilla.org/issues/10262

This PR adds the following:

Checklist

Tests

Steps to test:

  1. Checkout this branch and run docker-compose up
  2. Visit http://localhost:8000/.well-known/apple-developer-merchantid-domain-association, the page should return the message Key not found. Please check environment variables.
  3. Add a test string for the env variable APPLE_PAY_DOMAIN_ASSOCIATION_KEY
  4. Restart the app
  5. Visit http://localhost:8000/.well-known/apple-developer-merchantid-domain-association again, this time, the page should return whatever string you set for the env variable.
  6. If everything is working as expected, testing is complete!
danielfmiranda commented 1 year ago

Hi @tbrlpld thank you for the great feedback on this PR!

I have updated the way we update the settings during the tests, and also updated the tests to use the assertContains method.