Commit Graph

2277 Commits (a3f41568e0ccdac4df4d9582151c7d8979893073)

Author SHA1 Message Date
allcontributors[bot] 12a7b5b90e
docs: update .all-contributorsrc [skip ci] 2022-02-21 13:21:31 +00:00
allcontributors[bot] a56c6b6e28
docs: update CONTRIBUTORS.md [skip ci] 2022-02-21 13:21:30 +00:00
Martin d1491792d9
Merge pull request #1354 from wakeful/json-output-and-human-readable-attributes
adding `humanReadableAttributes` to JSON output
2022-02-21 14:20:44 +01:00
AJ 353c189005 adding `human_readable_attributes` to JSON output
Related: https://github.com/snyk/driftctl/issues/1325
2022-02-21 13:15:13 +00:00
Murat Celep ff40aa55a0
Merge ignore pattern based tests into existing tests 2022-02-21 11:43:08 +01:00
Craig Furman 7ecaad2289
Merge pull request #1353 from snyk/feat/disambiguate-exit-codes
Disambiguate between drift and error exit codes
2022-02-21 09:37:01 +00:00
Murat Celep 072e0bed58
Minor refactoring 2022-02-21 10:24:43 +01:00
Murat Celep caa10fedc0
rename test method to emphasize purpose of the test 2022-02-21 10:00:33 +01:00
Craig Furman 959e489bd4 Disambiguate between drift and error exit codes
`driftctl scan` exits with zero only when there is no detected drift.
Prior to this commit, it exited with 1 when there was a non-panic error,
and also when there was detected drift. This makes error handling in
scripts more awkward than it needs to be.

This commit changes the exit code to 2 whenever there are errors during
a scan, whether that error is from a panic or not, leaving 1 as the exit
code used solely for when drift is detected.

Related: https://github.com/snyk/driftctl/issues/1350
2022-02-17 17:39:35 +00:00
Murat Celep c6b53668ba
add test for ignore pattern processing 2022-02-17 09:57:34 +01:00
Murat Celep 9ad22d51db
add test for ignore pattern processing 2022-02-17 09:57:22 +01:00
Murat Celep 3ce9a1a177
extend ignore argument explanation 2022-02-17 09:56:50 +01:00
William BEUIL af2268a7a9
Merge pull request #1327 from snyk/feat/autolabel
Add issue-tagging script
2022-02-15 15:34:29 +01:00
sundowndev 74f4e331cb feat: add issue-tagging script 2022-02-15 18:17:33 +04:00
William BEUIL ddb1544eb0
Merge pull request #1351 from snyk/test/acc_aws
test: refactor retries
2022-02-14 17:49:08 +01:00
William Beuil de5db9f74d
test: refactor retries 2022-02-14 16:31:21 +01:00
Raphaël 6de27b66d6
Merge pull request #1347 from snyk/test/acc_google_compute
Add retry policy for remaining GCP acc tests
2022-02-14 18:31:47 +04:00
sundowndev ee5118ab13 refactor(test): add common exponential backoff function 2022-02-14 18:07:15 +04:00
Murat Celep 428ab77d89
Add a new ignores flag to parse ignore patterns as array 2022-02-14 11:58:12 +01:00
sundowndev 7192a7fee8 test(acc): google_compute_network_test 2022-02-14 10:44:31 +04:00
sundowndev 88b09ac832 test(acc): google_compute_instance_test 2022-02-14 10:44:06 +04:00
Raphaël d256d98a1c
Merge pull request #1345 from snyk/fix/acc_google_bigquery_table_test
Update retry policy for GCP acc tests
2022-02-11 14:39:57 +04:00
sundowndev 4a15b763d1 refactor(acceptance): add retry duration to debug logs 2022-02-11 11:10:56 +04:00
sundowndev ac8ab1362e test(acc): gcp
Increase the retry duration limit from 10 to 15 minutes.
2022-02-11 11:10:53 +04:00
sundowndev a323a14183 test(acc): google_bigquery_table_test
Increase the retry duration limit from 10 to 15 minutes.
2022-02-11 10:42:23 +04:00
Elie 506439d7bf
Merge pull request #1336 from snyk/feat/telemetry_iac_source_count
Add iac source count to telemetry
2022-02-09 15:05:01 +01:00
William BEUIL 66baef7a63
Merge pull request #1335 from snyk/chore/rename-acc-tests
AWS acceptance tests
2022-02-03 17:45:09 +01:00
William Beuil f801244453
chore: add retries on flaky acc tests 2022-02-03 10:09:12 +01:00
sundowndev f84b03f252 feat: add field to telemetry 2022-02-01 15:26:29 +04:00
Elie fc821fc46d
Merge pull request #1340 from snyk/test/google_compute_global_address
Add retry policy to google_compute_global_address acc test
2022-02-01 11:25:51 +01:00
William Beuil 1fc2e35810
chore: renamed TestAcc_Aws* to TestAcc_Aws_* and added missing AWS_REGION env 2022-02-01 11:16:50 +01:00
sundowndev b9b06b358a test(acc): google_compute_global_address 2022-02-01 12:07:18 +04:00
Raphaël 4051e58683
Merge pull request #1338 from snyk/chore/capitalize-terraform
Capitalize terraform in output
2022-01-31 10:33:42 +04:00
Karni Wolf 0a1ed7d01e
chore: capitalize Usage: terraform [global options] <subcommand> [args]
The available commands for execution are listed below.
The primary workflow commands are given first, followed by
less common or more advanced commands.

