Skip to content

Commit 6145388

Browse files
test: use testResourcePrefix in enterprise teams data source test
1 parent 39b2fc6 commit 6145388

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

github/data_source_github_enterprise_teams.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import (
1111
)
1212

1313
const (
14-
teamIDKey = "team_id"
15-
teamSlugKey = "slug"
16-
teamNameKey = "name"
17-
teamDescriptionKey = "description"
18-
teamOrganizationSelectionKey = "organization_selection_type"
19-
teamGroupIDKey = "group_id"
14+
teamIDKey = "team_id"
15+
teamSlugKey = "slug"
16+
teamNameKey = "name"
17+
teamDescriptionKey = "description"
18+
teamOrganizationSelectionKey = "organization_selection_type"
19+
teamGroupIDKey = "group_id"
2020
)
2121

2222
func dataSourceGithubEnterpriseTeams() *schema.Resource {

github/data_source_github_enterprise_teams_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ func TestAccGithubEnterpriseTeamsDataSource(t *testing.T) {
1818
1919
resource "github_enterprise_team" "test" {
2020
enterprise_slug = data.github_enterprise.enterprise.slug
21-
name = "tf-acc-ds-enterprise-teams-%s"
21+
name = "%s%s"
2222
}
2323
2424
data "github_enterprise_teams" "all" {
2525
enterprise_slug = data.github_enterprise.enterprise.slug
2626
depends_on = [github_enterprise_team.test]
2727
}
28-
`, testAccConf.enterpriseSlug, randomID)
28+
`, testAccConf.enterpriseSlug, testResourcePrefix, randomID)
2929

3030
resource.Test(t, resource.TestCase{
3131
PreCheck: func() { skipUnlessMode(t, enterprise) },

0 commit comments

Comments
 (0)