Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for changing TTL on DigitalOcean domain records. #14805

Merged
merged 1 commit into from
May 30, 2017

Conversation

andrewsomething
Copy link
Contributor

The DO API was extended to support configuring the TTL value for individual domain records. See:

https://developers.digitalocean.com/documentation/changelog/api-v2/configurable-ttl-for-domain-records/

This PR adds support for that as well as updating the vendorized copy of godo. That required a few changes:

Fixes: #12631

@stack72
Copy link
Contributor

stack72 commented May 24, 2017

Hi @andrewsomething

Thanks for this - unfortunately, this doesn't pass the tests:

=== RUN   TestAccDigitalOceanDroplet_WithID
--- FAIL: TestAccDigitalOceanDroplet_WithID (0.38s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error creating droplet: POST https://api.digitalocean.com/v2/droplets: 422 You specified an invalid image for Droplet creation.
=== RUN   TestAccDigitalOceanDroplet_withSSH
--- FAIL: TestAccDigitalOceanDroplet_withSSH (16.40s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax
=== RUN   TestAccDigitalOceanDroplet_Update
--- FAIL: TestAccDigitalOceanDroplet_Update (14.41s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax
=== RUN   TestAccDigitalOceanDroplet_ResizeWithOutDisk
--- FAIL: TestAccDigitalOceanDroplet_ResizeWithOutDisk (14.52s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax
=== RUN   TestAccDigitalOceanDroplet_ResizeOnlyDisk
--- FAIL: TestAccDigitalOceanDroplet_ResizeOnlyDisk (14.33s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax
=== RUN   TestAccDigitalOceanDroplet_UpdateUserData
--- FAIL: TestAccDigitalOceanDroplet_UpdateUserData (14.30s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax
=== RUN   TestAccDigitalOceanDroplet_UpdateTags
--- FAIL: TestAccDigitalOceanDroplet_UpdateTags (14.34s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax
=== RUN   TestAccDigitalOceanDroplet_PrivateNetworkingIpv6
--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (58.70s)
=== RUN   TestAccDigitalOceanFloatingIP_Region
--- PASS: TestAccDigitalOceanFloatingIP_Region (4.62s)
=== RUN   TestAccDigitalOceanFloatingIP_Droplet
--- FAIL: TestAccDigitalOceanFloatingIP_Droplet (42.39s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax
=== RUN   TestAccDigitalOceanLoadbalancer_Basic
--- FAIL: TestAccDigitalOceanLoadbalancer_Basic (14.91s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax
=== RUN   TestAccDigitalOceanLoadbalancer_Updated
--- FAIL: TestAccDigitalOceanLoadbalancer_Updated (14.24s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax
=== RUN   TestAccDigitalOceanLoadbalancer_dropletTag
--- FAIL: TestAccDigitalOceanLoadbalancer_dropletTag (16.85s)
	testing.go:280: Step 0 error: Error applying: 1 error(s) occurred:

		* digitalocean_droplet.foobar: 1 error(s) occurred:

		* digitalocean_droplet.foobar: Error waiting for droplet () to become ready: strconv.Atoi: parsing "": invalid syntax

Can you take a look?

Paul

@andrewsomething
Copy link
Contributor Author

andrewsomething commented May 24, 2017

@stack72 Looks like that is actually an error on the DO API side. The Droplet creation events are failing. So probably best to rerun when the status page is green: http://status.digitalocean.com/

@andrewsomething
Copy link
Contributor Author

The DO status page is back to green, and I just successfully ran the acceptance tests.

@tombuildsstuff
Copy link
Contributor

Hi @andrewsomething

Thanks for letting us know - apologies for the delayed response here. Would it be possible to fix the merge conflicts? Once this is done we can progress with this :)

Thanks!

@andrewsomething
Copy link
Contributor Author

Well, it's a much smaller patch now. 😄

@stack72
Copy link
Contributor

stack72 commented May 30, 2017

This LGTM now :) Thanks for taking care of this

@stack72 stack72 merged commit 2a3d752 into hashicorp:master May 30, 2017
@pinepain
Copy link

@andrewsomething thanks a lot for this change!

@ghost
Copy link

ghost commented Apr 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] Changing TTL for digitalocean_record
4 participants