Commit Graph

31 Commits (main)

Author SHA1 Message Date
Martin Guibert e067a6db12
chore: update deprecated use of io/ioutils 2022-09-28 15:52:20 +02:00
Craig Furman d1a0c63f4c Use acceptance tests backoff-retry in more places
Remove RetryFor function, replace all uses of it with ShouldRetry.
2022-08-26 11:22:45 +01:00
Elie 83a34ae5d4
chore: fix failed ACC tests 2022-02-28 19:05:15 +01:00
Elie 79c6a324f4
chore: add flags for azure backend options 2022-02-25 12:24:39 +01:00
sundowndev ee5118ab13 refactor(test): add common exponential backoff function 2022-02-14 18:07:15 +04:00
sundowndev 4a15b763d1 refactor(acceptance): add retry duration to debug logs 2022-02-11 11:10:56 +04:00
Elie 1cdccb0be0
Move to @snyk 2021-12-06 14:29:39 +01:00
Raphaël 7705716b9b
fix: remove telemetry flag
In acc environment, usage report has been disabled, this means --disable-telemetry and --no-version-check flags are not supported.
2021-11-29 18:21:23 +01:00
Elie cb2b2fbf23
Add google_cloudfunctions_function 2021-10-22 13:44:20 +02:00
Elie 68103be734
Use driftignore in acc tests 2021-10-15 11:44:46 +02:00
Martin Guibert d556ae2142 add retry for destroy on some acceptancy tests 2021-07-30 17:33:41 +02:00
Martin Guibert 8cd70f3248 run tf destroy event when apply fail during acc test 2021-05-21 16:16:42 +02:00
Elie e048c39a69
Disable telemetry in acc tests 2021-05-11 10:23:19 +02:00
sundowndev f0f36d010d feat: add dynamic TF versions to acceptance tests 2021-04-14 12:42:14 +02:00
Elie 7c112a8bfe Add tests for driftctl 2021-03-31 17:53:36 +02:00
Elie 7170f9f09c Allow to set args from checks 2021-03-30 19:06:02 +02:00
Elie 5bf6a4ad7a
Add acc test 2021-02-24 14:19:08 +01:00
William Beuil 476c6c62db
Add cloudfront_distribution resource 2021-02-17 15:52:09 +01:00
Elie 31a3cf52d1
Add new logger for terraform plugin 2021-02-10 15:04:07 +01:00
sshota0809 232fc3043f Replace manual terraform execution with hashicorp/terraform-exec
related to #119

Signed-off-by: sshota0809 <8736380+sshota0809@users.noreply.github.com>
2021-02-05 21:32:46 +09:00
William Beuil dcee6fd6b3
Add retry mechanism for polling, use it to poll sqs queues during acc tests 2021-02-04 22:16:18 +01:00
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
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
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
Elie c4c5499cb6
Return exit code 1 when infrastructure not in sync 2021-01-28 14:34:21 +01:00
Elie b2fc9dd562
Allow to override env vars for terraform operations in acc tests 2021-01-27 10:48:14 +01:00
Elie 06abff67ba
Add support for aws_subnet and aws_default_subnet 2021-01-11 18:16:16 +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
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