Commit Graph

575 Commits (f2dbf80badc8c7385a7b44bb040ae5e8550e7e60)

Author SHA1 Message Date
Sander van Harmelen b62a22ab62 Add a VariableSourceType for names .tfvars files
8 years ago
Sander van Harmelen b846c5f653 Make the test compile again
8 years ago
Sander van Harmelen 48ef7ecfa6 Updates after running `make fmt` with Go v1.11.1
8 years ago
James Bardin 0a0eece15c add backend cli options after configuration
8 years ago
Martin Atkins 541952bb8f Revert some work that happened since v0.12-dev branched
8 years ago
Martin Atkins 98bbd560b5 command: Fix most (but not all) "terraform plan" tests
8 years ago
Martin Atkins 741d334ee4 command: Even more fixes for "apply" command tests
8 years ago
Martin Atkins c5940f2438 backend/local: Increase log verbosity for backend context construction
8 years ago
Martin Atkins a6f399517b backend/local: reinstate additional steps in plan file processing
8 years ago
Martin Atkins 91d2de6a25 backend/local: Stub out remaining planfile todos with errors
8 years ago
Martin Atkins fa3b4fc9de backend/local: Populate changes into a context built from planfile
8 years ago
Martin Atkins cbc548eb36 command: Do CLI init of backend loaded from plan
8 years ago
Martin Atkins 2b80df0163 backend/local: Require caller to set PlanOutBackend with PlanOutPath
8 years ago
Kristin Laemmert 2d3cb87789 backend/local tests tests tests
8 years ago
Kristin Laemmert 6a37ee9277 backend/local: more tests passing
8 years ago
Kristin Laemmert 56b879d0c0 backend/local: updated DiffFn adn ReadResourceFn for new models
8 years ago
Kristin Laemmert 64f696d9b3 backend/local refresh tests refactor
8 years ago
Kristin Laemmert e84def1e29 backend/local: test fixes
8 years ago
Kristin Laemmert d865df7338 revert to explicitly declare schema for TestLocal_applyEmptyDirDestroy
8 years ago
Kristin Laemmert 739bd5ef0d backend/local tests
8 years ago
Martin Atkins 1c007473ba backend: TestBackendConfig to allow nil config body
8 years ago
Martin Atkins 8565c7460e backend/remote-state/inmem: remove FIXME guards on tests that no longer hang
8 years ago
Martin Atkins 20727945ee backend/remote-state/inmem: enable optional logging in tests
8 years ago
Martin Atkins aaf405b662 backend/remote-state: Get all the backend tests building again
8 years ago
Martin Atkins b0016e9cf6 command: Allow tests to run to completion without panics or hangs
8 years ago
Kristin Laemmert 3da04ef9fc backend/local: adding some informative comments to commented-out tests
8 years ago
Kristin Laemmert c661157999 plans/objchange: further harden ProposedNewObject against ~weird~
8 years ago
Kristin Laemmert 2808df48ec backend/local WIP commit - fixing tests
8 years ago
Kristin Laemmert fbe959ae6e backend/local: fix panic in tests
8 years ago
Martin Atkins a43b7df282 core: Handle forced-create_before_destroy during the plan walk
8 years ago
Martin Atkins 5390fb1eed backend/local: Don't count outputs for choosing diff action symbols
8 years ago
Martin Atkins 20318ca193 backend/local: Sort planned resource changes before rendering them
8 years ago
Martin Atkins 239a54ad6f command: initial structural diff rendering
8 years ago
Martin Atkins a6b5980a4f backend/local: Bail immediately if terraform.Context can't be created
8 years ago
Martin Atkins 44bc7519a6 terraform: More wiring in of new provider types
8 years ago
Martin Atkins a3403f2766 terraform: Ugly huge change to weave in new State and Plan types
8 years ago
Martin Atkins 479c6b2466 move "configschema" from "config" to "configs"
8 years ago
Martin Atkins ebc6238bee backend/local: Update tests for changes in "terraform" package
8 years ago
Martin Atkins c937c06a03 terraform: ugly huge change to weave in new HCL2-oriented types
8 years ago
Martin Atkins ebafa51723 command: Various updates for the new backend package API
8 years ago
Martin Atkins 5782357c28 backend: Update interface and implementations for new config loader
8 years ago
James Bardin a79d620f03 remove legacy remote state code
8 years ago
James Bardin 979faa5dbe move artifactory remote state to backend
8 years ago
James Bardin 18ef072325 move legacy http remote state to a backend
8 years ago
James Bardin fe527ec9d7 move legacy etcd remote state to a backend
8 years ago
Martin Atkins bd10b84a8e command/format: include source snippets in diagnostics
8 years ago
Sander van Harmelen 8875fa660f Make sure we also output policies while planning
8 years ago
Sander van Harmelen 775f8a9626 Make sure we always set a custom header
8 years ago
Sander van Harmelen 0a59e54933 Improve the output just a bit
8 years ago
Sander van Harmelen c08cd597c5 Omit any empty lines containing STX/ETX markers
8 years ago
Sander van Harmelen fb0af07696 Print status updates while waiting for the run to start
8 years ago
Sander van Harmelen d78470ad5a Don’t ask questions when -auto-approve is set
8 years ago
Sander van Harmelen 53a8aaaf85
Merge pull request #19022 from hashicorp/f-auto-apply
8 years ago
Sander van Harmelen 194863db4e Properly handle workspaces that auto apply changes
8 years ago
Sander van Harmelen b1fdbd7db8 Allow enhanced backends to pass custom exit codes
8 years ago
Sander van Harmelen 67db9da000 Add checks for all flags we currently don’t support
8 years ago
Sander van Harmelen ffc67a8e90 Prevent running plan or apply without permissions
8 years ago
Sander van Harmelen 53d322ec69 Test lock timeout errors when running a plan
8 years ago
Sander van Harmelen c12f0355a7 Revert "Merge pull request #18980 from hashicorp/f-policy-output"
8 years ago
Sander van Harmelen a2241e7c43 backend/remote: introduce support for `-no-color`
8 years ago
Sander van Harmelen f09c2db8d2
Merge pull request #18980 from hashicorp/f-policy-output
8 years ago
Sander van Harmelen 3979aec0ae Ask to cancel a pending remote operation
8 years ago
Sander van Harmelen 37f5ab3500 Only show the full policy output when it fails
8 years ago
Sander van Harmelen b28f47055d backend/remote: extend mocks and add sentinel tests
8 years ago
Sander van Harmelen 2bd1040bbd backend/remote: extend mocks and add apply tests
8 years ago
Sander van Harmelen 9f9bbcb0e7 backend/remote: lots of improvements
8 years ago
Sander van Harmelen 621d589189 backend/remote: add support for the apply operation
8 years ago
Kristin Laemmert 813b5fd27f
Merge pull request #18825 from sean-/master-make-dev-drift
8 years ago
Sander van Harmelen 4aeb67b8ff backend/remote: handle empty results correctly
8 years ago
Sander van Harmelen ea88daa499 backend/remote: add support for state locking
8 years ago
Sander van Harmelen 7c1da2ffaa
Merge pull request #18818 from hashicorp/b-associate-state
8 years ago
Sander van Harmelen cd6d75bc03 backend/remote: add the run ID to associate state
8 years ago
Sander van Harmelen 3cc58813f0 backend/remote: use a search query and use pagination
8 years ago
Sean Chittenden d749420a25
Fix drift caused from gofmt when running make dev and go 1.11.
8 years ago
Sander van Harmelen 62ab84a319 backend/remote: compat changes for latest `go-tfe`
8 years ago
Sander van Harmelen 3cfc83e335 backend/remote: take working directories into account
8 years ago
Sander van Harmelen ce2869dced
Merge pull request #18760 from hashicorp/f-remote-backend
8 years ago
Sander van Harmelen f410a5bb26 backend/migrations: migrate the default state
8 years ago
Sander van Harmelen 77b9fad7f0 backend/manta: deprecate camelcase attribute name
8 years ago
Sander van Harmelen 7049d973a9 Do not use the TFE_TOKEN env variable
8 years ago
Sander van Harmelen 83d5f4147b backend/remote: use schema max/min items options
8 years ago
Sander van Harmelen 7fb2d1b8de Implement the Enterprise enhanced remote backend
8 years ago
Sander van Harmelen 495d1ea350 Use New() instead of `once.Do(b.init)`
8 years ago
Sander van Harmelen 97d1c46602 Update the backend import names
8 years ago
Kristin Laemmert 85be12d783
cli: show workspace name in destroy confirmation (#18253)
8 years ago
stack72 df9b2913ae backend/manta: Add support for manta backend tiered path structure
8 years ago
James Bardin 28c46d1a90 cleanup temp files from backend tests
8 years ago
stack72 a6f76aa0af backend/manta: Manta Backend was not dealing with a ResourceNotFound
8 years ago
Martin Atkins 6aefa5835c Merge #17218: Add -auto-approve to "terraform destroy" for consistency
8 years ago
Paul Tyng c868092d2d
Standardize http.Client creation with User-Agent
8 years ago
James Bardin e9a76808df create clistate.Locker interface
8 years ago
James Bardin 8242c773b8 missed the local state backend
8 years ago
James Bardin 57cbcbe99d update remote state tests to use new test helpers
8 years ago
James Bardin 112c37458f report the proper lock id from a state lock error
8 years ago
James Bardin 1fee5ae172 update gcs to use the new backend tests
8 years ago
James Bardin 85d6b1d9cc add test for lock error and force-unlock
8 years ago
James Bardin ef8ed1e275 coalesce the backened interrupt code
8 years ago
James Bardin 7cba68326a always wait for a RunningOperation to return
8 years ago
Laura Martin 6e1e614a56 Change -force to -auto-approve when destroying
8 years ago
James Bardin a5ed7d0ae4
Merge pull request #17086 from hashicorp/jbardin/GH-17083
8 years ago
stack72 e9476c6765 backend/manta: Update manta dependencies
8 years ago
Masayuki Morita f440dba137 Standardize on log level "WARN" rather than "WARNING"
8 years ago
James Bardin 43d000625d only split the prefix string once from the s3 key
8 years ago
Stefan Schmidt c200c170ad Handle refresh errors.
8 years ago
Paddy e4cdbd6c9f
Merge pull request #16936 from negz/gcskeys
8 years ago
James Bardin 7c703f2ab2
Merge pull request #16932 from rv-jmaggio/master
8 years ago
James Bardin dd5882e5b2
Merge pull request #16992 from hashicorp/jbardin/go1.10-prep
8 years ago
goraxe fb6b349e58 backend/s3: Allow forcing use of the S3 path-style API
8 years ago
Paul Stack 191cf283d5 backend/manta: Support Triton RBAC
8 years ago
James Bardin 4b49a323c3 go fmt
8 years ago
rv-jmaggio b313ce80c4 Changing prefix for empty workspace prefix
8 years ago
Henry Bell 56357c0ab7 Fix typo ('depracted' -> 'deprecated')
8 years ago
rv-jmaggio bef64cfe91 Fixing implementation for empty string and making acceptance test work
8 years ago
rv-jmaggio b02a1c8a46 clarifying tests and using SplitN in implementation
8 years ago
Nic Cope 011841124b Support 'customer supplied encryption keys' in the GCS backend
8 years ago
rv-jmaggio 7f8d686074 refactor and add a test
8 years ago
rv-jmaggio 0889c118a8 Fixing issues with workspace_key_prefix
8 years ago
Rob Campbell 5daeee5f6d Update various files for new version of "stringer"
8 years ago
James Bardin 52eced589f accept a path or contents for credentials
8 years ago
James Bardin 2932203492 verify that a state can be read even when locked
8 years ago
James Bardin 9dea2f78d4 create unique buckets for each test, and clean up
8 years ago
James Bardin aec45e6967 backends should never create unmanaged resources
8 years ago
Kaveh Mousavi Zamani 7507e3cd21 backend/gcs: fix locking issue when used with terraform_remote_state
8 years ago
James Bardin 12b7dac124
Merge pull request #16833 from hashicorp/jbardin/plan-shutdown
9 years ago
Sander van Harmelen aaedf255c3 backend/s3: allow skipping the region check (#16757)
9 years ago
James Bardin 85295e5c23 watch for cancellation in plan and refresh
9 years ago
Martin Atkins ba0514106a return tfdiags.Diagnostics from validation methods
9 years ago
James Bardin 00b7715710
Merge pull request #16586 from hashicorp/jbardin/providers
9 years ago
Nic Cope 27ba7de77d backend/gcs: automatically add trailing slash to prefix
9 years ago
James Bardin 09180a10ff cannot destroy without a config
9 years ago
James Bardin d62e9217ae update test state strings for backend/local
9 years ago
Malik Bougacha ed0d57d1b7 Get the enviroment from the environment variable (#16326)
9 years ago
stack72 1fd0f803e4 Migrate Manta Remote state to be a backend
9 years ago
James Bardin cf54ca3b0f update tests for new consul packages
9 years ago
James Bardin 3a03d3683e update consul api packages
9 years ago
Martin Atkins 671aace8ec backend/local: disable local backup of remote state
9 years ago
James Bardin 55089e472d
Merge pull request #16484 from hashicorp/f-gcloud-backend
9 years ago
Florian Forster afa13a3d8e backend/remote-state/gcs: Move toBucketName to the tests.
9 years ago
Florian Forster 3023ae2813 backend/remote-state/gcs: Include project ID in bucket names when testing.
9 years ago
Florian Forster dcb84ee2c2 backend/remote-state/gcs: Sanitize bucket names.
9 years ago
Florian Forster 454d6bbe2a backend/remote-state/gcs: Delete test buckets after tests complete.
9 years ago
Florian Forster a6669c9e99 backend/remote-state/gcs: Don't enable versioning on new buckets.
9 years ago
Florian Forster a84823f597 backend/remote-state/gcs: Require TF_ACC for tests using the network.
9 years ago
Florian Forster 72ccf22a92 backend/remote-state/gcs: Implement additional tests.
9 years ago
Florian Forster 927085289d backend/remote-state/gcs: Implement the "region" config option.
9 years ago
Florian Forster 9583d0945c backend/remote-state/gcs: Add support for the GOOGLE_PROJECT environment variable.
9 years ago
Florian Forster 37dc95158d backend/remote-state/gcs: Enable versioning on automatically created buckets.
9 years ago
Florian Forster df386d3133 backend/remote-state/gcs: Automatically create the bucket if needed.
9 years ago
Florian Forster 14263223e7 backend/remote-state/gcs: Simplify initialization of the GCS client.
9 years ago
Florian Forster 816c98f387 backend/remote-state/gcs: Read credentials with ioutil.ReadFile().
9 years ago
Florian Forster c00e929ee5 backend/remote-state/gcs: Mark the "path" option as deprecated.
9 years ago
Florian Forster 91b1a39a40 backend/remote-state/gcs: Implement an end-to-end test.
9 years ago
Florian Forster 14bfbf0617 backend/remote-state/gcs: Document the "prefix" option.
9 years ago
Florian Forster c054bd0939 backend/remote-state/gcs: Rename "gcloud" to "gcs" for backwards compatibility.
9 years ago
Florian Forster 93a55f15e9 backend/remote-state/gcloud: Add test for Backend.{state,lock}File().
9 years ago
Florian Forster 5a4e2076e9 backend/remote-state/gcloud: Add the "path" config option.
9 years ago
Florian Forster f80b872bc3 backend/remote-state/gcloud: Unify on the "context" package.
9 years ago
Florian Forster 5d4e25ada4 backend/remote-state/gcloud: Make gcsBackend private.
9 years ago
Florian Forster 9ec39573ee backend/remote-state/gcloud: Make remoteClient private.
9 years ago
Florian Forster 42e8441a2b backend/remote-state/gcloud: Refactor Backend.State().
9 years ago
Florian Forster 5cb574035a backend/remote-state/gcloud: Refactor Backend.remoteClient().
9 years ago
Florian Forster 9ae45e320f backend/remote-state/gcloud: Refactor Backend.DeleteState().
9 years ago
Florian Forster fabba5c0c8 backend/remote-state/gcloud: Refactor Backend.States().
9 years ago
Florian Forster 97e1aa7ce9 backend/remote-state/gcloud: Use the lock file's generation as lock ID.
9 years ago
Florian Forster edf2096e28 backend/remote-state/gcloud: Use the context provided to configure().
9 years ago
Florian Forster 2e5fca78c2 backend/remote-state/gcloud: Coding style changes.
9 years ago
Florian Forster f33005faba backend/remote-state/gcloud: Handle errors returned by Write(), too.
9 years ago
Florian Forster 1ee194986d backend/remote-state/gcloud: Add the RemoteClient.{state,lock}File() methods.
9 years ago
Florian Forster e54d36b489 backend/remote-state/gcloud: Sort standard library imports before other imports.
9 years ago
Florian Forster 52ac764036 backend/remote-state/gcloud: Rename Url -> URL
9 years ago
Florian Forster 5313e15e07 backend/remote-state/gcloud: Move the definition of the Backend struct.
9 years ago
Florian Forster def3279ec7 backend/remote-state/gcloud: Use package provided OAuth scope.
9 years ago
Piotrek Bzdyl 5854373018 Implemented GCloud backend supporting remote locking and multiple workspaces.
9 years ago
James Bardin b040cd0837 dynamoDB reads are not fully consisten by default
9 years ago
James Bardin 31912956ce Merge pull request #16290 from hashicorp/jbardin/s3-errors
9 years ago
James Bardin 611b1ced59 retry on s3 state upload errors
9 years ago
James Bardin f5e9a20c66 reset testLockHook
9 years ago
James Bardin 25a8227291 add broken test for lock lost on connection error
9 years ago
James Bardin fd9adcdb36 only init one consul client, and lower keepalive
9 years ago
James Bardin d0ecb232ae record consul session ID in lock info
9 years ago
James Bardin b20ab9f0bb Merge pull request #16243 from hashicorp/jbardin/s3-errors
9 years ago
bclodius fba02f0bea retry on s3 backend internal errors
9 years ago
James Bardin 91442b7146 Merge pull request #15680 from brunomcustodio/etcdv3-backend
9 years ago
James Bardin d477d1f6d4 Merge pull request #15553 from bonifaido/custom_s3_backend
9 years ago
James Bardin e0ee1e4d6e Merge pull request #16070 from octo/defaultdatadir
9 years ago
Martin Atkins 0fe43c8977 cli: allow disabling "next steps" message in terraform plan
9 years ago
Florian Forster ce85600cd4 backend/local: Remove unused const DefaultDataDir.
9 years ago
Bruno Miguel Custodio 524c3934c6
Add TLS support.
9 years ago
Bruno Miguel Custodio c8ff10f603
Reuse 'etcd' client.
9 years ago
Bruno Miguel Custodio 6daf1d9d84
Allow for username and password to be read from envvars.
9 years ago
Bruno Miguel Custodio 8f7b315037
Add documentation.
9 years ago
Bruno Miguel Custodio 54dc50ec5c
Cleanup 'etcd' after every test.
9 years ago
Bruno Miguel Custodio 3c21b9c56f
Get rid of 'keyEnvPrefix'.
9 years ago
Bruno Miguel Custodio 6570948bea
Fixing the test suite.
9 years ago
Bruno Miguel Custodio 038f5eb638
Remove 'lockSuffix' as not needed in 'etcd' v3.
9 years ago
Bruno Miguel Custodio bb4dec6032
Make sure we don't relock.
9 years ago
Bruno Miguel Custodio b8f4f6d3e2
Delete lock info when unlocking.
9 years ago
Bruno Miguel Custodio b896348230
Sort the result of 'Backend.States()'.
9 years ago
Bruno Miguel Custodio 70aad79b6e
Make 'endpoints' a schema.TypeList.
9 years ago
Bruno Miguel Custodio fee5cabeda
Make 'gofmt' happy.
9 years ago
Bruno Miguel Custodio 52c97e9fc9
First steps towards an 'etcdv3' backend.
9 years ago
tombuildsstuff d074b0da29 Obtaining the current metadata before setting it
9 years ago
tombuildsstuff a10d23dd95 Removing dead code
9 years ago
Minkyu Kim f12a237747 Fix crash when using consul backend
9 years ago
Martin Atkins 83414beb8f command: various adjustments to the diff presentation
9 years ago
Martin Atkins 3ea159297c command/format: improve consistency of plan results
9 years ago
James Bardin 76eb65c911 Fix crash in consul backend
9 years ago
Martin Atkins c12d64f340 Use t.Helper() in our test helpers
9 years ago
Loïc Albertin 21b287e919 backend/consul: allow specifying various Consul client security options
9 years ago
James Bardin 5d50e764ea deprecate the "azure" backend name
9 years ago
James Bardin 0e873d70ed Merge pull request #15840 from hashicorp/jbardin/deprecate-backend
9 years ago
James Bardin cc454fcc56 add the ability to mark a backend as deprecated
9 years ago
Peter McAtominey b74b26bcfa backend: alias azurerm to azure
9 years ago
Peter McAtominey 6b9b5ec297 backend/azure: update to latest SDK
9 years ago
Peter McAtominey f9e8e54835 backend: convert Azure remote state to a backend
9 years ago
James Bardin 2bb5007690 Merge pull request #15683 from hashicorp/jbardin/remote-state-lineage
9 years ago
James Bardin 4c7cd549cd don't allow leading slashes in s3 remote state key
9 years ago
James Bardin dc30761497 Merge pull request #15567 from hashicorp/jbardin/consul-update
9 years ago
James Bardin c3e943bed2 add another failing test for remote.State lineage
9 years ago
James Bardin 18d71f273e make inmem behave more like remote backends
9 years ago
James Bardin 5deef9621d export Reset()
9 years ago
James Bardin ac60ddcd40 Support named states in inmeme backend
9 years ago
James Bardin 1070d04b07 Remove consul context adapter for RenewPeriodic
9 years ago
James Bardin 9a7ffbfb1b Merge pull request #15566 from hashicorp/jbardin/state-serial
9 years ago
James Bardin dd9a54c661 Merge pull request #15435 from hashicorp/jbardin/state-path-message
9 years ago
James Bardin 50f412bff4 Merge pull request #15557 from hashicorp/jbardin/consul-lock-sessions
9 years ago
James Bardin a1727ec4c2 Add warning to mismatched plan state
9 years ago
James Bardin bcb11f6d89 have the consul client manage the lock session
9 years ago
James Bardin 193d4b868c backend state tests must honor lineage
9 years ago
Nandor Kracser f6c77339f2 Allow non-AWS S3 backends
9 years ago
James Bardin 3fb76f3ebb only show state path help if state is local
9 years ago
James Bardin 5066fa2151 Merge pull request #13871 from fatmcgav/swift_move_to_backend
9 years ago
Martin Atkins 6afa72f6ca command: minor adjustments to the -auto-approve=false UX
9 years ago
David Glasser 14af879fe0 command: also print plan for destroy
9 years ago
David Glasser 039d36bf91 command: add "apply -auto-approve=false" flag
9 years ago
Martin Atkins 45a4ba1ea7 Merge #15344: Avoid double-counting resources to create
9 years ago
James Bardin 42cbb716b7 Merge pull request #15370 from rowleyaj/s3_backend_workspaces
9 years ago
Alex Rowley 2dd464cf8f
Clarify field description
9 years ago
Chris Marchesi 5654a676d9 core: Skip diff hooks for stubs on eval altogether
9 years ago
Chris Marchesi 50cd33f781 core: Move Refreh/Plan diff count to general operation test
9 years ago
James Bardin 1fa7667ad4 s3 backend should use Client.Delete to DeleteState
9 years ago
James Bardin ebf4413e95 add named named state delete+create-delete test
9 years ago
James Bardin ac937a890d improve plugin reinit error text
9 years ago
James Bardin 7a955f990c make display plugin checksum error to user
9 years ago
Alex Rowley db40dc06ab
Add configurable workspace prefix for S3 Backend
9 years ago
James Bardin 5be15ed77c have the local backend provide a plugin init msg
9 years ago
Chris Marchesi f249386c8a core: Test to ensure PostDiff is ignoring stubs
9 years ago
Chris Marchesi 45528b2217 core: Instance/EvalDiff.Quiet -> Stub
9 years ago
Chris Marchesi eef933f2a7 core: Don't count scaled-out resources twice in the UI
9 years ago
Gavin Williams c2550e78cf Rename openstack provider for swift remote backend
9 years ago