Skip to content

Commit

Permalink
Fixes an invalid droplet size in some tests. (#724)
Browse files Browse the repository at this point in the history
Also adds an attribute to ignore in an import test.
  • Loading branch information
scotchneat committed Oct 18, 2021
1 parent bc4f725 commit 47ea2c4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions digitalocean/datasource_digitalocean_droplet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func testAccCheckDataSourceDigitalOceanDropletConfig_basicById(name string) stri
return fmt.Sprintf(`
resource "digitalocean_droplet" "foo" {
name = "%s"
size = "512mb"
size = "s-1vcpu-1gb"
image = "centos-7-x64"
region = "nyc3"
ipv6 = true
Expand All @@ -196,7 +196,7 @@ resource "digitalocean_tag" "foo" {
resource "digitalocean_droplet" "foo" {
name = "%s"
size = "512mb"
size = "s-1vcpu-1gb"
image = "centos-7-x64"
region = "nyc3"
ipv6 = true
Expand All @@ -213,7 +213,7 @@ resource "digitalocean_tag" "foo" {
resource "digitalocean_droplet" "foo" {
name = "%s"
size = "512mb"
size = "s-1vcpu-1gb"
image = "centos-7-x64"
region = "nyc3"
ipv6 = true
Expand Down
2 changes: 1 addition & 1 deletion digitalocean/datasource_digitalocean_loadbalancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ resource "digitalocean_droplet" "foo" {
image = "ubuntu-18-04-x64"
name = "%s-${count.index}"
region = "nyc3"
size = "512mb"
size = "s-1vcpu-1gb"
private_networking = true
tags = [digitalocean_tag.foo.id]
}
Expand Down
4 changes: 2 additions & 2 deletions digitalocean/import_digitalocean_droplet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestAccDigitalOceanDroplet_ImportWithNoImageSlug(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{
"ssh_keys", "user_data", "resize_disk"}, //we ignore the ssh_keys, resize_disk and user_data as we do not set to state
"ssh_keys", "user_data", "resize_disk", "graceful_shutdown"}, //we ignore the ssh_keys, resize_disk and user_data as we do not set to state
},
{
Config: " ",
Expand Down Expand Up @@ -108,7 +108,7 @@ data "digitalocean_image" "snapshot" {
resource "digitalocean_droplet" "from-snapshot" {
name = "foo-%d"
size = "512mb"
size = "s-1vcpu-1gb"
image = "${data.digitalocean_image.snapshot.id}"
region = "nyc3"
user_data = "foobar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func testAccCheckDigitalOceanDropletSnapshotDestroy(s *terraform.State) error {
const testAccCheckDigitalOceanDropletSnapshotConfig_basic = `
resource "digitalocean_droplet" "foo" {
name = "foo-%d"
size = "512mb"
size = "s-1vcpu-1gb"
image = "centos-7-x64"
region = "nyc3"
user_data = "foobar"
Expand Down
6 changes: 3 additions & 3 deletions digitalocean/resource_digitalocean_loadbalancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ resource "digitalocean_tag" "barbaz" {
resource "digitalocean_droplet" "foobar" {
name = "foo-%d"
size = "512mb"
size = "s-1vcpu-1gb"
image = "centos-7-x64"
region = "nyc3"
tags = ["${digitalocean_tag.barbaz.id}"]
Expand Down Expand Up @@ -727,7 +727,7 @@ func testAccCheckDigitalOceanLoadbalancerConfig_minimal(rInt int) string {
return fmt.Sprintf(`
resource "digitalocean_droplet" "foobar" {
name = "foo-%d"
size = "512mb"
size = "s-1vcpu-1gb"
image = "centos-7-x64"
region = "nyc3"
}
Expand All @@ -753,7 +753,7 @@ func testAccCheckDigitalOceanLoadbalancerConfig_stickySessions(rInt int) string
return fmt.Sprintf(`
resource "digitalocean_droplet" "foobar" {
name = "foo-%d"
size = "512mb"
size = "s-1vcpu-1gb"
image = "centos-7-x64"
region = "nyc3"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ resource "digitalocean_project" "foo" {
resource "digitalocean_droplet" "foobar" {
name = "%s"
size = "512mb"
size = "s-1vcpu-1gb"
image = "centos-7-x64"
region = "nyc3"
user_data = "foobar"
Expand Down
2 changes: 1 addition & 1 deletion digitalocean/resource_digitalocean_project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ func fixtureCreateWithDropletResource(dropletName, name string) string {
return fmt.Sprintf(`
resource "digitalocean_droplet" "foobar" {
name = "%s"
size = "512mb"
size = "s-1vcpu-1gb"
image = "centos-7-x64"
region = "nyc3"
user_data = "foobar"
Expand Down

0 comments on commit 47ea2c4

Please sign in to comment.