Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicsim1 committed Oct 10, 2024
1 parent 5879227 commit bc81ed3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions octopusdeploy/resource_space_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,31 @@ func testSpaceDataSource(localName string, name string, slug string) string {
}`, localName, name)
}

func testAccUserBasic(localName string, displayName string, isActive bool, isService bool, password string, username string, emailAddress string) string {
return fmt.Sprintf(`resource "octopusdeploy_user" "%s" {
display_name = "%s"
email_address = "%s"
is_active = %v
is_service = %v
password = "%s"
username = "%s"
identity {
provider = "Octopus ID"
claim {
name = "email"
is_identifying_claim = true
value = "%s"
}
claim {
name = "dn"
is_identifying_claim = false
value = "%s"
}
}
}`, localName, displayName, emailAddress, isActive, isService, password, username, emailAddress, displayName)
}

func testSpaceBasic(localName string, name string, slug string) string {
userLocalName := acctest.RandStringFromCharSet(20, acctest.CharSetAlpha)
userDisplayName := acctest.RandStringFromCharSet(20, acctest.CharSetAlpha)
Expand Down

0 comments on commit bc81ed3

Please sign in to comment.