Commit Graph

629 Commits (ea93b91a80201c19c00d12dfd6fddc46f443bd2a)

Author SHA1 Message Date
Mitchell Hashimoto 03931bfda9
helper/schema: ImportState must set ID on the resource data
10 years ago
Mitchell Hashimoto 445194ebdf
helper/schema: test ImportState
10 years ago
Mitchell Hashimoto 1685054a9a
helper/schema: cleaner way to store Ephemeral
10 years ago
Mitchell Hashimoto 84531a3fd5
helper/schema: sets Importable to true for resources that have importer
10 years ago
Mitchell Hashimoto 19609bde0e
helper/schema: can specify Importer on Resource, InternalValidate
10 years ago
Mitchell Hashimoto b8121ea63e
helper/schema: Resource.Data to return a ResourceData for a Resource
10 years ago
Mitchell Hashimoto 4e9877179c
helper/schema: start the resource importer
10 years ago
James Nugent 7b6df27e4a helper/schema: Read native maps from configuration
10 years ago
James Nugent f49583d25a core: support native list variables in config
10 years ago
Mitchell Hashimoto 35c87836b4 core: Add terraform_version to state
10 years ago
Paul Hinze b4df304b47
helper/schema: Normalize bools to "true"/"false" in diffs
10 years ago
Mitchell Hashimoto d85df63526
providers/aws: aws_instance id-only
10 years ago
Mitchell Hashimoto e0da21d381
helper/resource: make id-only check opt-in
10 years ago
Mitchell Hashimoto ff7b58f032
providers/aws: peering connection id-only test settings
10 years ago
Mitchell Hashimoto 0ef1b3b84a
providers/aws: response value for DescribeVpcAttribute needs to be
10 years ago
Mitchell Hashimoto 1db1bf6639
helper/resource: use the full config for id-only checks
10 years ago
Mitchell Hashimoto 0c8b0bff2c
helper/resource: can specify specific name to id refresh test
10 years ago
Mitchell Hashimoto 1a9fae6b2e
helper/resource: can disable ID refresh check
10 years ago
Mitchell Hashimoto 35f4201b9e
providers/aws: instance_tenancy is computed, set
10 years ago
Mitchell Hashimoto f2c4f8e9ba
helper/resource: fix tests
10 years ago
Mitchell Hashimoto 5c4f78796b
helper/resource: don't need to id-only check if no test steps
10 years ago
Mitchell Hashimoto a285c04dc9
helper/resource: only verify id-only run if no error
10 years ago
Mitchell Hashimoto baac14aaeb
helper/resource: guard id-only by acc var
10 years ago
Mitchell Hashimoto cb32cb8947
helper/resource: error if id-only check didn't run
10 years ago
Mitchell Hashimoto 86e0c853db
helper/resource: test for failing id-only refresh check
10 years ago
Mitchell Hashimoto 060b43fbd9
helper/resource: remove debug
10 years ago
Mitchell Hashimoto 4f6edf4fe4
helper/resource: id-only refresh testing
10 years ago
James Nugent cb8a0549e1 Merge pull request #5757 from hashicorp/f-output-testing
10 years ago
James Nugent 35f9d2e081 Add TestCheckOutput helper to resource testing
10 years ago
Radek Simko bf9f5879ca helper/resource: Remove NotFoundError function
10 years ago
James Nugent f946695187 Merge pull request #5444 from TimeIncOSS/f-aws-logs-metric-filter
10 years ago
Paul Hinze c3e27b3e0a provider/test: a test provider
10 years ago
Radek Simko fd2fcaf1d5 helper/resource: Implement resource-wide NotFoundError
10 years ago
Paul Hinze 25fce81bfc provider/aws: log HTTP req/resp at DEBUG level
10 years ago
Radek Simko 034287fdc2 helper/resource: Error shouldn't be returned in case of success
10 years ago
Radek Simko 8582f4df9f helper/resource: Fix TestRetry
10 years ago
Paul Hinze 108ccf0007 builtin: Refactor resource.Retry to clarify return
10 years ago
Paul Hinze 5160578e18 helper/resource: restore retval of resource.Retry on timeout
10 years ago
Martin Atkins c1ce8ff31a Merge pull request #5218 from paybyphone/paybyphone_set_maxitems
10 years ago
Radek Simko 8bdd92187c Merge pull request #4446 from TimeIncOSS/f-schema-new-resource
10 years ago
Paul Hinze bba8a79a52 acctests: log a line w/ the non-empty plan
10 years ago
Chris Marchesi 8c5354b7dc Add MaxItems attribute to Schema
10 years ago
Radek Simko ab73f2b762 helper: Add StateChangeConf.ContinuousTargetOccurence (int)
10 years ago
Trevor Pounds 0cd0ff0f8e Use built-in schema.HashString.
10 years ago
Mitchell Hashimoto 4576eaa966 helper/schema: replace config/lang
10 years ago
Mitchell Hashimoto 55a9b1ba4c helper/diff: replace ocnfig/lang
10 years ago
Paul Hinze 24048b4dca providers: Mention check number when acctest fails
10 years ago
Paul Hinze da872eee66 Merge pull request #4864 from hashicorp/phinze/aws-min-elb-cap-regression
10 years ago
Paul Hinze c70eab6500 aws: undeprecate min_elb_capacity; restore min capacity waiting
10 years ago
Paul Hinze 069425a700 consul: Fix several problems w/ consul_keys update
10 years ago
Paul Hinze 0b11ace9ac Merge pull request #4788 from hashicorp/phinze/skip-remote-test-option
10 years ago
Paul Hinze 6bafa74011 tests: allow opt-out of remote tests via env var
10 years ago
Ian Duffy 47ac10d66b Change resource.StateChangeConf to use an array for target states
10 years ago
Paul Hinze d59db52f06 helper/resource: Fix data race in resource.Retry
10 years ago
Paul Hinze a8d2ad3ebe refactor s3 bucket test to expect non-empty plan
10 years ago
Paul Hinze e916bd1527 provider/google: enchance storage acctests to avoid collisions
10 years ago
Paul Hinze 028664a015 provider/digitalocean: acctest improvements
10 years ago
Radek Simko 4c6ceef9b8 helper/schema: Allow identification of a new resource in update func
10 years ago
James Nugent e976d6e787 testing: Use a copy of pre-destroy state in destroy check
11 years ago
Paul Hinze edaf5795a5 Merge pull request #3257 from fatih/fix-nil-setting-schema
11 years ago
Paul Hinze 4bd4e18def core: use same logging setup for acctests
11 years ago
Paul Hinze 99244c5597 helper/schema: skip provider input for deprecated fields
11 years ago
Paul Hinze f1e7cec566 Merge pull request #3992 from svanharmelen/f-change-sets
11 years ago
Sander van Harmelen ef4726bd50 Change Set internals and make (extreme) performance improvements
11 years ago
Paul Hinze c7dc1c10a3 helper/schema: skip StateFunc when value is nil
11 years ago
Paul Hinze 938281024f helper/schema: name test cases w/ strings
11 years ago
Paul Hinze 6b6b5a43c3 provider/aws: serialize SG rule access to fix race condition
11 years ago
Radek Simko 1e3cc7b33f helper: Remove url helper (moved to go-getter)
11 years ago
Paul Hinze 7ffa66d1a5 ssh: accept private key contents instead of path
11 years ago
James Nugent f4c03ec2a6 Reflect new comment format in stringer.go
11 years ago
Martin Atkins a67182543c Nicer error when list/map assigned to string argument.
11 years ago
Mitchell Hashimoto 344e7c26b5 fix a bunch of tests from go-getter import
11 years ago
Paul Hinze 2a179d1065 helper/schema: ValidateFunc support for maps
11 years ago
Panagiotis Moustafellos e4845f75cc removed extra parentheses
11 years ago
Martin Atkins cc8e8a55de helper/schema: Default hashing function for sets
11 years ago
Martin Atkins 3fde993978 Merge #3336: Remove local multierror package.
11 years ago
Radek Simko 641b701830 schema: Make validation more strict
11 years ago
Sander van Harmelen 2ba8dc38fa Switch to go-multierror
11 years ago
Fatih Arslan f269d4fc8c schema: add test for nil string case
11 years ago
Fatih Arslan 8e7fc240f9 schema: delete non existing values
11 years ago
Anthony Scalisi 198e1a5186 remove various typos
11 years ago
Paul Hinze 7eb72e7a12 helper/schema: record schema version when destroy fails
11 years ago
Clint f979fd7dee Merge pull request #2571 from TimeIncOSS/f-aws-autogenerated-elb-name
11 years ago
Radek Simko 9882cc59d8 aws: Add regression test for renaming ecs_cluster
11 years ago
Sander van Harmelen 4a8ef78d33 Fixes #2676 by prefixing all Windows commands
11 years ago
Sander van Harmelen 97fd4f5b7d Tweaking the tests
11 years ago
Paul Hinze 5c38456b05 core: don't prompt for variables with defaults
11 years ago
Radek Simko 70b7243dd6 helper: Add resource.PrefixedUniqueId
11 years ago
Mitchell Hashimoto 2f08a2bb15 Merge pull request #2507 from hashicorp/b-set-remove
11 years ago
Mitchell Hashimoto 0100d4139b helper/schema: clean up style
11 years ago
Mitchell Hashimoto 6e509aedcb helper/schema: diff should include removed set items [GH-1823]
11 years ago
Paul Hinze 7238b3b4af core: encapsulate representation of StringList
11 years ago
Paul Hinze 10b3abf405 config: introduce StringList to abstract over list hack
11 years ago
Radek Simko 6fdbca8e58 Merge pull request #2466 from TimeIncOSS/f-schema-field-name-validate
11 years ago
Mitchell Hashimoto 6b7c2bcb35 Merge pull request #2450 from hashicorp/b-schema-validate-type
11 years ago
Mitchell Hashimoto 630646335f Merge pull request #2451 from hashicorp/b-provider-validate
11 years ago
Radek Simko 92db4802b6 schema: Add field name to ValidateFunc
11 years ago
Mitchell Hashimoto 4e7fcd4f42 helper/schema: test that validatefunc is not called with computed vals
11 years ago
Mitchell Hashimoto e36597cad7 helper/schema: internal validate as part of provider validation
11 years ago
Mitchell Hashimoto 4f391902a0 helper/schema: validate objects are objects [GH-2166]
11 years ago
Paul Hinze aa8cf572a8 Merge pull request #2265 from hashicorp/f-schema-validate-field
11 years ago
Paul Hinze 385b17d679 provider/template: don't error when rendering fails in Exists
11 years ago
Paul Hinze a4912cc51f helper/schema: limit ValidateFunc to primitives for now
11 years ago
Paul Hinze 49352db26f helper/schema: skip ValidateFunc on other errors
11 years ago
Paul Hinze 61fee6735d helper/schema: ValidateFunc
11 years ago
Svend Sorensen 943bf3c00a Use name of function in comment string
11 years ago
Clint Shryock 78e7519efa Updates from go generate
11 years ago
Sam Boyer b82bd0c280 Condense switch fallthroughs into expr lists
11 years ago
Mitchell Hashimoto dd24ed4b76 helper/schema: blank ID refresh doesn't exist [GH-1905]
11 years ago
Justin Campbell bb14bfa657 helper/schema: call InternalValidate w/ schemaMap{}
11 years ago
Paul Hinze 1e3d1b07e6 helper/schema: validate ConflictsWith against top-level
11 years ago
Paul Hinze a96a3372c6 provider/template: don't diff when there's no diff
11 years ago
Paul Hinze bc9792f4c5 helper/schema: tweak test anotation
11 years ago
Paul Hinze 051ba78554 Merge pull request #1824 from hashicorp/b-write-count-for-empty-maps
11 years ago
Andrew Langhorn bb4f7415ca Rename "The The" so that they can play songs again
11 years ago
Paul Hinze fbce3a3caa helper/resource: don't fail test on config warnings
11 years ago
Paul Hinze f2368428d3 helper/schema: write "attr.#": "0" for empty maps
11 years ago
Paul Hinze cebcee5c63 Merge pull request #1778 from josharian/template-provider
11 years ago
Phil Frost b082117e92 Implement AWS IAM resources
11 years ago
Phil Frost 33183c078b Implement a hash function for string sets
11 years ago
Paul Hinze a3101568c5 helper/schema: add clarifying GetOk test
11 years ago
Josh Bleecher Snyder 76bcac3031 providers/template: add tests, address review comments
11 years ago
Paul Hinze 1671f1e50c Merge pull request #1762 from hashicorp/f-add-test-for-nested-set-statefunc
11 years ago
Paul Hinze 15c75c501f Merge pull request #1483 from svanharmelen/f-winrm-support
11 years ago
Sander van Harmelen c9e9e374bb Adding some abstractions for the communicators
11 years ago
Paul Hinze 88744d569f helper/resource/testing: unit tests to cover #1770
11 years ago
Paul Hinze dbf6d1bd00 helper/resource: fix accidentaly swallowing of acctest step errors
11 years ago
Paul Hinze cb3cbffb19 helper/schema: add test for statefunc with nested sets
11 years ago
Paul Hinze 149e52ad1f helper/resource: verify refresh+plan after each step
11 years ago
Mitchell Hashimoto b96027ac87 Merge pull request #1656 from tpounds/bug-fix-prevent-neg-hash-all-operations
11 years ago
Phil Frost bd8ac4fe5e Better document StateChangeConf.WaitForState
11 years ago
Trevor Pounds 17b31925fe Prevent negative hashcodes for all set operations.
11 years ago
Mitchell Hashimoto 10fa50ce35 Merge pull request #1654 from hashicorp/b-neg-code
11 years ago
Mitchell Hashimoto 707aa36aec helper/schema: only use ~ on first char of code
11 years ago
Mitchell Hashimoto 77314a01d2 helper/schema: disallow negative hash codes
11 years ago
Paul Hinze 92ebb60293 helper/resource: ok let's actually use RFC4122
11 years ago
Paul Hinze d1106e9e22 helper/resource: add UniqueId() helper
11 years ago
Mitchell Hashimoto 1f46bc1926 helper/schema: validate unknown fields with computed values [GH-1507]
11 years ago
Mitchell Hashimoto 3176e5b44a Merge pull request #1595 from TimeIncOSS/aws-account-protection
11 years ago
Mitchell Hashimoto 54e3e6104e Merge pull request #1594 from TimeIncOSS/schema-conflicts-with
11 years ago
Mitchell Hashimoto 51951d68f4 helper/schema: change diff logic around maps to fix case #57 and #44
11 years ago
Mitchell Hashimoto 9c10a89cf8 helper/schema: FieldReaderMap should mark map as exists if anything set
11 years ago
Mitchell Hashimoto fa934d96d0 helper/schema: FieldReaderConfig detects computed maps
11 years ago
Mitchell Hashimoto dc69603cd4 helper/resource: docs
11 years ago
Matt Good 21b0a03d70 Support for multiple providers of the same type
11 years ago
Radek Simko 150fd00932 AWS account ID protection added
11 years ago
Radek Simko 34f48b3e06 Add schema.ConflictsWith[]
11 years ago
Radek Simko e0df74c863 Add schema.ConflictsWith[]
11 years ago
Mitchell Hashimoto de8666a5fa helper/ssh: add random number to script [GH-1545]
11 years ago
Mitchell Hashimoto 968a152df4 Merge pull request #1443 from hashicorp/f-acc-tests-check-empty-plan
11 years ago
Sander van Harmelen d90b3aa332 Merge pull request #1469 from svanharmelen/b-communicator-tests
11 years ago
Sander van Harmelen 02a41a8802 Fixing up the communicator tests
11 years ago
Mitchell Hashimoto db58c7dd33 providers/docker: default cert_path to non-nil so input isn't asked
11 years ago
Paul Hinze 7fe34d4547 providers: check for empty plan after each test step
11 years ago
Paul Hinze 66dbf91ffd helper/schema: ensure ForceNew set when Update is not
11 years ago
Tarrant f68c9eee63 Merge branch 'master' of https://github.com/hashicorp/terraform
11 years ago
Tarrant 6ad812e3d8 Merge branch 'ssh_agent'
11 years ago
Paul Hinze 97acccd3ed core: targeted operations
11 years ago
Tarrant 05407296c6 Add cleanup function to close SSHAgent
11 years ago
Paul Hinze 3ba8ed536b helper/schema: record schema version on apply
11 years ago
Tarrant 164f303da4 Add SSH Agent support
11 years ago
Paul Hinze 558775d115 Merge pull request #1184 from hashicorp/f-update-ssh-import
11 years ago
Paul Hinze a24c21bd2c Merge pull request #1152 from hashicorp/f-helper-schema-versioning
11 years ago
Paul Hinze 85caf9d8d7 helper/ssh: update import location
11 years ago
Paul Hinze 3d4b55e557 helper/schema: schema versioning & migration
11 years ago
Paul Hinze ef70c8cae5 helper/schema: allow Schema attrs to be Removed
11 years ago
Paul Hinze 888f16d2d3 helper/schema: allow Schema attrs to be Deprecated
11 years ago
Paul Hinze 000238835c helper/schema: [tests] add names to Validate tests
11 years ago
Mitchell Hashimoto 58a8776c41 helper/schema: test real nil pointer to ResourceData.Set
11 years ago
Mitchell Hashimoto c030148259 helper/schema: allow pointer values to ResourceData.Set
11 years ago
Mitchell Hashimoto 2feaebdca5 config: substring containing computed value replaces element
11 years ago
Jack Pearkes c180487af6 helper/resource: allow configuration of not found checks in state change
11 years ago
Mitchell Hashimoto 0bc0c03fec helper/schema: zero value set should set function [GH-1009]
11 years ago
Mitchell Hashimoto 9b8b38cbb1 helper/schema: test that set can be nil
11 years ago
Mitchell Hashimoto e4f0f6b15d helper/schema: more tests
11 years ago
Mitchell Hashimoto dd00001c9a helper/schema: tests that all pass as I was trying to track down a bug
11 years ago
Mitchell Hashimoto 17680bb7ff helper/schema: some more test cases, revert some weird behavior from
11 years ago
Mitchell Hashimoto 659a77c6ae helper/schema: validate subresources more effectively
11 years ago
Mitchell Hashimoto fa7f496bef helper/schema: zero value of a set should be empty
11 years ago
Mitchell Hashimoto 7d32c8946a helper/schema: GetOk now only returns true if set to non-zero value
11 years ago
Mitchell Hashimoto e04def93e6 Merge pull request #991 from hashicorp/b-autoscale-lc-update
11 years ago
Mitchell Hashimoto faec39b8c1 Merge pull request #990 from hashicorp/b-set-change
11 years ago
Mitchell Hashimoto 5a64d0900b providers/aws: test for allowing in-place lC update
11 years ago
Mitchell Hashimoto 66f7731995 helper/schema: GetChange shouldn't return true when no change
11 years ago
Mitchell Hashimoto 5c06cc386a helper/schema: empty map values should show up in diff [GH-968]
11 years ago
Mitchell Hashimoto e9778c85a5 helper/schema: clarify test
11 years ago
Mitchell Hashimoto dbfb95fcd5 helper/schema: show in diff when no config is going to empty set
11 years ago
Mitchell Hashimoto fd274d7328 helper/schema: update test desc
11 years ago
Mitchell Hashimoto bcdec738d4 helper/schema: default the new value to zero only for the decode
11 years ago
Mitchell Hashimoto ad6be99f5b helper/schema: failing test
11 years ago
Mitchell Hashimoto 2ee2b9e26f Merge pull request #986 from hashicorp/b-remove-set
11 years ago
Mitchell Hashimoto 2212d6895d helper/schema: diff with set going to 0 elements removes it from state
11 years ago
Mitchell Hashimoto c22ba7d3a8 helper/schema: fix test index
11 years ago
Mitchell Hashimoto cbcfb26ec6 helper/schema: add test for sets
11 years ago
Mitchell Hashimoto b778a65a83 helper/schema: diff of zero value in state with lack of value should not
11 years ago
Mitchell Hashimoto 61215d8826 Merge pull request #919 from ceh/url-helper
11 years ago
Clint Shryock 4c7b732dad typo
11 years ago
Clint Shryock 5602348695 formatting, cleanups
11 years ago
Clint Shryock a5040ecc03 Update hashcode to always generate a positive
11 years ago
Emil Hessman e7bbbfb098 helper/url: add Windows 'safe' URL Parse wrapper
11 years ago