deliveredtechnologies / terraform-maven

Terraform Maven Plugin
Apache License 2.0
42 stars 13 forks source link

tf wrapper tests fail because of asynchronous nature of tests. #222

Open jlanka11566 opened 4 years ago

Clayton7510 commented 4 years ago

An appropriate solution to this is refactoring as @roberthutto pointed out.

A proposed approach is as follows:

  1. Abstract out the terraform wrapper from the TerraformDecorator (into its own decorator)

  2. Implement lightweight dependency injection (e.g. Dagger 2) so that future refactoring efforts are less arduous