Skip to content

Commit

Permalink
add updateWindow into tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Brocker committed Jul 20, 2023
1 parent 5235ab1 commit de7b714
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/provider/workspacegroups/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package workspacegroups_test

import (
"encoding/json"
"fmt"
"io"
"net/http"
"net/http/httptest"
Expand Down Expand Up @@ -213,6 +214,8 @@ func TestCRUDWorkspaceGroup(t *testing.T) {
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "admin_password", config.TestInitialAdminPassword),
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "firewall_ranges.#", "1"),
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "firewall_ranges.0", config.TestInitialFirewallRange),
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "update_window.day", fmt.Sprint(config.TestInitialUpdateWindowDay)),
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "update_window.hour", fmt.Sprint(config.TestInitialUpdateWindowHour)),
),
},
{
Expand Down Expand Up @@ -252,6 +255,8 @@ func TestWorkspaceGroupResourceIntegration(t *testing.T) {
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "admin_password", config.TestInitialAdminPassword),
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "firewall_ranges.#", "1"),
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "firewall_ranges.0", config.TestInitialFirewallRange),
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "update_window", fmt.Sprint(config.TestInitialUpdateWindowDay)),
resource.TestCheckResourceAttr("singlestoredb_workspace_group.this", "update_window.hour", fmt.Sprint(config.TestInitialUpdateWindowHour)),
),
},
{
Expand Down

0 comments on commit de7b714

Please sign in to comment.