Skip to content

Commit

Permalink
Merge pull request #423 from hashicorp/aw/add-test-info
Browse files Browse the repository at this point in the history
Add comment about the tst- prefix for future us.
  • Loading branch information
annawinkler committed Jun 9, 2022
2 parents 0280928 + 10d74ee commit 44a6190
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helper_test.go
Expand Up @@ -414,6 +414,9 @@ func createOAuthToken(t *testing.T, client *Client, org *Organization) (*OAuthTo
return ocTest.OAuthTokens[0], ocTestCleanup
}

// createOrganization creates an organization for tests using the special prefix
// "tst-" that the API uses especially to grant access to orgs for testing.
// Don't change this prefix unless we refactor the code!
func createOrganization(t *testing.T, client *Client) (*Organization, func()) {
return createOrganizationWithOptions(t, client, OrganizationCreateOptions{
Name: String("tst-" + randomString(t)),
Expand Down

0 comments on commit 44a6190

Please sign in to comment.