terraform/builtin/providers/digitalocean/resource_digitalocean_ssh_k...

118 lines
3.3 KiB
Go
Raw Normal View History

2015-02-25 12:38:23 +01:00
package digitalocean
import (
"fmt"
"strconv"
"strings"
2015-02-25 12:38:23 +01:00
"testing"
"github.com/digitalocean/godo"
2015-02-25 12:38:23 +01:00
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
func TestAccDigitalOceanSSHKey_Basic(t *testing.T) {
var key godo.Key
2015-02-25 12:38:23 +01:00
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDigitalOceanSSHKeyDestroy,
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: testAccCheckDigitalOceanSSHKeyConfig_basic(testAccValidPublicKey),
2015-02-25 12:38:23 +01:00
Check: resource.ComposeTestCheckFunc(
testAccCheckDigitalOceanSSHKeyExists("digitalocean_ssh_key.foobar", &key),
testAccCheckDigitalOceanSSHKeyAttributes(&key),
resource.TestCheckResourceAttr(
"digitalocean_ssh_key.foobar", "name", "foobar"),
resource.TestCheckResourceAttr(
"digitalocean_ssh_key.foobar", "public_key", strings.TrimSpace(testAccValidPublicKey)),
2015-02-25 12:38:23 +01:00
),
},
},
})
}
func testAccCheckDigitalOceanSSHKeyDestroy(s *terraform.State) error {
client := testAccProvider.Meta().(*godo.Client)
2015-02-25 12:38:23 +01:00
for _, rs := range s.RootModule().Resources {
if rs.Type != "digitalocean_ssh_key" {
continue
}
id, err := strconv.Atoi(rs.Primary.ID)
if err != nil {
return err
}
2015-02-25 12:38:23 +01:00
// Try to find the key
_, _, err = client.Keys.GetByID(id)
2015-02-25 12:38:23 +01:00
if err == nil {
return fmt.Errorf("SSH key still exists")
2015-02-25 12:38:23 +01:00
}
}
return nil
}
func testAccCheckDigitalOceanSSHKeyAttributes(key *godo.Key) resource.TestCheckFunc {
2015-02-25 12:38:23 +01:00
return func(s *terraform.State) error {
if key.Name != "foobar" {
return fmt.Errorf("Bad name: %s", key.Name)
}
return nil
}
}
func testAccCheckDigitalOceanSSHKeyExists(n string, key *godo.Key) resource.TestCheckFunc {
2015-02-25 12:38:23 +01:00
return func(s *terraform.State) error {
rs, ok := s.RootModule().Resources[n]
if !ok {
return fmt.Errorf("Not found: %s", n)
}
if rs.Primary.ID == "" {
return fmt.Errorf("No Record ID is set")
}
client := testAccProvider.Meta().(*godo.Client)
2015-02-25 12:38:23 +01:00
id, err := strconv.Atoi(rs.Primary.ID)
if err != nil {
return err
}
// Try to find the key
foundKey, _, err := client.Keys.GetByID(id)
2015-02-25 12:38:23 +01:00
if err != nil {
return err
}
if strconv.Itoa(foundKey.ID) != rs.Primary.ID {
2015-02-25 12:38:23 +01:00
return fmt.Errorf("Record not found")
}
*key = *foundKey
2015-02-25 12:38:23 +01:00
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 testAccCheckDigitalOceanSSHKeyConfig_basic(key string) string {
return fmt.Sprintf(`
2015-02-25 12:38:23 +01:00
resource "digitalocean_ssh_key" "foobar" {
name = "foobar"
public_key = "%s"
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
}`, key)
}
var testAccValidPublicKey = `ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVERRN7/9484SOBJ3HSKxxNG5JN8owAjy5f9yYwcUg+JaUVuytn5Pv3aeYROHGGg+5G346xaq3DAwX6Y5ykr2fvjObgncQBnuU5KHWCECO/4h8uWuwh/kfniXPVjFToc+gnkqA+3RKpAecZhFXwfalQ9mMuYGFxn+fwn8cYEApsJbsEmb0iJwPiZ5hjFC8wREuiTlhPHDgkBLOiycd20op2nXzDbHfCHInquEe/gYxEitALONxm0swBOwJZwlTDOB7C6y2dzlrtxr1L59m7pCkWI4EtTRLvleehBoj3u7jB4usR`
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
var testAccValidImportPublicKey = `ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwelf/LV8TKOd6ZCcDwU9L8YRdVwfR2q8E+Bzamcxwb1U41vnfyvEZbzx0aeXimdHipOql0SG2tu9Z+bzekROVc13OP/gtGRlWwZ9RoKE8hFHanhi0K2tC6OWagsvmHpW/xptsYAo2k+eRJJo0iy/hLNG2c1v5rrjg6xwnSL3+a7bFM4xNDux5sNYCmxIBfIL+4rQ8XBlxsjMrGoev/uumZ0yc75JtBCOSZbdie936pvVmoAf4nhxNbe5lOxp+18zHhBbO2fjhux4xmf4hLM2gHsdBGqtnphzLh3d1+uMIpv7ZMTKN7pBw53xQxw7hhDYuNKc8FkQ8xK6IL5bu/Ar/`