Commit Graph

374 Commits (cac46cf58585c16d1896c371263981a375fcb7eb)

Author SHA1 Message Date
William Beuil 4aa06223da
Add aws_default_route_table 2021-05-04 13:41:05 +02:00
William Beuil d618139eac
Add aws_db_subnet_group 2021-05-04 13:41:05 +02:00
William Beuil b7e38f9e26
Add aws_db_instance 2021-05-04 13:41:05 +02:00
William Beuil e25c0ff868
Add aws_ami 2021-05-04 13:41:05 +02:00
William Beuil a8064e2728
Add .tf to cloudfront state reader 2021-05-04 13:41:05 +02:00
Elie 2b73202e09
Change jsondiff library 2021-05-04 11:38:22 +02:00
Elie 15779ae050
Set terraform version for latest acceptance test 2021-05-04 09:52:52 +02:00
Elie ef492ae0c0
Merge branch 'main' into refact/ACC_tests 2021-05-03 11:41:21 +02:00
sundowndev cc30029de3 refactor: simplify code 2021-04-30 13:46:31 +02:00
Raphaël 03541308ac
Merge branch 'main' into test/strictMode 2021-04-30 13:35:16 +02:00
Elie 4a238822b9 Fix cloudfront acc test 2021-04-27 17:53:07 +02:00
Raphaël 424a312bf7
Merge branch 'main' into fix/filterFlagRepeat 2021-04-26 17:49:53 +02:00
Raphaël 30bc979e8c
Merge branch 'main' into fix/progressBarResume 2021-04-26 17:20:02 +02:00
sundowndev b38063da8d fix: resume progress bar after timeout 2021-04-26 11:22:50 +02:00
Martin Guibert 80687e5029
Add hybrid resource behavior 2021-04-23 17:07:35 +02:00
sundowndev 9bfdce93bd fix: enforce one occurrence of filter flag 2021-04-20 13:50:34 +02:00
sundowndev 1ce230d03c test: add a test case for strict mode with filters 2021-04-19 15:42:10 +02:00
Elie 7e5609510b Disable useless error wrappers 2021-04-19 13:06:33 +02:00
sundowndev da64127175 test: strict mode 2021-04-14 17:04:33 +02:00
sundowndev f0f36d010d feat: add dynamic TF versions to acceptance tests 2021-04-14 12:42:14 +02:00
Raphaël b93ed4ef16
fix: rename total_drifted to total_changed 2021-04-13 17:19:30 +02:00
sundowndev 1924900e9a chore: fix conflicts with main branch 2021-04-13 14:55:10 +02:00
sundowndev 4f77dc4034 chore: use deep link in alert message 2021-04-13 14:47:08 +02:00
Elie 4bd0a81718 Fix bug in default igw route middleware 2021-04-13 14:47:08 +02:00
Stephane Jourdan 88e159f8e2 quick grammar fix 2021-04-13 14:47:08 +02:00
Louis TOUSSAINT 5c1f84e324 Issue 367: Fix typo for error-reporting 2021-04-13 14:47:08 +02:00
Louis TOUSSAINT 4c8efa378b Issue 367: Fix all error-reporting occurence in project to follow the new flag name 2021-04-13 14:47:08 +02:00
sundowndev bd497cbf6a refactor: simplify & format code 2021-04-13 14:47:08 +02:00
sundowndev c6ea94f6ce refactor: NewDriftCTL interface 2021-04-13 14:47:08 +02:00
sundowndev 53bfa79423 refactor: simplify & format code 2021-04-13 14:45:43 +02:00
sundowndev 4ce5d7530b refactor: rename wildcard variable 2021-04-13 14:45:43 +02:00
sundowndev 7f72b23b67 test: put aws defaults tests in the same file 2021-04-13 14:45:43 +02:00
sundowndev ba1868b080 refactor: put aws defaults in a single middleware 2021-04-13 14:45:43 +02:00
sundowndev 9411a5b72c refactor: don't ignore resource if role cannot be found 2021-04-13 14:45:43 +02:00
sundowndev 62cc1c7bea refactor: ignore resources based on their path 2021-04-13 14:45:43 +02:00
sundowndev fc93f0a41f refactor: delete useless aws middleware 2021-04-13 14:45:43 +02:00
sundowndev cc98c10216 refactor: revert method rename
isDefaultRecord in pkg/middlewares/route53_record.go
2021-04-13 14:45:43 +02:00
sundowndev e102fd1cdd refactor: ignore resources based on their path 2021-04-13 14:45:43 +02:00
sundowndev 803700806e refactor: delete useless aws middleware 2021-04-13 14:45:43 +02:00
Louis TOUSSAINT 3c0321e044 Issue 331: Typo in aws_security_group_defaults / aws_security_group_rules_defaults 2021-04-13 14:45:43 +02:00
sundowndev b514645029 refactor(middlewares): typo in debug log 2021-04-13 14:45:43 +02:00
sundowndev 2c8a0f7fc1 test(middlewares): aws security group rule defaults 2021-04-13 14:45:43 +02:00
sundowndev f01227d35a refactor: do not alter resources from state in middlewares 2021-04-13 14:45:43 +02:00
Louis TOUSSAINT cfdb6801a9 Issue 331: Update test to check diff.Changelog and not resource.Resource 2021-04-13 14:45:43 +02:00
Louis TOUSSAINT 1927fd07f6 typo in aws_default_route_table_test.go 2021-04-13 14:45:43 +02:00
Louis TOUSSAINT 9d32101205 Issue 331: Create a aws_iam_policy_attachment_defaults middleware to
ignore default AWS resource
2021-04-13 14:45:43 +02:00
sundowndev 00cec78d18 feat: implement aws_security_group_rules_defaults middleware 2021-04-13 14:45:43 +02:00
sundowndev 2bd04d6fb7 feat: implement aws_security_group_defaults middleware 2021-04-13 14:45:43 +02:00
sundowndev eb10e9cd69 refactor: usage of strict mode 2021-04-13 14:45:43 +02:00
sundowndev 54018e6b52 test(middlewares): ignore aws iam defaults 2021-04-13 14:42:36 +02:00
sundowndev f2ff032b85 feat: implement aws_iam_role_defaults middleware 2021-04-13 14:42:36 +02:00
sundowndev 2ca48d4e65 feat: implement aws_iam_role_policy_defaults middleware 2021-04-13 14:41:23 +02:00
sundowndev 4371dec865 feat: add CLI strict flag 2021-04-13 14:40:07 +02:00
sundowndev c542a4063d refactor(analyser): rename total_drifted to total_changed 2021-04-13 14:40:07 +02:00
sundowndev 724975fb72 fix: false positive on field InstanceInitiatedShutdownBehavior 2021-04-13 14:40:07 +02:00
Martin Guibert 1ee31b4679 Fix #409
- Ignore directory (size <= 0) when listing bucket object
- Add test for empty directory
2021-04-13 14:40:07 +02:00
sundowndev 5f60cf44bc refactor: simplify middleware code
following code review feedback. pkg/middlewares/aws_route_table_expander.go
2021-04-13 14:40:07 +02:00
sundowndev 257c1260dd refactor: create routeExists method 2021-04-13 14:40:07 +02:00
sundowndev 0dd062b7db fix: false positive on aws routes 2021-04-13 14:38:33 +02:00
sundowndev e7994fb81f test: update golden files for iam_role_policy_attachment 2021-04-13 14:12:03 +02:00
sundowndev 291659df05 refactor(aws): NormalizeForState method 2021-04-13 14:02:50 +02:00
sundowndev b4f6dc9ef7 test(acc): delete useless resource assets 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT f8102fa326 Issue 366: Fix false positive on aws_iam_policy_attachment 2021-04-13 14:02:50 +02:00
Raphaël d7fc812cf8 chore: fix a typo in comment 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT f6479c334d Issue 375: Fix false positive for route53_record Records and Ttl field +
typo
2021-04-13 14:02:50 +02:00
Louis TOUSSAINT 298b2cfee4 Issue 375: Add test to check route53_record with null records field 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT a087e3af65 Issue 375: Fix pointer on aws_route53_record Records field to avoid crash when it's null 2021-04-13 14:02:50 +02:00
Louis TOUSSAINT cfc81b766a Typo in pkg/middlewares/route53_records_test.go 2021-04-13 14:02:50 +02:00
Elie 9ec8c14156 Truncate file when opening file in json output 2021-04-13 14:02:50 +02:00
sundowndev 64050b34f9 fix(resource): ignore FinalSnapshotIdentifier field 2021-04-13 14:02:50 +02:00
sundowndev b8113671d8 test(analyser): fix sorting in expected result 2021-04-13 14:02:50 +02:00
sundowndev a637de6f8c refactor: sort difference's changelogs 2021-04-13 14:02:50 +02:00
sundowndev fa9132f14c fix: resource diff sorting 2021-04-13 14:02:50 +02:00
sundowndev 753dd50286 test(analyser): enable slice ordering 2021-04-13 14:01:35 +02:00
Louis TOUSSAINT 32daca00c4 Issue 371: RePrint p.count.load to display last number of resources scanned and hide animation character when progress bar end 2021-04-13 14:01:35 +02:00
sundowndev 01a637f494 refactor(cmd): rename deleted to missing in json output 2021-04-13 14:01:35 +02:00
sundowndev 03fc4062be test: scan output 2021-04-13 14:01:35 +02:00
sundowndev 6ff780ce51 refactor(cmd): more human readable output 2021-04-13 14:01:35 +02:00
Louis TOUSSAINT afb9c9a648 Issue 367: Add details to error reporting flag in help message, similar to driftctl-docs 2021-04-13 14:01:35 +02:00
Louis TOUSSAINT 0c07b278ef Issue 369: Remove LastModified field for aws_lambda_function from drift reports 2021-04-13 14:01:35 +02:00
sundowndev a348019115 chore: fix lint errors 2021-04-13 14:01:35 +02:00
Raphaël ff0ffcb5d7 fix(analyser): link to docs about limitations 2021-04-13 14:01:35 +02:00
William Beuil d797d35d7a
Testing middlewares that create resources 2021-04-08 11:58:37 +02:00
sundowndev c262472255 refactor: http request error handling 2021-04-07 15:12:30 +02:00
sundowndev 1fda9be6f4 refactor: use proper errors pkg 2021-04-07 14:11:18 +02:00
sundowndev fc43dcd211 fix: return error on bad http status code 2021-04-07 14:11:18 +02:00
Elie 2b71c8e650 Add resource factory 2021-04-06 16:43:35 +02:00
Elie 7c112a8bfe Add tests for driftctl 2021-03-31 17:53:36 +02:00
William Beuil 0881b44577
Refactoring to filter on Cty.Value 2021-03-29 10:28:39 +02:00
Elie e238772b70 Revert "Disable event source mapping acc test in CI"
This reverts commit 4ac3ca9e59.
2021-03-26 09:55:31 +01:00
Martin Guibert eaef50ce9b remove table replica to speed up acc tests 2021-03-25 11:34:23 +01:00
Elie cf5ab98f83 Add more timeout for dynamodb table creation 2021-03-25 11:05:19 +01:00
Elie 4ac3ca9e59 Disable event source mapping acc test in CI 2021-03-25 11:00:25 +01:00
sundowndev 06f7d4f110
test: analyser package 2021-03-22 12:08:53 +01:00
sundowndev b36fdaea1c
test: analyser package 2021-03-22 12:02:06 +01:00
sundowndev a714bab62a
fix: sort method 2021-03-22 11:59:09 +01:00
sundowndev 7c7d24f76a
test: sorting resources by type & id 2021-03-22 11:35:23 +01:00
sundowndev 286a07520c
refactor: use new differ ordering 2021-03-22 11:17:50 +01:00
sundowndev eba0839c6e
refactor: use SliceStable instead of Slice method 2021-03-22 10:16:25 +01:00
sundowndev edb5de32c0
test: remove duplicate test case 2021-03-19 19:24:04 +01:00