I am working on an application which interacts with EC2 and handles all sorts of operations with EC2 instances (including reservations). I have been searching for some options to mock EC2 entirely for testing purposes but found very limited range of solutions.
Is there some EC2 mock which would simulate the behaviour at all? What I am looking for is the following fucntionality:
- launching and terminating instances with various AMIs
- buying, selling, moving, merging and splitting reservations
- assigning reservations to instances
The instances itself do not have to be doing anything (it is mock after all, so just showing the instance status is enough).
I have found out about some basic mock capabilities of the java aws-sdk
but this one only enables to mock predefined responses for unit testing (rather then simulating the behaviour). Another solution I found was this aws-mock which handles all the nice functionality with launching and terminating instances but is missing reservations entirely.
At this point, I am considering either writing the whole sandbox on my own or extending the aws-mock. I would be glad for any suggestions and ideas how to tackle this problem. Did I miss some useful tool or is this sort of integration testing just not a hot topic for aws developers?
Aucun commentaire:
Enregistrer un commentaire