provider/digitalocean: Acceptance Tests needed a new Image Name

This commit is contained in:
stack72 2016-08-08 12:08:37 +12:00
parent a56a1450d4
commit 43ac64e2b7
No known key found for this signature in database
GPG Key ID: 8619A619B085CB16
2 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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