terraform/builtin/providers/digitalocean/resource_digitalocean_dropl...

600 lines
18 KiB
Go
Raw Normal View History

2014-07-19 02:20:28 +02:00
package digitalocean
import (
"fmt"
"strconv"
2014-07-19 02:20:28 +02:00
"strings"
"testing"
"github.com/digitalocean/godo"
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
"github.com/hashicorp/terraform/helper/acctest"
2014-07-19 02:20:28 +02:00
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
2014-07-19 18:33:25 +02:00
func TestAccDigitalOceanDroplet_Basic(t *testing.T) {
var droplet godo.Droplet
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
rInt := acctest.RandInt()
2014-07-19 02:20:28 +02:00
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDigitalOceanDropletDestroy,
Steps: []resource.TestStep{
{
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
Config: testAccCheckDigitalOceanDropletConfig_basic(rInt),
2014-07-19 02:20:28 +02:00
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &droplet),
testAccCheckDigitalOceanDropletAttributes(&droplet),
resource.TestCheckResourceAttr(
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "size", "512mb"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "price_hourly", "0.00744"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "price_monthly", "5"),
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "image", "centos-7-x64"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "region", "nyc3"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "user_data", "foobar"),
),
},
},
})
}
func TestAccDigitalOceanDroplet_withSSH(t *testing.T) {
var droplet godo.Droplet
rInt := acctest.RandInt()
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDigitalOceanDropletDestroy,
Steps: []resource.TestStep{
{
Config: testAccCheckDigitalOceanDropletConfig_withSSH(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &droplet),
testAccCheckDigitalOceanDropletAttributes(&droplet),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
2014-07-19 02:20:28 +02:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "size", "512mb"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "image", "centos-7-x64"),
2014-07-19 02:20:28 +02:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "region", "nyc3"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "user_data", "foobar"),
2014-07-19 02:20:28 +02:00
),
},
},
})
}
2014-07-19 18:33:25 +02:00
func TestAccDigitalOceanDroplet_Update(t *testing.T) {
var droplet godo.Droplet
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
rInt := acctest.RandInt()
2014-07-19 18:33:25 +02:00
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDigitalOceanDropletDestroy,
Steps: []resource.TestStep{
{
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
Config: testAccCheckDigitalOceanDropletConfig_basic(rInt),
2014-07-19 18:33:25 +02:00
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &droplet),
testAccCheckDigitalOceanDropletAttributes(&droplet),
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
2014-07-19 18:33:25 +02:00
),
},
{
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
Config: testAccCheckDigitalOceanDropletConfig_RenameAndResize(rInt),
2014-07-19 18:33:25 +02:00
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &droplet),
testAccCheckDigitalOceanDropletRenamedAndResized(&droplet),
resource.TestCheckResourceAttr(
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
"digitalocean_droplet.foobar", "name", fmt.Sprintf("baz-%d", rInt)),
2014-07-19 18:33:25 +02:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "size", "1gb"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "disk", "30"),
),
},
},
})
}
func TestAccDigitalOceanDroplet_ResizeWithOutDisk(t *testing.T) {
var droplet godo.Droplet
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
rInt := acctest.RandInt()
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDigitalOceanDropletDestroy,
Steps: []resource.TestStep{
{
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
Config: testAccCheckDigitalOceanDropletConfig_basic(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &droplet),
testAccCheckDigitalOceanDropletAttributes(&droplet),
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
),
},
{
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
Config: testAccCheckDigitalOceanDropletConfig_resize_without_disk(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &droplet),
testAccCheckDigitalOceanDropletResizeWithOutDisk(&droplet),
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "size", "1gb"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "disk", "20"),
2014-07-19 18:33:25 +02:00
),
},
},
})
}
func TestAccDigitalOceanDroplet_ResizeOnlyDisk(t *testing.T) {
var droplet godo.Droplet
rInt := acctest.RandInt()
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDigitalOceanDropletDestroy,
Steps: []resource.TestStep{
{
Config: testAccCheckDigitalOceanDropletConfig_basic(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &droplet),
testAccCheckDigitalOceanDropletAttributes(&droplet),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
),
},
{
Config: testAccCheckDigitalOceanDropletConfig_resize_without_disk(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &droplet),
testAccCheckDigitalOceanDropletResizeWithOutDisk(&droplet),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "size", "1gb"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "disk", "20"),
),
},
{
Config: testAccCheckDigitalOceanDropletConfig_resize_only_disk(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &droplet),
testAccCheckDigitalOceanDropletResizeOnlyDisk(&droplet),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "size", "1gb"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "disk", "30"),
),
},
},
})
}
func TestAccDigitalOceanDroplet_UpdateUserData(t *testing.T) {
var afterCreate, afterUpdate godo.Droplet
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
rInt := acctest.RandInt()
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDigitalOceanDropletDestroy,
Steps: []resource.TestStep{
{
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
Config: testAccCheckDigitalOceanDropletConfig_basic(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &afterCreate),
testAccCheckDigitalOceanDropletAttributes(&afterCreate),
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
),
},
{
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
Config: testAccCheckDigitalOceanDropletConfig_userdata_update(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &afterUpdate),
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar",
"user_data",
"foobar foobar"),
testAccCheckDigitalOceanDropletRecreated(
t, &afterCreate, &afterUpdate),
),
},
},
})
}
func TestAccDigitalOceanDroplet_UpdateTags(t *testing.T) {
var afterCreate, afterUpdate godo.Droplet
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
rInt := acctest.RandInt()
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDigitalOceanDropletDestroy,
Steps: []resource.TestStep{
{
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
Config: testAccCheckDigitalOceanDropletConfig_basic(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &afterCreate),
testAccCheckDigitalOceanDropletAttributes(&afterCreate),
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
),
},
{
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
Config: testAccCheckDigitalOceanDropletConfig_tag_update(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &afterUpdate),
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "name", fmt.Sprintf("foo-%d", rInt)),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar",
"tags.#",
"1"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar",
"tags.0",
"barbaz"),
),
},
},
})
}
func TestAccDigitalOceanDroplet_PrivateNetworkingIpv6(t *testing.T) {
var droplet godo.Droplet
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
rInt := acctest.RandInt()
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDigitalOceanDropletDestroy,
Steps: []resource.TestStep{
{
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
Config: testAccCheckDigitalOceanDropletConfig_PrivateNetworkingIpv6(rInt),
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanDropletExists("digitalocean_droplet.foobar", &droplet),
testAccCheckDigitalOceanDropletAttributes_PrivateNetworkingIpv6(&droplet),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "private_networking", "true"),
resource.TestCheckResourceAttr(
"digitalocean_droplet.foobar", "ipv6", "true"),
),
},
},
})
}
2014-07-19 02:20:28 +02:00
func testAccCheckDigitalOceanDropletDestroy(s *terraform.State) error {
client := testAccProvider.Meta().(*godo.Client)
2014-07-19 02:20:28 +02:00
for _, rs := range s.RootModule().Resources {
2014-07-19 02:20:28 +02:00
if rs.Type != "digitalocean_droplet" {
continue
}
id, err := strconv.Atoi(rs.Primary.ID)
if err != nil {
return err
}
2014-07-19 02:20:28 +02:00
// Try to find the Droplet
_, _, err = client.Droplets.Get(id)
2014-07-19 02:20:28 +02:00
// Wait
2014-07-19 02:20:28 +02:00
if err != nil && !strings.Contains(err.Error(), "404") {
return fmt.Errorf(
"Error waiting for droplet (%s) to be destroyed: %s",
rs.Primary.ID, err)
2014-07-19 02:20:28 +02:00
}
}
return nil
}
func testAccCheckDigitalOceanDropletAttributes(droplet *godo.Droplet) resource.TestCheckFunc {
2014-07-19 02:20:28 +02:00
return func(s *terraform.State) error {
if droplet.Image.Slug != "centos-7-x64" {
return fmt.Errorf("Bad image_slug: %s", droplet.Image.Slug)
2014-07-19 02:20:28 +02:00
}
if droplet.Size.Slug != "512mb" {
return fmt.Errorf("Bad size_slug: %s", droplet.Size.Slug)
2014-07-19 02:20:28 +02:00
}
if droplet.Size.PriceHourly != 0.00744 {
2017-04-19 19:21:31 +02:00
return fmt.Errorf("Bad price_hourly: %v", droplet.Size.PriceHourly)
}
if droplet.Size.PriceMonthly != 5.0 {
2017-04-19 19:21:31 +02:00
return fmt.Errorf("Bad price_monthly: %v", droplet.Size.PriceMonthly)
}
if droplet.Region.Slug != "nyc3" {
return fmt.Errorf("Bad region_slug: %s", droplet.Region.Slug)
2014-07-19 02:20:28 +02:00
}
return nil
}
}
func testAccCheckDigitalOceanDropletRenamedAndResized(droplet *godo.Droplet) resource.TestCheckFunc {
2014-07-19 18:33:25 +02:00
return func(s *terraform.State) error {
if droplet.Size.Slug != "1gb" {
return fmt.Errorf("Bad size_slug: %s", droplet.SizeSlug)
2014-07-19 18:33:25 +02:00
}
if droplet.Disk != 30 {
2016-11-11 00:10:43 +01:00
return fmt.Errorf("Bad disk: %d", droplet.Disk)
}
return nil
}
}
func testAccCheckDigitalOceanDropletResizeWithOutDisk(droplet *godo.Droplet) resource.TestCheckFunc {
return func(s *terraform.State) error {
if droplet.Size.Slug != "1gb" {
return fmt.Errorf("Bad size_slug: %s", droplet.SizeSlug)
}
if droplet.Disk != 20 {
2016-11-11 00:10:43 +01:00
return fmt.Errorf("Bad disk: %d", droplet.Disk)
}
2014-07-19 18:33:25 +02:00
return nil
}
}
func testAccCheckDigitalOceanDropletResizeOnlyDisk(droplet *godo.Droplet) resource.TestCheckFunc {
return func(s *terraform.State) error {
if droplet.Size.Slug != "1gb" {
return fmt.Errorf("Bad size_slug: %s", droplet.SizeSlug)
}
if droplet.Disk != 30 {
return fmt.Errorf("Bad disk: %d", droplet.Disk)
}
return nil
}
}
func testAccCheckDigitalOceanDropletAttributes_PrivateNetworkingIpv6(droplet *godo.Droplet) resource.TestCheckFunc {
return func(s *terraform.State) error {
if droplet.Image.Slug != "centos-7-x64" {
return fmt.Errorf("Bad image_slug: %s", droplet.Image.Slug)
}
if droplet.Size.Slug != "1gb" {
return fmt.Errorf("Bad size_slug: %s", droplet.Size.Slug)
}
if droplet.Region.Slug != "sgp1" {
return fmt.Errorf("Bad region_slug: %s", droplet.Region.Slug)
}
if findIPv4AddrByType(droplet, "private") == "" {
return fmt.Errorf("No ipv4 private: %s", findIPv4AddrByType(droplet, "private"))
}
// if droplet.IPV6Address("private") == "" {
// return fmt.Errorf("No ipv6 private: %s", droplet.IPV6Address("private"))
// }
if findIPv4AddrByType(droplet, "public") == "" {
return fmt.Errorf("No ipv4 public: %s", findIPv4AddrByType(droplet, "public"))
}
if findIPv6AddrByType(droplet, "public") == "" {
return fmt.Errorf("No ipv6 public: %s", findIPv6AddrByType(droplet, "public"))
}
for _, rs := range s.RootModule().Resources {
if rs.Type != "digitalocean_droplet" {
continue
}
if rs.Primary.Attributes["ipv6_address"] != strings.ToLower(findIPv6AddrByType(droplet, "public")) {
return fmt.Errorf("IPV6 Address should be lowercase")
}
}
return nil
}
}
func testAccCheckDigitalOceanDropletExists(n string, droplet *godo.Droplet) resource.TestCheckFunc {
2014-07-19 02:20:28 +02:00
return func(s *terraform.State) error {
rs, ok := s.RootModule().Resources[n]
2014-07-19 02:20:28 +02:00
if !ok {
return fmt.Errorf("Not found: %s", n)
}
if rs.Primary.ID == "" {
2014-07-19 02:20:28 +02:00
return fmt.Errorf("No Droplet ID is set")
}
client := testAccProvider.Meta().(*godo.Client)
id, err := strconv.Atoi(rs.Primary.ID)
if err != nil {
return err
}
2014-07-19 02:20:28 +02:00
// Try to find the Droplet
retrieveDroplet, _, err := client.Droplets.Get(id)
2014-07-19 02:20:28 +02:00
if err != nil {
return err
}
if strconv.Itoa(retrieveDroplet.ID) != rs.Primary.ID {
2014-07-19 02:20:28 +02:00
return fmt.Errorf("Droplet not found")
}
*droplet = *retrieveDroplet
2014-07-19 02:20:28 +02:00
return nil
}
}
func testAccCheckDigitalOceanDropletRecreated(t *testing.T,
before, after *godo.Droplet) resource.TestCheckFunc {
return func(s *terraform.State) error {
if before.ID == after.ID {
t.Fatalf("Expected change of droplet IDs, but both were %v", before.ID)
}
return nil
}
}
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
func testAccCheckDigitalOceanDropletConfig_basic(rInt int) string {
return fmt.Sprintf(`
resource "digitalocean_droplet" "foobar" {
name = "foo-%d"
size = "512mb"
image = "centos-7-x64"
region = "nyc3"
user_data = "foobar"
}`, rInt)
}
func testAccCheckDigitalOceanDropletConfig_withSSH(rInt int) string {
return fmt.Sprintf(`
resource "digitalocean_ssh_key" "foobar" {
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
name = "foobar-%d"
public_key = "%s"
}
2014-07-19 02:20:28 +02:00
resource "digitalocean_droplet" "foobar" {
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
name = "foo-%d"
size = "512mb"
image = "centos-7-x64"
region = "nyc3"
user_data = "foobar"
ssh_keys = ["${digitalocean_ssh_key.foobar.id}"]
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
}`, rInt, testAccValidPublicKey, rInt)
}
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
func testAccCheckDigitalOceanDropletConfig_tag_update(rInt int) string {
return fmt.Sprintf(`
resource "digitalocean_tag" "barbaz" {
name = "barbaz"
}
resource "digitalocean_droplet" "foobar" {
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
name = "foo-%d"
size = "512mb"
image = "centos-7-x64"
region = "nyc3"
user_data = "foobar"
tags = ["${digitalocean_tag.barbaz.id}"]
}
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
`, rInt)
2014-07-19 02:20:28 +02:00
}
2014-07-19 18:33:25 +02:00
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
func testAccCheckDigitalOceanDropletConfig_userdata_update(rInt int) string {
return fmt.Sprintf(`
resource "digitalocean_droplet" "foobar" {
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
name = "foo-%d"
size = "512mb"
image = "centos-7-x64"
region = "nyc3"
user_data = "foobar foobar"
}
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
`, rInt)
}
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
func testAccCheckDigitalOceanDropletConfig_RenameAndResize(rInt int) string {
return fmt.Sprintf(`
2014-07-19 18:33:25 +02:00
resource "digitalocean_droplet" "foobar" {
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
name = "baz-%d"
size = "1gb"
image = "centos-7-x64"
region = "nyc3"
2014-07-19 18:33:25 +02:00
}
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
`, rInt)
}
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
func testAccCheckDigitalOceanDropletConfig_resize_without_disk(rInt int) string {
return fmt.Sprintf(`
resource "digitalocean_droplet" "foobar" {
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
name = "foo-%d"
size = "1gb"
image = "centos-7-x64"
region = "nyc3"
user_data = "foobar"
resize_disk = false
}
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
`, rInt)
}
func testAccCheckDigitalOceanDropletConfig_resize_only_disk(rInt int) string {
return fmt.Sprintf(`
resource "digitalocean_droplet" "foobar" {
name = "foo-%d"
size = "1gb"
image = "centos-7-x64"
region = "nyc3"
user_data = "foobar"
resize_disk = true
}
`, rInt)
}
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
// IPV6 only in singapore
func testAccCheckDigitalOceanDropletConfig_PrivateNetworkingIpv6(rInt int) string {
return fmt.Sprintf(`
resource "digitalocean_droplet" "foobar" {
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
name = "baz-%d"
size = "1gb"
image = "centos-7-x64"
region = "sgp1"
ipv6 = true
private_networking = true
}
provider/digitalocean: Update digital ocean acceptance tests Digital Ocean doesn't let you upload multiple SSH keys regardless of key_name, but on the fingerprint of the key contents. Which broke all of our tests when ran in parallel. These changes maintain our acctest validity, and still let them pass. ``` ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Basic' out='=== RUN TestAccDigitalOceanDroplet_Basic|n--- PASS: TestAccDigitalOceanDroplet_Basic (47.33s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Basic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:19:59.898' name='TestAccDigitalOceanDroplet_Basic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.532' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateTags' out='=== RUN TestAccDigitalOceanDroplet_UpdateTags|n--- PASS: TestAccDigitalOceanDroplet_UpdateTags (50.96s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateTags' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:03.516' name='TestAccDigitalOceanDroplet_UpdateTags'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_importBasic' out='=== RUN TestAccDigitalOceanDroplet_importBasic|n--- PASS: TestAccDigitalOceanDroplet_importBasic (56.78s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_importBasic' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:09.335' name='TestAccDigitalOceanDroplet_importBasic'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out='=== RUN TestAccDigitalOceanDroplet_PrivateNetworkingIpv6|n--- PASS: TestAccDigitalOceanDroplet_PrivateNetworkingIpv6 (57.60s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:10.157' name='TestAccDigitalOceanDroplet_PrivateNetworkingIpv6'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_withSSH' out='=== RUN TestAccDigitalOceanDroplet_withSSH|n--- PASS: TestAccDigitalOceanDroplet_withSSH (59.76s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_withSSH' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:12.326' name='TestAccDigitalOceanDroplet_withSSH'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_Update' out='=== RUN TestAccDigitalOceanDroplet_Update|n--- PASS: TestAccDigitalOceanDroplet_Update (83.65s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_Update' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:36.213' name='TestAccDigitalOceanDroplet_Update'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.530' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_UpdateUserData' out='=== RUN TestAccDigitalOceanDroplet_UpdateUserData|n--- PASS: TestAccDigitalOceanDroplet_UpdateUserData (103.18s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_UpdateUserData' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:20:55.738' name='TestAccDigitalOceanDroplet_UpdateUserData'] ##teamcity[testStarted timestamp='2017-02-10T16:19:12.533' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ##teamcity[testStdOut name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out='=== RUN TestAccDigitalOceanDroplet_ResizeWithOutDisk|n--- PASS: TestAccDigitalOceanDroplet_ResizeWithOutDisk (118.98s)|nPASS|n'] ##teamcity[testStdErr name='TestAccDigitalOceanDroplet_ResizeWithOutDisk' out=''] ##teamcity[testFinished timestamp='2017-02-10T16:21:11.558' name='TestAccDigitalOceanDroplet_ResizeWithOutDisk'] ```
2017-02-10 22:41:35 +01:00
`, rInt)
}
var testAccValidPublicKey = `ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR`