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

[Depends on #34] Fix tests (and production API 500 errors, too! Yikes!) #35

Merged
merged 3 commits into from
Sep 17, 2018

Conversation

nihonjinrxs
Copy link
Member

This PR fixes 2 of the 5 errors happening when tests are run. In addition, I found that using filters on the shelters API endpoint after the refactoring of the controller in #22 is generating 500 errors in production. (For example, see: https://hurricane-florence-api.herokuapp.com/api/v1/shelters?accepting=true)

The remaining 3 errors are related to outdated fixtures for the Amazon AWS Product Advertising API, which requires that you first be an Amazon Associate. Since our devs likely don't have the ability to do this, those tests will always fail until someone with the following records new fixtures for these tests:

  1. Amazon Associate status
  2. Product Advertising API access
  3. Ability to run tests using VCR's record mode :all on this repo

Are we using this feature of the API? If not, we should probably have an issue to feature-flag this one so it can be turned off.

@GovInTrenches @miklb Since this fixes production 500 errors, we should merge and deploy this quickly.

@nihonjinrxs nihonjinrxs changed the title Fix tests (and production API 500 errors, too! Yikes!) [Depends on #34] Fix tests (and production API 500 errors, too! Yikes!) Sep 17, 2018
@miklb miklb merged commit d297210 into hurricane-response:master Sep 17, 2018
@nihonjinrxs nihonjinrxs deleted the fix-tests branch September 17, 2018 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants