Commit Graph

17432 Commits

Author SHA1 Message Date
Matthew Frahry d20783d2e5 Merge pull request #13135 from hashicorp/p-aws-randomize-test-names
P aws randomize test names
2017-03-28 15:45:05 -06:00
= 5662b7e60f add randomness to gateway and efs file system tests 2017-03-28 15:07:13 -06:00
= da7ef1bb76 added randomness to elastic beanstalk environment tests 2017-03-28 15:06:56 -06:00
= 52390473e2 Add randomness to roles for dms replication 2017-03-28 15:06:30 -06:00
Reed Loden c54d611990 Fix typo in `random_pet` documentation (#13133)
s/lenth/length/
2017-03-28 22:40:56 +03:00
Paul Stack 86f5a45aab Update CHANGELOG.md 2017-03-28 22:39:08 +03:00
James Nugent 0e3a7e6d0d helper/resource: Allow unknown pending states (#13099)
Sometimes when waiting on a target state, the set of valid states
through which a value will transition is unknown. This commit adds
support for an empty Pending slice and will treat any states that are not
the target as valid provided the timeouts are not exceeded.
2017-03-28 22:38:42 +03:00
Radek Simko 8496d0e510
docs/state: Fix broken link to remote state 2017-03-28 20:26:16 +01:00
Radek Simko 545013a784 docs/state: Sensitive data in state file (#13132) 2017-03-28 20:12:32 +01:00
Paul Stack ac766ef68e Update CHANGELOG.md 2017-03-28 22:08:33 +03:00
Paul Stack dcbfaabb95 provider/aws: Deprecate roles in favour of role in iam_instance_profile (#13130)
* provider/aws: Deprecate roles in favour of role in iam_instance_profile

You can only specify a single role to an IAM Instance Profile. So having
a slice of roles in the provider makes no sense. Therefore, we are going
to deprecate this infavour of `role`

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSIAMInstanceProfile_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/03/28 21:24:20 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSIAMInstanceProfile_ -timeout 120m
=== RUN   TestAccAWSIAMInstanceProfile_importBasic
--- PASS: TestAccAWSIAMInstanceProfile_importBasic (25.08s)
=== RUN   TestAccAWSIAMInstanceProfile_basic
--- PASS: TestAccAWSIAMInstanceProfile_basic (22.40s)
=== RUN   TestAccAWSIAMInstanceProfile_withRoleNotRoles
--- PASS: TestAccAWSIAMInstanceProfile_withRoleNotRoles (22.63s)
=== RUN   TestAccAWSIAMInstanceProfile_missingRoleThrowsError
--- PASS: TestAccAWSIAMInstanceProfile_missingRoleThrowsError (4.02s)
=== RUN   TestAccAWSIAMInstanceProfile_namePrefix
--- PASS: TestAccAWSIAMInstanceProfile_namePrefix (22.18s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	96.349s
```

* Update iam_instance_profile.html.markdown
2017-03-28 22:07:50 +03:00
Paul Stack c41a656959 Update CHANGELOG.md 2017-03-28 21:54:46 +03:00
Paul Stack 7d8b6c29de Update CHANGELOG.md 2017-03-28 21:53:47 +03:00
stack72 6ab1b8ad83 provider/aws: Change of alb_listener_rule listener_arn forces new resource
Fixes: #13006

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSALBListenerRule_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/03/28 18:16:04 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSALBListenerRule_ -timeout 120m
=== RUN   TestAccAWSALBListenerRule_basic
--- PASS: TestAccAWSALBListenerRule_basic (303.34s)
=== RUN   TestAccAWSALBListenerRule_updateRulePriority
--- PASS: TestAccAWSALBListenerRule_updateRulePriority (319.42s)
=== RUN   TestAccAWSALBListenerRule_changeListenerRuleArnForcesNew
--- PASS: TestAccAWSALBListenerRule_changeListenerRuleArnForcesNew (281.93s)
=== RUN   TestAccAWSALBListenerRule_multipleConditionThrowsError
--- PASS: TestAccAWSALBListenerRule_multipleConditionThrowsError (0.01s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	904.724s
```
2017-03-28 21:53:02 +03:00
stack72 d588fdd9ba provider/aws: Support of updates to ALB Listener Rule priority
Fixes: #9227

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSALBListenerRule_'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/03/28 18:02:08 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSALBListenerRule_ -timeout 120m
=== RUN   TestAccAWSALBListenerRule_basic
--- PASS: TestAccAWSALBListenerRule_basic (261.41s)
=== RUN   TestAccAWSALBListenerRule_updateRulePriority
--- PASS: TestAccAWSALBListenerRule_updateRulePriority (289.84s)
=== RUN   TestAccAWSALBListenerRule_multipleConditionThrowsError
--- PASS: TestAccAWSALBListenerRule_multipleConditionThrowsError (0.01s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	551.294s
```
2017-03-28 21:53:02 +03:00
Jake Champlin 391fbbe9d8 Merge pull request #13121 from cblecker/consul-vet-fix
Fix govet error in consul provider
2017-03-28 14:25:59 -04:00
Martin Atkins eb6f9ef3a4 Update CHANGELOG.md 2017-03-28 10:19:30 -07:00
bisoldi 744f8988c6 Added "$" back into aws_iam_policy_attachment example. 2017-03-28 09:45:51 -07:00
Joshua Spence af2c84de5a Add `basename` and `dirname` functions
Adds `basename` and `dirname` interpolation. I want to add a `stack` tag to our infrastructure, the value of which is set to `${basename(path.cwd)}`. We currently use `${replace(path.cwd, "/^.+\\//", "")}` instead, but this is extremeley unreadable. The existance of a `basename` function would be very useful for this use case.

I don't have an immediate use case for a `dirname` function, but it seemed reasonable to add it as well.
2017-03-28 09:29:26 -07:00
Christoph Blecker a5769a9c99
Fix govet error in consul provider 2017-03-28 08:06:39 -07:00
tombuildsstuff 24d9458feb Removing the deprecated `location` parameter from the LB Docs 2017-03-28 15:43:15 +01:00
Matthew Frahry 8b1df456eb Merge pull request #13101 from hashicorp/p-aws-opsworks-instance
Fixes TestAccAWSOpsworksInstance
2017-03-28 08:39:15 -06:00
Tom Harvey caea4cea1d Merge pull request #13118 from lvdh/docfix/azurerm_lb_nat_pool
provider/azurerm: Remove location argument from azurerm_lb_nat_pool
2017-03-28 15:37:34 +01:00
Jake Champlin 6d99dc5466 Merge pull request #13112 from jen20/acctest-random-int-range
helper/acctest: Add RandIntRange helper function
2017-03-28 10:14:33 -04:00
Laurens Vanderhoven a6b20b183d provider/azurerm: Remove location argument from azurerm_lb_nat_pool
According to documentation, `location` is a required argument for
`azurerm_lb_nat_pool`. However, configuring an `azurerm_lb_nat_pool`
with a `location` argument leads to the following warning:

```
There are warnings and/or errors related to your configuration. Please
fix these before continuing.

Warnings:

  * azurerm_lb_nat_pool.test: "location": [DEPRECATED] location is no longer used

No errors found. Continuing with 1 warning(s).
```

Disclaimer: Terraform v0.8.8, haven't moved to 0.9.x yet :/
2017-03-28 15:59:01 +02:00
Paul Stack b1bffe67e4 Update CHANGELOG.md 2017-03-28 15:55:01 +03:00
Paul Stack 78768e00f2 provider/aws: Add support to set iam_role_arn on cloudformation Stack (#12547)
Fixes: #11266

```
% make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSCloudFormation_basic'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/03/09 01:39:16 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSCloudFormation_basic -timeout 120m
=== RUN   TestAccAWSCloudFormation_basic
--- PASS: TestAccAWSCloudFormation_basic (89.38s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/aws	89.416s
```
2017-03-28 15:54:28 +03:00
Ryan Schlesinger 74710ae71a Add docker cross compilation instructions (#12931) 2017-03-28 15:40:05 +03:00
Radek Simko 587b50fc43 provider/kubernetes: Fix sorting of the PatchOperations (#13117) 2017-03-28 13:03:26 +01:00
Radek Simko 0fb54957fe docs/google: Fix sidebar highlighting for service account (#13116) 2017-03-28 13:00:09 +01:00
Paul Stack 7479b8d150 release: clean up after v0.9.2 2017-03-28 10:05:25 +00:00
Paul Stack 6365269541
v0.9.2 2017-03-28 09:56:35 +00:00
Paul Stack 6d30292216 Update CHANGELOG.md 2017-03-28 12:30:03 +03:00
Clint dd25334b46 provider/aws: Add failing test for OpsWorks endpoints (#13024)
Fix an issue when upgrading from Terraform < 0.9 to 0.9+, when we added
support for the regional endpoints in OpsWorks Stacks. OpsWorks Stacks
can only be managed via the endpoint with which they were created, not
where the stack resides.
2017-03-28 12:29:20 +03:00
Paul Stack b1d6b2e554 Update CHANGELOG.md 2017-03-28 12:20:04 +03:00
Raphaël Pinson ba0f80275f Rancher: error when no api_url is provided (#13086) 2017-03-28 12:18:03 +03:00
Jonathan Thomas ea71adbea9 website: new terraform webinar (#13111) 2017-03-28 07:13:16 +01:00
James Bardin 78c5464721 Merge pull request #13113 from hashicorp/jbardin/docs
environment docs
2017-03-27 23:05:37 -04:00
James Bardin 5c440b96cf environment docs
List backends supporting environments.
Note character restrictions for environment names.
2017-03-27 22:54:14 -04:00
James Bardin b66abacc80 update CHANGELOG 2017-03-27 22:37:59 -04:00
James Nugent 5d734cee4e helper/acctest: Add RandIntRange helper function
This commit adds a new RandIntRange function to the helper/acctest
package for generating random integers in a given range. This is useful
when randomizing test spaces with a constrained range (e.g. 0-4095).
2017-03-27 20:30:30 -04:00
James Bardin f172b4a023 Merge pull request #13105 from hashicorp/jbardin/command-env
disallow env names that aren't url-safe
2017-03-27 18:53:44 -04:00
James Bardin 9eb6faa679 Merge pull request #13110 from hashicorp/jbardin/apply-plan
Don't Validate if we have an execution plan
2017-03-27 18:51:24 -04:00
James Bardin 2cffa25235 Add test to verify that Validation isn't called
The apply won't succeed because we don't have a valid plan, but this
verifies that providing a plan file prevents Validation.
2017-03-27 18:39:18 -04:00
James Bardin 9d118325b3 Reject names that aren't url-safe
Environment names can be used in a number of contexts, and should be
properly escaped for safety. Since most state names are store in path
structures, and often in a URL, use `url.PathEscape` to check for
disallowed characters
2017-03-27 18:00:56 -04:00
= 5ea834d27f Randomize test name 2017-03-27 15:22:58 -06:00
James Bardin 8027fe9e08 Don't Validate if we have an execution plan
The plan file should contain all data required to execute the apply
operation. Validation requires interpolation, and the `file()`
interpolation function may fail if the module files are not present.
This is the case currently with how TFE executes plans.
2017-03-27 17:11:50 -04:00
Sertaç Özercan 1c40518e80 provider/azurerm: Update vault_certificates instructions for clarity 2017-03-27 14:00:29 -07:00
Dana Hoffman 072a34d500 Fix broken link 2017-03-27 13:28:26 -07:00
= 63cd65d138 Add randomness to ses receipt rule 2017-03-27 14:26:30 -06:00