Commit Graph

71 Commits (bb65186957ae19e054a244d08ba2583db07d904a)

Author SHA1 Message Date
Elie 04fe9c4d40
Fix unexpected deleted resources in acceptance tests
Cobra cmd seems to return flag twice when executed multiples times
2021-02-03 19:20:21 +01:00
Elie 58be0f9bc5
Merge branch 'main' into issue/175 2021-02-03 11:24:29 +01:00
Elie 5daec82ecc
Remove singleton to fix issues when chain multiples cmd run
We have some issue when running acceptance test, more generally
when we use to execute scan cmd multiples times.
We were using global singletons for provider and resources suppliers
managment which lead us to improper state in the second scan run.
We should avoid this in the future and make proper initialization of our
dependencies maybe using a dependency injection container.
2021-02-01 11:49:50 +01:00
sshota0809 93973490db Embed the environment variables before PreExec in ACC test
Closed: #175

Signed-off-by: sshota0809 <8736380+sshota0809@users.noreply.github.com>
2021-02-01 18:45:10 +09:00
William BEUIL 31e20a1b88
Merge branch 'main' into acc_test_fixes 2021-01-29 18:38:58 +01:00
Elie f06a426f90
Fix acceptance test issues
- Set all test AZ to us-east-1
- Use terraform overriden env in PreCheck() to ensure mutations are
  executed with read write credentials
- Fix hidden error in aws_instance test (tag creation failure was not
  handled
- Minor fmt fix
2021-01-29 18:36:26 +01:00
Martin Guibert bebf5c887c alert and ignore when listing resources is forbidden 2021-01-29 10:19:52 +01:00
Elie c4c5499cb6
Return exit code 1 when infrastructure not in sync 2021-01-28 14:34:21 +01:00
Elie 6cc53fd990
Fix test order unpredictable 2021-01-27 12:06:19 +01:00
Elie b2fc9dd562
Allow to override env vars for terraform operations in acc tests 2021-01-27 10:48:14 +01:00
Elie 5cc322fa90
Display analysis summary when infra not in sync in acc tests 2021-01-14 18:15:23 +01:00
Elie 06abff67ba
Add support for aws_subnet and aws_default_subnet 2021-01-11 18:16:16 +01:00
William Beuil 71d0d7d224
Change computed field logic 2021-01-11 17:34:04 +01:00
William Beuil 8e5b6de9b2
Add alerting 2021-01-11 17:34:04 +01:00
Elie c83b538d6a
Several improvements on acceptance tests
- Add filter on aws_instance test
- Add terraform locks
- Do not run terraform init if already done previously
- Do not use chdir in tests (it could cause race if we want to switch to parallel tests, uses --from arg instead)
- Handle terraform destroy errors
2021-01-06 17:57:32 +01:00
Elie e77a5b390a
Remove invalid chars in filenames (for windows) 2021-01-05 17:42:34 +01:00
Martin Guibert 42207e3be1 add ability to ignore field drift 2020-12-23 14:53:16 +01:00
Elie bbe91ffef0
Add aws vpc support 2020-12-17 18:26:37 +01:00
Stephane Jourdan 5548e1d639 allow provider version upgrades 2020-12-14 11:04:04 +01:00
Elie f4714af0cc
Fix acceptance tests
- Better terraform error output
- Remove terraform version constraint in test files
2020-12-14 10:50:45 +01:00
Elie ff72de8e77
🍾 Initial release
Co-authored-by: William BEUIL <william.beuil@cloudskiff.com>
Co-authored-by: Martin GUIBERT <martin@cloudskiff.com>
2020-12-09 16:35:26 +01:00