Skip to content

Commit 8f9bee6

Browse files
committed
fixup again
1 parent 150e8cd commit 8f9bee6

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

internal/provider/group_resource_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package provider
55

66
import (
77
"context"
8+
"os"
89
"strings"
910
"testing"
1011
"text/template"
@@ -16,9 +17,9 @@ import (
1617
)
1718

1819
func TestAccGroupResource(t *testing.T) {
19-
// if os.Getenv("TF_ACC") == "" {
20-
// t.Skip("Acceptance tests are disabled.")
21-
// }
20+
if os.Getenv("TF_ACC") == "" {
21+
t.Skip("Acceptance tests are disabled.")
22+
}
2223

2324
ctx := context.Background()
2425
client := integration.StartCoder(ctx, t, "group_acc")
@@ -60,7 +61,6 @@ func TestAccGroupResource(t *testing.T) {
6061
cfg2.Members = PtrTo([]string{user2.ID.String()})
6162

6263
resource.Test(t, resource.TestCase{
63-
IsUnitTest: true,
6464
PreCheck: func() { testAccPreCheck(t) },
6565
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
6666
Steps: []resource.TestStep{

internal/provider/user_data_source_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ package provider
22

33
import (
44
"context"
5-
"html/template"
65
"os"
76
"regexp"
87
"strings"
98
"testing"
9+
"text/template"
1010

1111
"github.com/coder/coder/v2/codersdk"
1212
"github.com/coder/terraform-provider-coderd/integration"
@@ -43,7 +43,7 @@ func TestAccUserDataSource(t *testing.T) {
4343
cfg := testAccUserDataSourceConfig{
4444
URL: client.URL.String(),
4545
Token: client.SessionToken(),
46-
Username: user.Username,
46+
Username: PtrTo(user.Username),
4747
}
4848
resource.Test(t, resource.TestCase{
4949
PreCheck: func() { testAccPreCheck(t) },
@@ -69,7 +69,7 @@ func TestAccUserDataSource(t *testing.T) {
6969
cfg := testAccUserDataSourceConfig{
7070
URL: client.URL.String(),
7171
Token: client.SessionToken(),
72-
ID: user.ID.String(),
72+
ID: PtrTo(user.ID.String()),
7373
}
7474
resource.Test(t, resource.TestCase{
7575
PreCheck: func() { testAccPreCheck(t) },
@@ -115,8 +115,8 @@ type testAccUserDataSourceConfig struct {
115115
URL string
116116
Token string
117117

118-
ID string
119-
Username string
118+
ID *string
119+
Username *string
120120
}
121121

122122
func (c testAccUserDataSourceConfig) String(t *testing.T) string {
@@ -128,7 +128,7 @@ provider coderd {
128128
}
129129
130130
data "coderd_user" "test" {
131-
id = {{orNull .ID}}
131+
id = {{orNull .ID}}
132132
username = {{orNull .Username}}
133133
}`
134134

0 commit comments

Comments
 (0)