AWSDetonationLab icon indicating copy to clipboard operation
AWSDetonationLab copied to clipboard

Add automated tests and continuous integration

Open mgmacias95 opened this issue 5 years ago • 1 comments

It would help a lot to have each PR automatically tested using a CI service such as Travis or Jenkins.

mgmacias95 avatar Mar 23 '19 15:03 mgmacias95

Hello again!

I have been doing some research on this issue. This is a huge project with lots of different components involved: we're deploying lots of instances with different roles inside the lab and test all that together in a single script is a crazy idea.

I propose doing a divide and conquer approach: that means, testing all our scripts separately. There are Amazon Linux Docker images we can use to run the deployment scripts of each linux instance in the detlab (we must take out hardcoded scripts from the CF template).

I am not yet sure about how to properly test the powershell deploy scripts for the Windows host.

To test the template there is no need to actually run the template. We know Amazon CF works properly, what needs to be tested is the content of the template. That means it would be nice to run some kind of validator to see all defined resources and syntax are correct. To do so we can use:

I have also been looking through the github marketplace and found several apps that could be helpful for us:

Best regards, Marta

mgmacias95 avatar Apr 14 '19 20:04 mgmacias95