Commit Graph

2 Commits

Author SHA1 Message Date
Tim Snyder 68ae92db1e scripts/update_test_amis.py uses code from moto instead of copy 2022-03-22 05:01:38 +00:00
Tim Snyder caab42aa9c
Add scripts/update_test_amis.py for maintaining deploy/tests/test_amis.json (#947)
* mv deploy/tests/test_amis{_snake,}.json

_snake is related to the janky way I manually created MOTO_AMIS_PATH the first time
I'm replacing that with a customized version of the moto/scripts/get_amis.py script

* add scripts/update_test_amis.py as copied from moto

just so that the diff is inspectable later...

* Customize scripts/update_test_amis.py for FireSim

And use it to update deploy/tests/test_amis.json
And add a test to check whether test_amis.json needs to be updated
And make all of the tests that will fail confusingly depend on that test

* add comment about running script when you update the AMI

Co-authored-by: Tim Snyder <snyder.tim@gmail.com>
2022-02-18 23:03:32 +00:00