This project is mirrored from https://:*****@github.com/hashicorp/terraform.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 04 Feb, 2019 1 commit
-
-
Radek Simko authored
-
- 02 Feb, 2019 10 commits
-
-
Nick Fagerlund authored
-
Nick Fagerlund authored
-
Nick Fagerlund authored
-
Nick Fagerlund authored
-
Nick Fagerlund authored
-
Nick Fagerlund authored
-
Nick Fagerlund authored
-
Nick Fagerlund authored
Because of the different possibilities for arranging the nav sidebars, we want to make sure: - IDs for the 0.11 and 0.12 language docs have a common prefix. - That prefix is not the exact string `docs-config`. Have I mentioned before that I really dislike this prefix matching behavior.
-
Nick Fagerlund authored
This is a non-working commit, because a bunch of links (including the sidebar nav) are broken. Using a transition commit like this makes it easier to see the changes necessary to get this content woven into the site.
-
Martin Atkins authored
Just as with 336b352d, this refreshes our rate limit bypass cookie for go.googlesource.com since the old one has apparently expired. I did this by visiting https://go.googlesource.com/ and selecting "Generate Password" from the top navigation. This cookie belongs to a test account used by the Terraform team and should not be used by non-Terraform codebases; please generate your own!
-
- 01 Feb, 2019 14 commits
-
-
Martin Atkins authored
Previously we were using the type name requested in the import to select the schema, but a provider is free to return additional objects of other types as part of an import result, and so it's important that we perform schema selection separately for each returned object. If we don't do this, we get confusing downstream errors where the resulting object decodes to the wrong type and breaks various invariants expected by Terraform Core. The testResourceImportOther test in the test provider didn't catch this previously because it happened to have an identical schema to the other resource type being imported. Now the schema is changed and also there's a computed attribute we can set as part of the refresh phase to make sure we're completing the Read call properly during import. Refresh was working correctly, but we didn't have any tests for it as part of the import flow.
-
Martin Atkins authored
This fixes a bug in the TestConformance function that was generating false positives when given two object types with the same number of attributes but not identical attribute names.
-
Kristin Laemmert authored
* command/jsonstate: do not hide SchemaVersion of '0' * command/jsonconfig: module_calls should be a map * command/jsonplan: include current terraform version in output * command/jsonconfig: properly marshal expressions from a module call Previously this was looking at the root module's variables, instead of the child module variables, to build the module schema. This fixes that bug.
-
Radek Simko authored
vendor: github.com/hashicorp/go-azure-helpers@0.3.2
-
Radek Simko authored
make: Make test-compile module-aware
-
Martin Atkins authored
This checking helper is frequently used in provider tests for data sources, as a shorthand to verify that an attribute of the data source matches with the corresponding attribute on a managed resource. Since we now leave empty collections null in more cases, this function is sometimes effectively asked to verify that a given attribute is _unset_ in both the data source and the resource, so here we slightly adjust the definition of the check to consider two nulls to be equal to one another, which at this layer manifests as the keys not being present in the state attributes map at all. This check function didn't previously have tests, so this commit also adds a basic suite of tests, including coverage for the new behavior.
-
Radek Simko authored
-
Radek Simko authored
-
Radek Simko authored
-
Radek Simko authored
make: Pull all generate dependencies before generating
-
Radek Simko authored
command: Fix TestUiHookPostApply_emptyState
-
James Bardin authored
change copyMissingValues to normalizeNullValues
-
Nick Fagerlund authored
-
James Bardin authored
While copyMissingValues was meant to re-insert empty values that were null after apply, it turns out plan is sometimes not predictable as well. normalizeNullValue is meant to fix up any null/empty transitions between to values, and be useful during plan as well. For plan the function only concerns itself with individual, known values, and skips sets entirely. The result of running with plan == true is that only changes between empty and null collections should be fixed.
-
- 31 Jan, 2019 6 commits
-
-
Martin Atkins authored
We were previously using cty.Path.Apply, which serves a similar purpose but implements the more restrictive traversal behaviors down at the cty layer. hcl.ApplyPath uses the same rules as HCL expressions and so ensures consistent behavior with normal user expressions. cty.Path.Apply also previously had a crashing bug (discussed in #20084) that was causing a panic here. That has now been fixed in cty, but since we're no longer using it here that's a moot point. The HCL traversing implementation has been fuzz-tested and unit tested a lot more thoroughly so should not run into the same crashers we saw with cty before.
-
Martin Atkins authored
The cty change here fixes a panic situation when cty.Path.Apply is given a null value, making it now correctly return an error. However, the HCL2 change includes an alternative to cty.Path.Apply that uses HCL-level rules rather than cty-level rules, so the result behaves like an HCL expression would. Most uses of cty.Path.Apply ought to use hcl.ApplyPath instead, to ensure that the behavior is consistent with what users expect in the main language.
-
Radek Simko authored
vendor: github.com/hashicorp/terraform-config-inspect@latest
-
Radek Simko authored
-
Radek Simko authored
-
Martin Atkins authored
An earlier commit incorrectly updated some versions in go.mod without also updating the vendor tree, so this also rolls those back to where they used to be so that we can roll them forward carefully and make sure the tests actually pass. (If we just accept these new versions as specified the tests do not pass, so some work is required to fix those regressions.)
-
- 30 Jan, 2019 9 commits
-
-
James Bardin authored
decode legacy timeouts
-
James Bardin authored
The new decoder is more precise, and unpacks the timeout block into a single map, which ResourceTimeout.ConfigDecode was updated to handle. We however still need to work with legacy versions of terraform, with the old decoder.
-
James Bardin authored
Improve list block handling in diff application
-
James Bardin authored
-
James Bardin authored
When elements are removed from a list, all attributes may not be present in the diff. Once the individual attributes diffs are applied, use the length to truncate the flatmapped list to the correct length.
-
James Bardin authored
With the new diff.Apply we can keep the diff mostly intact, but we need turn off all RequiresNew flags so that the prior state is not removed from the apply.
-
Kristin Laemmert authored
* command/format: include nested blocks in terraform show output * command/format: fix tests
-
Martin Atkins authored
One quirky aspect of our import feature is that we allow the importer to produce additional resources alongside the one that was imported, such as to create separate rules for each rule of an imported security group. Providers need to be able to set the types of these other resources since they may not match the "main" resource type. They do this by calling ResourceData.SetType, which in turn sets InstanceState.Ephemeral.Type. In our shims here we therefore need to copy that out into our new TypeName field so that the new core import code can see it and create the right type in the state. Testing this required a minor change to the test harness to allow the ImportStateCheck function to see the resource type.
-
Radek Simko authored
vendor: Bump dependencies (to versions w/ clean deps)
-