Skip to content

Commit de7b714

Browse files
author
Phil Brocker
committed
add updateWindow into tests
1 parent 5235ab1 commit de7b714

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/provider/workspacegroups/resource_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package workspacegroups_test
22

33
import (
44
"encoding/json"
5+
"fmt"
56
"io"
67
"net/http"
78
"net/http/httptest"
@@ -213,6 +214,8 @@ func TestCRUDWorkspaceGroup(t *testing.T) {
213214
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "admin_password", config.TestInitialAdminPassword),
214215
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "firewall_ranges.#", "1"),
215216
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "firewall_ranges.0", config.TestInitialFirewallRange),
217+
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "update_window.day", fmt.Sprint(config.TestInitialUpdateWindowDay)),
218+
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "update_window.hour", fmt.Sprint(config.TestInitialUpdateWindowHour)),
216219
),
217220
},
218221
{
@@ -252,6 +255,8 @@ func TestWorkspaceGroupResourceIntegration(t *testing.T) {
252255
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "admin_password", config.TestInitialAdminPassword),
253256
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "firewall_ranges.#", "1"),
254257
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "firewall_ranges.0", config.TestInitialFirewallRange),
258+
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "update_window", fmt.Sprint(config.TestInitialUpdateWindowDay)),
259+
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "update_window.hour", fmt.Sprint(config.TestInitialUpdateWindowHour)),
255260
),
256261
},
257262
{

0 commit comments

Comments
 (0)