Commit Graph

80 Commits

Author SHA1 Message Date
Rafal Jeczalik 760e022e46 provider/azure: add custom_data argument for azure_instance resource (#8158)
* provider/azure: add custom_data argument for azure_instance resource

* website: update azure doc

* provider/azure: fix whitespace in test templates
2016-08-14 11:02:49 +01:00
James Nugent 578c37877e provider/azure: Fix management client upgrade 2016-06-01 20:01:31 -05:00
James Nugent f23514c0a9 provider/azure: Randomize DNS Server acctest names
This commit should fix the following acceptance test failures:

=== RUN   TestAccAzureDnsServerBasic
--- FAIL: TestAccAzureDnsServerBasic (2.17s)
	testing.go:172: Step 0 error: Error applying: 1 error(s) occurred:

        * azure_dns_server.foo: Failed issuing update to network
          configuration: Error response from Azure. Code: BadRequest,
          Message: Multiple DNS servers specified with the same name
          'terraform-dns-server'.
=== RUN   TestAccAzureDnsServerUpdate
--- FAIL: TestAccAzureDnsServerUpdate (2.04s)
        testing.go:172: Step 0 error: Error applying: 1 error(s) occurred:

        * azure_dns_server.foo: Failed issuing update to network
          configuration: Error response from Azure. Code: BadRequest,
          Message: Multiple DNS servers specified with the same name
          'terraform-dns-server'.
2016-04-27 12:12:53 -05:00
Paul Hinze 108ccf0007 builtin: Refactor resource.Retry to clarify return
Change the `RetryFunc` from a plain `error` return type to a
specialized `RetryError` which must decide whether it is
retryable or not.

Add `RetryableError` / `NonRetryableError` factory functions that
callers are meant to use to build up these errors.

This makes it eminently clear whether or not a given error is
retryable from inside the client code.

Goal here is to _not_ change any behavior, simply reflect the
existing behavior with the new, clearer, API.
2016-03-09 17:37:56 -06:00
Paul Hinze 834bfcdc7a providder/azure: ASM image names have dates in them :-| 2016-03-02 13:02:48 -06:00
Trevor Pounds 3eb65f2cbb Enable `go vet -unusedresult` check and fix warnings. 2016-02-17 11:59:50 -08:00
clint shryock 840d2e7ccc Switch to acctest.RandInt for acceptance tests 2016-02-04 11:20:22 -06:00
James Nugent 316d4734ee provider/azure: Fix destroy check in acctest 2016-02-03 17:11: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
Paul Hinze da4e7753e7 provider/azure: fix build after upstream breaking change
This adds the empty argument necessary for PutPageBlob to compile.

https://github.com/Azure/azure-sdk-for-go/pull/257
2016-01-25 16:20:26 -06:00
James Nugent c3bcd6ac3a provider/azure: Fix acceptance tests 2016-01-08 09:20:49 -08:00
James Nugent f4cf4e89e8 provider/azure: Fix acceptance test 2016-01-08 08:08:03 -08:00
James Nugent 4090e761ef provider/azure: More fixes to acceptance tests 2016-01-08 07:15:59 -08:00
James Nugent 67b5784069 provider/azure: Avoid making checks which fail 2016-01-07 18:11:28 -08:00
James Nugent 7521e07857 provider/azure: Update vnet name in test checks 2016-01-07 17:38:34 -08:00
James Nugent 979586faea private/azure: Don't reuse account names in tests 2016-01-07 16:23:20 -08:00
James Nugent 294b6fe3f0 Merge pull request #4553 from hashicorp/b-azure-test-naming
provider/azure: Don't reuse names in tests
2016-01-07 11:23:16 -08:00
James Nugent 523eb2107d provider/azure: Don't reuse names in tests 2016-01-07 11:09:40 -08:00
James Nugent a52c4bce66 provider/azure: Don't delete firewall rules on non-existent servers 2016-01-07 11:00:57 -08:00
James Nugent 3c222b32ce provider/azure: Retry checking DB server existence 2016-01-07 08:35:19 -08:00
James Nugent f0ce107971 provider/azure: Fix up destroy checks 2016-01-07 06:52:28 -08:00
James Nugent 9346355ed5 provider/azure: Wait longer for storage blob to go 2016-01-06 16:11:45 -08:00
James Nugent 42a3800ec2 provider/azure: Fix up acctest destroy checks
Some resources can only be queried via the network configuration - if
the network configuration does not exist we were failing, however that
is a desirable state since without a network configuration for the
subscription the resources in question cannot exist.
2016-01-05 19:07:12 -06:00
James Nugent f5f49be019 provider/azure: Track upstream library changes
vmutils.ConfigureDeploymentFromVMImage has been changed to
vmutils.ConfigureDeploymentFromPublishedVMImage in the upstream library
- this allows us to build.
2015-12-30 14:10:16 -05:00
James Nugent 6b5c1d50e7 provider/azure: Copy settings file into variable 2015-12-22 17:32:58 -05:00
James Nugent 2a7576068f provider/azure: Allow AZURE_SETTINGS_FILE for tests 2015-12-22 17:16:31 -05:00
James Nugent 4d74bc789e provider/azure: Fix vetting error 2015-12-22 16:55:01 -05:00
James Nugent 8aa991cb5d provider/azure: Remove obsolete tests 2015-12-22 16:06:12 -05:00
Martin Atkins e25a0cafa2 Update for breaking change to Azure library.
vmImageClient.ListVirtualMachineImages takes a parameter as of
68d50cb53a73edfeb7f17f5e86cdc8eb359a9528 in Azure/azure-sdk-for-go .

Passing in a parameters object whose members are all empty strings seems
to restore the previous behavior.
2015-12-13 14:59:24 -08:00
Paul Hinze 3d089143c6 provider/azure: fix hosted service acctest
Just some basic bitrot stuff.
2015-11-19 16:28:24 -06:00
Paul Hinze fb0dc4951d provider/azure: read publish_settings as contents instead of path
Building on the work in #3846, shifting the Azure provider's
configuration option from `settings_file` to `publish_settings`.
2015-11-16 17:47:56 -06:00
Nashwan Azhari bf09edc642 provider/Azure: fixes:
added wait on instance deletion for associated blob deletion.
added guarding Mutex for secgroup-rule-related concurrent operations.
added usage warning on secgroup rules.
2015-10-30 02:57:47 +02:00
Paul Hinze 3fbeb326cd provider/azure: acc tests fixes
* avoid name collisions
 * update image names
2015-10-14 22:59:33 -05:00
Paul Hinze ef5b6e93a9 provider/azure: fix issues loading config from homedir
Issues were:

 * `settings_file` `ValidateFunc` needs to expand homedir just like the
   `configure` does, otherwise ~-based paths fail validation
 * `isFile` was being called before ~-expand so configure was failing as well
 * `Config` was swallowing error so provider was ending up with `nil`,
   resulting in crash

To fix:

 * Consolidate settings_file path/contents handling into a single helper
   called from both `validate` and `configure` funcs
 * Return err from `Config`

To cover:

 * Added test case to validate w/ tilde-path
 * Added configure test w/ tilde-path
2015-10-13 16:57:11 -05:00
Radek Simko f9efede852 gofmt files from recently merged PRs 2015-10-07 13:35:06 -07:00
Radek Simko 9cbcb9a438 Remove no-op Updates from resource schemas 2015-10-03 14:29:19 -07:00
Anthony Scalisi 198e1a5186 remove various typos 2015-09-11 11:56:20 -07:00
Dave McDermid 1a85f1344b Added join_domain feature to Azure Instance resource 2015-08-18 16:09:34 +01:00
Clint Shryock a7543de393 settings file is not required 2015-08-03 15:34:34 -05:00
Clint Shryock 2a5c18d88b provider/azure: Allow settings_file to accept XML string 2015-08-03 15:31:25 -05:00
Clint Shryock 488587467c code formatting 2015-07-30 09:27:13 -05:00
Clint Shryock 493b31d122 provider/azure: Trap a specific Platform Image error in a new PlatformStorageError 2015-07-27 10:23:42 -05:00
Paul Hinze ece4430188 Merge pull request #2562 from aznashwan/b-azure-non-existent-netconfig
Fixed void Azure network config bug.
2015-06-30 13:25:43 -05:00
Paul Hinze 0698b865e2 provider/aws: fix go vet 2015-06-30 12:35:54 -05:00
aznashwan 5ff6598e65 Fixed void Azure network config bug. 2015-06-30 02:13:34 +03:00
Paul Hinze 860a0fcbf2 provider/azure: fixup storage service test
wrong region in fixture vs assertion
2015-06-29 16:55:26 -05:00
aznashwan 7429027a8c Added SQL Database Server Firewall Rule resource. 2015-06-29 21:36:02 +03:00
aznashwan 6ea0397e07 Made instances deployable on already existing services. 2015-06-26 15:49:05 +03:00
aznashwan 1e08c6e72f Made Azure security group rules - security groups relationship one - many. 2015-06-25 21:57:38 +03:00
aznashwan 9b5c99ba28 Added affinity group resource. 2015-06-19 21:53:36 +03:00