hackoregon / devops-17

deployment tools for Hack Oregon projects
4 stars 3 forks source link

Investigate why Zak's Django test run in AWS doesn't destroy the database #12

Closed MikeTheCanuck closed 7 years ago

MikeTheCanuck commented 7 years ago

Zak Kent from the Homelessness team has been experimenting with Django + AWS + testing, and he reported an unexpected issue he's been running into just now.

As I remember the problem statement, he's running "python manage.py test [app_name]" and all the tests run fine but at the stage where everything gets destroyed, he's seeing the database doesn't get destroyed. Which means he has to remember to destroy it manually the next time he goes to run tests.

Seems like something we ought to be able to help out with.

MikeTheCanuck commented 7 years ago

Zak reports:

"Hey Mike, Thanks for checking back in. Originally I was using a local copy of the db and testing off that. I think it was a permissions issue with the AWS stuff that wouldn't let the Django user delete the testing db after it ran. Dan tweaked the homelessness_user permissions yesterday and it seems to be working now."

No reason to keep this issue open.