Skip to content

Commit e3a3e10

Browse files
committed
Add tests for new boot_script field
1 parent 730cbd0 commit e3a3e10

2 files changed

+6
-0
lines changed

ovh/data_dedicated_server_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ func TestAccDedicatedServerDataSource_basic(t *testing.T) {
2727
"data.ovh_dedicated_server.server", "vnis.#"),
2828
resource.TestCheckResourceAttr(
2929
"data.ovh_dedicated_server.server", "vnis.0.server_name", dedicated_server),
30+
resource.TestCheckResourceAttr(
31+
"data.ovh_dedicated_server.server", "boot_script", ""),
3032
resource.TestCheckResourceAttrSet(
3133
"data.ovh_dedicated_server.server", "urn"),
3234
),

ovh/resource_dedicated_server_update_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ func TestAccDedicatedServerUpdate_basic(t *testing.T) {
2424
"ovh_dedicated_server_update.server", "monitoring", "true"),
2525
resource.TestCheckResourceAttr(
2626
"ovh_dedicated_server_update.server", "state", "ok"),
27+
resource.TestCheckResourceAttr(
28+
"ovh_dedicated_server_update.server", "boot_script", ""),
2729
),
2830
},
2931
{
@@ -34,6 +36,8 @@ func TestAccDedicatedServerUpdate_basic(t *testing.T) {
3436
"ovh_dedicated_server_update.server", "monitoring", "false"),
3537
resource.TestCheckResourceAttr(
3638
"ovh_dedicated_server_update.server", "state", "ok"),
39+
resource.TestCheckResourceAttr(
40+
"ovh_dedicated_server_update.server", "boot_script", ""),
3741
),
3842
},
3943
},

0 commit comments

Comments
 (0)