From 43ac64e2b7f233a27ee17a50359bfd0849860420 Mon Sep 17 00:00:00 2001 From: stack72 Date: Mon, 8 Aug 2016 12:08:37 +1200 Subject: [PATCH] provider/digitalocean: Acceptance Tests needed a new Image Name --- .../resource_digitalocean_droplet_test.go | 16 ++++++++-------- .../resource_digitalocean_floating_ip_test.go | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/builtin/providers/digitalocean/resource_digitalocean_droplet_test.go b/builtin/providers/digitalocean/resource_digitalocean_droplet_test.go index 23485cfd6..d6f2b190d 100644 --- a/builtin/providers/digitalocean/resource_digitalocean_droplet_test.go +++ b/builtin/providers/digitalocean/resource_digitalocean_droplet_test.go @@ -29,7 +29,7 @@ func TestAccDigitalOceanDroplet_Basic(t *testing.T) { resource.TestCheckResourceAttr( "digitalocean_droplet.foobar", "size", "512mb"), resource.TestCheckResourceAttr( - "digitalocean_droplet.foobar", "image", "centos-5-8-x32"), + "digitalocean_droplet.foobar", "image", "centos-7-x64"), resource.TestCheckResourceAttr( "digitalocean_droplet.foobar", "region", "nyc3"), resource.TestCheckResourceAttr( @@ -191,7 +191,7 @@ func testAccCheckDigitalOceanDropletDestroy(s *terraform.State) error { func testAccCheckDigitalOceanDropletAttributes(droplet *godo.Droplet) resource.TestCheckFunc { return func(s *terraform.State) error { - if droplet.Image.Slug != "centos-5-8-x32" { + if droplet.Image.Slug != "centos-7-x64" { return fmt.Errorf("Bad image_slug: %s", droplet.Image.Slug) } @@ -228,7 +228,7 @@ func testAccCheckDigitalOceanDropletRenamedAndResized(droplet *godo.Droplet) res func testAccCheckDigitalOceanDropletAttributes_PrivateNetworkingIpv6(droplet *godo.Droplet) resource.TestCheckFunc { return func(s *terraform.State) error { - if droplet.Image.Slug != "centos-5-8-x32" { + if droplet.Image.Slug != "centos-7-x64" { return fmt.Errorf("Bad image_slug: %s", droplet.Image.Slug) } @@ -336,7 +336,7 @@ resource "digitalocean_ssh_key" "foobar" { resource "digitalocean_droplet" "foobar" { name = "foo" size = "512mb" - image = "centos-5-8-x32" + image = "centos-7-x64" region = "nyc3" user_data = "foobar" ssh_keys = ["${digitalocean_ssh_key.foobar.id}"] @@ -356,7 +356,7 @@ resource "digitalocean_ssh_key" "foobar" { resource "digitalocean_droplet" "foobar" { name = "foo" size = "512mb" - image = "centos-5-8-x32" + image = "centos-7-x64" region = "nyc3" user_data = "foobar" ssh_keys = ["${digitalocean_ssh_key.foobar.id}"] @@ -373,7 +373,7 @@ resource "digitalocean_ssh_key" "foobar" { resource "digitalocean_droplet" "foobar" { name = "foo" size = "512mb" - image = "centos-5-8-x32" + image = "centos-7-x64" region = "nyc3" user_data = "foobar foobar" ssh_keys = ["${digitalocean_ssh_key.foobar.id}"] @@ -389,7 +389,7 @@ resource "digitalocean_ssh_key" "foobar" { resource "digitalocean_droplet" "foobar" { name = "baz" size = "1gb" - image = "centos-5-8-x32" + image = "centos-7-x64" region = "nyc3" ssh_keys = ["${digitalocean_ssh_key.foobar.id}"] } @@ -405,7 +405,7 @@ resource "digitalocean_ssh_key" "foobar" { resource "digitalocean_droplet" "foobar" { name = "baz" size = "1gb" - image = "centos-5-8-x32" + image = "centos-7-x64" region = "sgp1" ipv6 = true private_networking = true diff --git a/builtin/providers/digitalocean/resource_digitalocean_floating_ip_test.go b/builtin/providers/digitalocean/resource_digitalocean_floating_ip_test.go index 5b57aa8dc..6cb3ba417 100644 --- a/builtin/providers/digitalocean/resource_digitalocean_floating_ip_test.go +++ b/builtin/providers/digitalocean/resource_digitalocean_floating_ip_test.go @@ -113,7 +113,7 @@ resource "digitalocean_ssh_key" "foobar" { resource "digitalocean_droplet" "foobar" { name = "baz" size = "1gb" - image = "centos-5-8-x32" + image = "centos-7-x64" region = "nyc3" ipv6 = true private_networking = true