diff --git a/internal/provider/resource_account_oidc_test.go b/internal/provider/resource_account_oidc_test.go new file mode 100644 index 00000000..c656e42a --- /dev/null +++ b/internal/provider/resource_account_oidc_test.go @@ -0,0 +1,97 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "fmt" + "strings" + "testing" + + "github.com/hashicorp/boundary/testing/controller" + "github.com/hashicorp/cap/oidc" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" +) + +const ( + fooAccountOidcDesc = "test account oidc" + fooAccountOidcDescUpdate = "test account oidc update" +) + +var ( + fooAccountOidc = ` +resource "boundary_auth_method_oidc" "foo" { + name = "test" + description = "test account oidc auth method" + scope_id = boundary_scope.org1.id + depends_on = [boundary_role.org1_admin] + + issuer = "%s" + client_id = "foo_id" + client_secret = "foo_secret" + max_age = 0 + api_url_prefix = "http://localhost:9200" + idp_ca_certs = [ +<