Skip to content

Commit

Permalink
Update pingone provider in acctests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickcping committed Aug 15, 2024
1 parent 098bb7f commit deb3f6b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
29 changes: 14 additions & 15 deletions internal/acctest/acctest.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func init() {
ExternalProviders = map[string]resource.ExternalProvider{
"pingone": {
Source: "pingidentity/pingone",
VersionConstraint: ">= 0.25, < 1.0",
VersionConstraint: ">= 1.0, < 2.0",
},
}
}
Expand Down Expand Up @@ -294,21 +294,20 @@ resource "pingone_environment" "%[1]s" {
name = "tf-testacc-dv-dynamic-%[1]s"
license_id = "%[2]s"
service {
type = "SSO"
}
service {
type = "DaVinci"
tags = %[6]s
}
dynamic "service" {
for_each = toset(var.services_%[1]s)
content {
type = service.key
services = concat([
for serviceType in var.services_%[1]s : {
type = serviceType
}
}
],
[
{
type = "SSO"
},
{
type = "DaVinci"
tags = ["DAVINCI_MINIMAL"]
}
])
}
`, resourceName, licenseID, username, adminEnvID, servicesString, daVinciTags)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/acctest/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (tcp TestConnection) MakeConnectionHcl() (hcl string) {
}
hcl = fmt.Sprintf(`
resource "davinci_connection" "%[2]s" {
environment_id = resource.pingone_role_assignment_user.%[1]s.scope_environment_id
environment_id = resource.pingone_user_role_assignment.%[1]s.scope_environment_id
connector_id = "%[3]s"
name = "%[2]s"
%[4]s
Expand Down

0 comments on commit deb3f6b

Please sign in to comment.