Skip to content

Commit 0ecb31a

Browse files
committed
Update Org test to ensure it actually tests
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent b45ac72 commit 0ecb31a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

github/provider_test.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,17 +117,20 @@ func TestAccProviderConfigure(t *testing.T) {
117117
config := fmt.Sprintf(`
118118
provider "github" {
119119
token = "%s"
120-
owner = "%s"
121-
}`, testAccConf.token, testAccConf.owner)
120+
owner = "%[2]s"
121+
}
122+
123+
data "github_organization" "test" {
124+
name = "%[2]s"
125+
}
126+
`, testAccConf.token, testAccConf.owner)
122127

123128
resource.Test(t, resource.TestCase{
124129
PreCheck: func() { skipUnlessHasOrgs(t) },
125130
ProviderFactories: providerFactories,
126131
Steps: []resource.TestStep{
127132
{
128-
Config: config,
129-
PlanOnly: true,
130-
ExpectNonEmptyPlan: false,
133+
Config: config,
131134
},
132135
},
133136
})

0 commit comments

Comments
 (0)