Skip to content

Commit

Permalink
Merge pull request #37 from terraform-providers/f-update-tests
Browse files Browse the repository at this point in the history
Update acceptance test users
  • Loading branch information
grubernaut authored Jul 6, 2017
2 parents e02e7bc + 062d0fa commit 8aaa39a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion github/resource_github_membership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ var testAccGithubMembershipConfig string = fmt.Sprintf(`
username = "%s"
role = "member"
}
`, testUser)
`, testCollaborator)
6 changes: 3 additions & 3 deletions github/resource_github_team_membership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ func TestAccGithubTeamMembership_basic(t *testing.T) {
username = "%s"
role = "maintainer"
}
`, testUser, randString, testUser)
`, testCollaborator, randString, testCollaborator)

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckGithubTeamMembershipDestroy,
Steps: []resource.TestStep{
{
Config: testAccGithubTeamMembershipConfig(randString, testUser),
Config: testAccGithubTeamMembershipConfig(randString, testCollaborator),
Check: resource.ComposeTestCheckFunc(
testAccCheckGithubTeamMembershipExists("github_team_membership.test_team_membership", &membership),
testAccCheckGithubTeamMembershipRoleState("github_team_membership.test_team_membership", "member", &membership),
Expand All @@ -65,7 +65,7 @@ func TestAccGithubTeamMembership_importBasic(t *testing.T) {
CheckDestroy: testAccCheckGithubTeamMembershipDestroy,
Steps: []resource.TestStep{
{
Config: testAccGithubTeamMembershipConfig(randString, testUser),
Config: testAccGithubTeamMembershipConfig(randString, testCollaborator),
},
{
ResourceName: "github_team_membership.test_team_membership",
Expand Down

0 comments on commit 8aaa39a

Please sign in to comment.