Srikalyan Swayampakula
f21dc995c5
Update code based on the review suggestions.
...
1. Used resource.Retry instead of custom solution
2. Removed unnecessary variables and added required variable to resource.Retry.
2016-02-12 12:21:52 -08:00
clint shryock
9c3699d905
provider/aws: Add some randomization to this test
2016-02-12 14:17:19 -06:00
clint shryock
2a860ff564
provider/aws: Switch format for error message to utilize Go Stringer
2016-02-12 14:16:20 -06:00
Kirill Shirinkin
63016155ea
Add distributed routers support
2016-02-12 19:55:27 +01:00
clint shryock
a344204cc7
provider/aws: format and randomize RDS Cluster Instance tests
2016-02-12 11:43:07 -06:00
clint shryock
a7af4c46b2
rename test
2016-02-12 11:21:03 -06:00
Clint
169b63e401
Merge pull request #5032 from clstokes/f-aws-gateway-tunnel-info
...
provider/aws: Expose additional VPN Connection attributes.
2016-02-12 10:31:23 -06:00
Hasan Türken
766dac4d79
update documentation
2016-02-12 09:56:48 -06:00
Hasan Türken
e41266e971
Move endpoint options into endpoints block
2016-02-12 09:38:21 -06:00
Hasan Türken
231604e8b7
support custom endpoints for AWS EC2 ELB and IAM
2016-02-12 09:35:50 -06:00
Paul Hinze
66ec38b2d9
Merge pull request #5046 from tpounds/use-built-in-schema-string-hash
...
Use built-in schema.HashString instead of custom hash functions.
2016-02-12 07:58:34 -06:00
Bill Fumerola
6e46ef1d46
Merge branch 'master' of github.com:uber/terraform into issue-4895
2016-02-11 18:19:13 -08:00
clint shryock
8b4a366b43
Merge branch 'pr-4969'
...
* pr-4969:
provider/aws: All security group mods on first run when restoring from snapshot
2016-02-11 16:40:29 -06:00
clint shryock
21a59fc708
provider/aws: All security group mods on first run when restoring from snapshot
2016-02-11 16:39:53 -06:00
Paul Stack
06fdadf491
Merge pull request #5099 from tpounds/cleanup-aws-type-conversions
...
provider/aws: Consolidate duplicate list/set type conversions
2016-02-11 22:29:50 +00:00
Clint
934c31f76b
Merge pull request #4969 from Chili-Man/bugfix/aws_provider_rds_security_groups
...
provider/aws: apply security group changes in EC2 Classic RDS for aws_db_instance
2016-02-11 16:12:12 -06:00
Clint
e04450d95f
Merge pull request #4958 from hashicorp/b-aws-r53-record-tests
...
provider/aws: Add a regression test for Route53 records
2016-02-11 13:32:29 -06:00
Trevor Pounds
57a9048510
Consolidate duplicate list/set type conversions.
2016-02-11 00:48:58 -08:00
Sebastiaan van Steenis
4a10530b07
Change default DOCKER_HOST value, fixes #4923
2016-02-10 20:21:17 +01:00
Bill Fumerola
6fa4fba83e
provider/google Fix backend service max_utilization attribute
...
Fixes issue #4985 by correcting copy/paste error that caused the
max_utilization attribute to be read from the max_rate_per_instance
attribute.
N.B. There is still no test coverage for this issue.
2016-02-09 13:41:01 -08:00
Trevor Pounds
164596880a
Update acceptance test to use t2.micro instances.
...
The AWS free tier allows up to 750 hours on t2.micro
instance types. It's better to use cheaper instances
in case the resources are not cleaned up if a tests
is canceled or crashes.
2016-02-09 00:24:38 -08:00
Trevor Pounds
5801b991c9
Cleanup unrelated config to speed up autogenerate name acc test.
...
Removes overspecified config that is unrelated to testing the auto scaling
group's autogenerated name. The test is only concerned with checking that
the auto scaling group was created successfully with an autogenerated name
matching a specific pattern.
2016-02-08 21:28:35 -08:00
Trevor Pounds
eba605fa6a
Cleanup unrelated config to speed up AZ/VPC acc tests.
...
Removes overspecified config that is unrelated to the auto scaling
group's availability zone and VPC identifier acceptance tests. The
created auto scaling groups do not need to spin up any hosts since
the acceptance tests are only concerned with checking the existence
of the associated availability zones and VPC identifiers.
2016-02-08 19:55:11 -08:00
James Nugent
dad70e4659
Merge pull request #5057 from stack72/azurerm-sql-firewall-rule
...
provider/azurerm: Add `azurerm_sql_firewall_rule` resource
2016-02-08 16:43:30 -05:00
Paul Stack
4baa8fa691
Merge pull request #5044 from tpounds/fix-read-aws-asg-az
...
provider/aws: Fix reading auto scaling group availability zones
2016-02-08 21:37:23 +00:00
stack72
584b52c34c
provider/azurerm: Add `azurerm_sql_firewall_rule` resource
2016-02-08 21:13:59 +00:00
Radek Simko
05b6af5d83
Merge pull request #5051 from TimeIncOSS/f-aws-cloudtrail-fields
...
provider/aws: Add support for CloudTrail log validation + KMS encryption
2016-02-08 21:05:35 +00:00
Paul Stack
83b1c4ae52
Merge pull request #5045 from tpounds/fix-read-aws-asg-elbs
...
provider/aws: Fix reading auto scaling group load balancers
2016-02-08 19:47:22 +00:00
Radek Simko
531e60047b
provider/aws: Add support for CloudTrail log validation + KMS encryption
2016-02-08 11:51:25 +00:00
Trevor Pounds
0cd0ff0f8e
Use built-in schema.HashString.
2016-02-07 16:29:34 -08:00
Trevor Pounds
8ceeaaf7ff
Fix load balancers read logic.
2016-02-07 15:00:21 -08:00
James Nugent
a79563ee28
Merge pull request #5042 from stack72/f-cloudflare-record-ttl-computed
...
provider/cloudflare: Change CloudFlare record TTL property to be `computed`
2016-02-07 17:54:24 -05:00
James Nugent
815df069c0
Merge pull request #5041 from stack72/azurerm-dns-recordsets-2
...
provider/azurerm: MX, SRV, TXT and NS Resources
2016-02-07 17:53:23 -05:00
stack72
46f51b7bd8
provider/cloudflare: Change CloudFlare record TTL property to be
...
`computed`
2016-02-07 22:33:21 +00:00
stack72
81b50330a1
provider/azurerm: Add `azurerm_dns_mx_record` resource
2016-02-07 22:26:56 +00:00
Trevor Pounds
dac7226a8e
Check calculated availability zones.
2016-02-07 14:24:31 -08:00
Trevor Pounds
37eb1cba88
Make availability zones a computed attribute.
...
Fixes a diff calculation error when only a VPC zone
identifiers is provided. In this case the associated
availability zones are computed from the subnets per
the AWS documentation.
2016-02-07 14:14:00 -08:00
Trevor Pounds
e0f4be47a8
Remove redundant metadata get.
2016-02-07 14:14:00 -08:00
Trevor Pounds
cd42705bf1
Fix availability zones read logic.
2016-02-07 14:14:00 -08:00
stack72
8ac4d2e080
provider/azurerm: Add `azurerm_dns_srv_record` resource
2016-02-07 21:49:02 +00:00
Paul Stack
00ea9c969d
Merge pull request #4943 from stack72/f-aws-dynamodbtable-refresh
...
provider/aws: DynamoDB Table Refresh State on Error
2016-02-06 23:47:41 +00:00
Cameron Stokes
24f034a2c6
Acc tests for aws_vpn_connection tunnel attributes.
2016-02-06 14:00:26 -08:00
Cameron Stokes
6a5cb5b109
Provide tunnel info from XML config.
2016-02-06 12:39:49 -08:00
stack72
f9ffeae0f6
provider/azurerm: Add `azurerm_dns_ns_record` resource
2016-02-06 19:09:52 +00:00
stack72
37bc5a4c80
provider/azurerm: Add `azurerm_dns_txt_record` resource
2016-02-06 18:43:53 +00:00
Maxime Bury
eaacf5c618
Add multi-region option to cloudtrail
2016-02-05 13:15:05 -05:00
stack72
6b5e5710c8
provider/azurerm: Add DNS CName Record Resource
2016-02-05 12:51:33 +00:00
stack72
1357f150a5
provider/azurerm: Add AzureRM AAAA DNS Record resource
2016-02-05 12:14:09 +00:00
stack72
761308cd2a
provider/azurerm: Add the DNS A Record Resource
2016-02-05 11:28:48 +00:00
James Nugent
d5601a41d1
Merge pull request #5003 from stack72/azurerm-sql-database
...
provider/azurerm: Add azurerm_sql_database resource
2016-02-04 19:16:39 -05:00
stack72
d89088246c
provider/azurerm: Adding azurerm_sql_database resource
2016-02-04 23:36:50 +00:00
Clint
5f1afa3e10
Merge pull request #4997 from hashicorp/f-use-acctest-randint
...
Switch to acctest.RandInt for acceptance tests
2016-02-04 15:49:36 -06:00
clint shryock
52f3e9b8db
update provider test and extend the delete timelimit
2016-02-04 15:48:54 -06:00
Paul Tyng
0961033400
Add tag support for elasticsearch
2016-02-04 12:53:11 -05:00
Paul Tyng
20efc7688f
Update validation on domain name
2016-02-04 12:53:10 -05:00
clint shryock
840d2e7ccc
Switch to acctest.RandInt for acceptance tests
2016-02-04 11:20:22 -06:00
James Nugent
2d56c8f436
Merge pull request #4991 from stack72/azurerm-sql-server
...
provider/azurerm: sql server resource
2016-02-04 11:59:17 -05:00
Paul Hinze
97bae0ea30
provider/heroku: address cert test failure
...
* Randomize app name in test
* Return error and don't panic when there is a problem
It's possible there may still be an underlying problem that caused the
error that made the cert leak in the first place - this should help us
diagnose it.
2016-02-04 09:58:27 -06:00
stack72
4ef557bed7
deps: Update jen20/riviera
2016-02-04 10:02:58 +00:00
stack72
f6bee13bd4
Scaffold the Sql Server AzureRM Resource
2016-02-03 23:08:56 +00:00
James Nugent
316d4734ee
provider/azure: Fix destroy check in acctest
2016-02-03 17:11:36 -05:00
Paul Stack
255be73ebf
Merge pull request #4979 from hashicorp/f-azurerm-dns-zone
...
provider/azurerm: Add `azurerm_dns_zone` resource
2016-02-03 19:43:04 +00:00
Mitchell Hashimoto
aaf1302ce8
providers/template: don't use config/lang
2016-02-03 13:24:04 -05:00
James Nugent
295bb897f2
provider/azurerm: Use separate "if" over "else if"
2016-02-03 13:16:36 -05:00
James Nugent
ef350af219
provider/azure: Randomize name in acceptance tests
...
This should address the failures seen in Travis Build Run #8774 . It is
likely there are others which also need addressing - they will be
addressed on a case-by-case basis as they come up.
2016-02-03 13:11:47 -05:00
clint shryock
53a42eaa0f
provider/aws: Add a regression test for Route53 records
...
This is a follow up on #4892 with tests that demonstrate creating a record and a zone, then destroying said record, and confirming that a new plan is generated, using the ExpectNonEmptyPlan flag
This simulates the bug reported in #4641 by mimicking the state file that one would have if they created a record with Terraform v0.6.6, which is to say a weight = 0 for a default value.
When upgrading, there would be an expected plan change to get that to -1. To mimic the statefile we apply the record and then in a follow up step change the attributes directly. We then try to delete the record.
I tested this by grabbing the source of aws_resource_route53.go from Terraform v0.6.9 and running the included test, which fails. The test will pass with #4892 , because we no longer reconstruct what the record should be based on the state (instead finding via the API and elimination/matching)
2016-02-03 09:16:50 -06:00
Diego Rodriguez
cfafa3f574
fix ec2 classic security group changing
2016-02-03 00:33:42 -08:00
Paul Stack
1421d4ce18
provider/azurerm: Add `azurerm_dns_zone` resource
...
This resource is the first which makes use of the new Riviera library
(at https://github.com/jen20/riviera ), so there is some additional set
up work to add the provider to the client which gets passed among
resources.
2016-02-02 19:53:00 -05:00
Joe Topjian
7ccaaa12be
provider/openstack: Fix crash when access_network was not defined
2016-02-02 22:59:16 +00:00
stack72
9c17e5d3e8
DynamoDB Table now refreshes the state when NotFoundException occurs
2016-02-01 21:55:10 +00:00
clint shryock
772ac8522a
provider/aws: Change VPC ClassicLink to be computed
2016-02-01 09:30:09 -06:00
Joe Topjian
aefd22ed9b
provider/openstack Fix LB Member Errors
...
Fixing Load Balancer Member errors caused by not rebasing with master
before committing.
2016-01-31 22:51:26 +00:00
Joe Topjian
baeaee0103
Merge pull request #4359 from jtopjian/jtopjian-openstack-lb-member
...
provider/openstack: Load Balancing Member Resource
2016-01-31 15:40:15 -07:00
Joe Topjian
1ccd0491ff
Merge pull request #4812 from jtopjian/openstack-per-network-floating-ip
...
provider/openstack: Per-network Floating IPs
2016-01-31 15:24:59 -07:00
Joe Topjian
df660a26a1
provider/openstack: Per-network Floating IPs
...
This commit adds the ability to associate a Floating IP to a specific
network. Previously, there only existed a top-level floating IP
attribute which was automatically associated with either the first
defined network or the default network (when no network block was
used).
Now floating IPs can be associated with networks beyond the first
defined network as well as each network being able to have their own
floating IP.
Specifying the floating IP by using the top-level floating_ip
attribute and the per-network floating IP attribute is not possible.
Additionally, an `access_network` attribute has been added in order
to easily specify which network should be used for provisioning.
2016-01-31 22:17:51 +00:00
Joe Topjian
7e30b5d877
Merge pull request #4928 from jtopjian/openstack-port-ip-acc-test
...
provider/openstack Add Acceptance Test for No Port IP
2016-01-31 15:11:33 -07:00
Joe Topjian
b488541ee9
provider/openstack Add Acceptance Test for No Port IP
2016-01-31 22:04:06 +00:00
Joe Topjian
2e2ea033c5
Merge pull request #4851 from Sheile/b-openstack-convert-fixedips
...
provider/openstack Convert FixedIPS from struct to map for ResourceData
2016-01-31 14:59:41 -07:00
Colin Hebert
d89c365838
remove extra parenthesis
2016-01-31 08:49:35 +11:00
Colin Hebert
fd3ae2d607
Catch potential custom network errors in docker
2016-01-31 08:31:30 +11:00
Clint
41de3ee6bd
Merge pull request #4892 from hashicorp/b-aws-r53-weight-update
...
provider/aws: Refactor Route53 record to fix regression in deleting
2016-01-29 13:36:32 -06:00
clint shryock
39f5a7e751
use the same error checking in DELETE
2016-01-29 12:38:22 -06:00
clint shryock
3bbb21d115
refactor error handling in findRecord
2016-01-29 11:56:19 -06:00
James Nugent
f8a40ff371
provider/azurerm: Fix panic if no creds supplied
...
Using EnvDefaultFunc with a default of empty string causes the
validation which would ordinarily be performed by `Required: true` in
the schema to not have any effect. Instead validate the configuration
used to produce the ARM client before attempting to use it during
provider configuration.
2016-01-29 10:51:25 -05:00
Clint
b7582fa6d9
Merge pull request #4869 from hashicorp/b-aws-provider-auth-docs
...
provider/aws: Provide a better message if no AWS creds are found
2016-01-29 09:25:26 -06:00
James Nugent
a2cf8b7f4c
Merge pull request #4887 from stack72/f-azurerm-test-random
...
provider/azurerm: Acceptance Test Name Randomising
2016-01-29 08:45:25 -05:00
Clint
800420cf9b
Merge pull request #4856 from hashicorp/b-aws-test-randoms
...
provider/aws: Randomize all S3 bucket names per test, not per run
2016-01-29 06:52:29 -06:00
Clint
23cf9fdbd9
Merge pull request #4860 from hashicorp/b-aws-test-randoms-ops
...
provider/aws: Restructure OpsWorks test files
2016-01-29 06:52:16 -06:00
stack72
8696854b51
Randomising the resource names in AzureRM acceptance tests. There is a potential issue that reusing names will cause the tests to be slower while we wait for old resources to go through GC
2016-01-29 12:48:11 +00:00
Paul Stack
2bc5d25bc0
Merge pull request #4891 from stack72/f-aws-sns-ui-deleted
...
provider/aws: SNS Topic State Refreshing correctly
2016-01-29 11:03:19 +00:00
Radek Simko
51f6a15803
Merge pull request #4894 from paultyng/pt/error-message
...
Add "lowercase" to error message
2016-01-29 10:39:43 +00:00
Yo Takezawa
17e6e5d118
provider/openstack Convert FixedIPS from struct to map for ResourceData
2016-01-29 14:23:03 +09:00
stack72
91cb65dd05
Provider/aws - SNS Topics deleted from the UI were causing Terraform to
...
throw an error:
* aws_sns_topic_subscription.checker: NotFound: Subscription does not
* exist
status code: 404, request id: b8ca0c27-1a62-57b3-8b96-43038a0ead86
Terraform wasn't refreshing the state when the topic gave a 404
2016-01-28 23:26:05 +00:00
Paul Tyng
15f3091f9d
Add "lowercase" to error message
2016-01-28 18:20:50 -05:00
clint shryock
125987994c
provider/aws: Refactor Route53 record to fix regression in deleting
...
refactored to add a `findRecord` method to find the matching record set,
and use that for the `DELETE` method call.
2016-01-28 17:01:53 -06:00
Joe Topjian
5474d751ab
Merge pull request #4850 from Sheile/f-openstack-optional-ipaddress
...
provider/openstack Changing the port resource to mark the ip_address as optional
2016-01-28 22:11:27 +01:00
James Nugent
932127e8c3
Merge pull request #4885 from hashicorp/alkersan-pdns
...
Rebased PowerDNS provider
2016-01-28 14:25:15 -05:00
James Nugent
688dde9bb9
provider/powerdns: Correct dangling resource check
...
This fix prevents tests incorrectly reporting dangling resources. It is
not sufficient to check just whether or not an error occurred when
iterating over the listed resources - checking the bool returned is also
required.
2016-01-28 14:03:33 -05:00
Clint
dd0475ca4e
Merge pull request #4879 from hashicorp/b-aws-vpc-classiclink-fix
...
providers/aws: Fix issue with VPC Classic Link and regions that don't support it
2016-01-28 10:54:40 -06:00
clint shryock
2ac040bef2
providers/aws: Fix issue with VPC Classic Link and regions that don't support it
...
- use eu-central-1 to a config to check for #4874
- update documentation
2016-01-28 10:12:06 -06:00