Main commands:
  init          Prepare your working directory for other commands
  validate      Check whether the configuration is valid
  plan          Show changes required by the current configuration
  apply         Create or update infrastructure
  destroy       Destroy previously-created infrastructure

All other commands:
  console       Try Terraform expressions at an interactive command prompt
  fmt           Reformat your configuration in the standard style
  force-unlock  Release a stuck lock on the current workspace
  get           Install or upgrade remote Terraform modules
  graph         Generate a Graphviz graph of the steps in an operation
  import        Associate existing infrastructure with a Terraform resource
  login         Obtain and save credentials for a remote host
  logout        Remove locally-stored credentials for a remote host
  output        Show output values from your root module
  providers     Show the providers required for this configuration
  refresh       Update the state to match remote systems
  show          Show the current state or a saved plan
  state         Advanced state management
  taint         Mark a resource instance as not fully functional
  test          Experimental support for module integration testing
  untaint       Remove the 'tainted' state from a resource instance
  version       Show the current Terraform version
  workspace     Workspace management

Global options (use these before the subcommand, if any):
  -chdir=DIR    Switch to a different working directory before executing the
                given subcommand.
  -help         Show this help output, or the help for a specified subcommand.
  -version      An alias for the "version" subcommand. in output for consistency
2022-01-30 11:51:10 +02:00
Karni Wolf 6f44cf1b0a
chore: rm redundant space 2022-01-30 11:50:20 +02:00
Raphaël 97595bb611
Merge pull request #1337 from snyk/fix/ci-curl-command
Fix string concatenation in curl command
2022-01-26 22:56:35 +04:00
Raphaël 20504b50e4
fix(ci): curl command
Fix bad variable string concatenation in cURL command
2022-01-26 10:50:19 +04:00
William BEUIL 8378e92134
Merge pull request #1334 from snyk/chore/metadata-test
chore: added a missing test and ordered resources
2022-01-25 11:35:41 +01:00
William Beuil ef3e77c308
chore: added a missing test and ordered resources 2022-01-24 17:37:37 +01:00
William BEUIL c62bf8d026
Merge pull request #1278 from snyk/fea/aws_apigatewayv2_integration_response
support aws apigatewayv2 integration response
2022-01-24 17:23:33 +01:00
Martin Guibert ec07e9a611
feat: support for aws_apigatewayv2_integration 2022-01-24 16:24:26 +01:00
William BEUIL 9874fe5d38
Merge pull request #1332 from snyk/feat/default-api-gateway-accounts
Ignore default aws_api_gateway_account resources
2022-01-24 15:16:00 +01:00
sundowndev 554728d4de
chore: fix typos in go comments 2022-01-24 18:06:05 +04:00
Raphaël e520281506
Merge pull request #1331 from snyk/changelog-script-shellcheck-issues
Fix shellcheck issues in changelog script
2022-01-24 16:37:51 +04:00
sundowndev 0965239d8e
fix: ignore default api gateway accounts 2022-01-24 16:00:00 +04:00
sundowndev 99ed042a1e
refactor(scripts): changelog
Fix shellcheck issues
2022-01-24 15:26:27 +04:00
Raphaël 926d1b8638
Merge pull request #1326 from snyk/test/acc-gcp-sleep-backoff
Add sleep-backoff to GCP ACC tests [CFG-1305]
2022-01-24 15:15:57 +04:00
William BEUIL cdd58bf2fa
Merge pull request #1329 from snyk/fix/acc-test-vpc-link
fix: assign a specific az while creating subnets
2022-01-24 10:43:57 +01:00
William Beuil 4673bb8bd1
fix: assign a specific az while creating subnets 2022-01-21 17:08:29 +01:00
sundowndev b1bd4c26fd
test(acc): add sleep-based backoff 2022-01-21 17:08:31 +04:00