@@ -37,15 +37,16 @@ var (
3737 }
3838
3939 identityProviderRepresentation = map [string ]interface {}{
40- "compartment_id" : Representation {repType : Required , create : `${var.tenancy_ocid}` },
41- "description" : Representation {repType : Required , create : `description` , update : `description2` },
42- "metadata" : Representation {repType : Required , create : `${file("${var.identity_provider_metadata_file}")}` , update : `${file("${var.identity_provider_metadata_file}")}` },
43- "metadata_url" : Representation {repType : Required , create : `metadataUrl` , update : `metadataUrl2` },
44- "name" : Representation {repType : Required , create : `test-idp-saml2-adfs` },
45- "product_type" : Representation {repType : Required , create : `ADFS` },
46- "protocol" : Representation {repType : Required , create : `SAML2` },
47- "defined_tags" : Representation {repType : Optional , create : `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}` , update : `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}` },
48- "freeform_tags" : Representation {repType : Optional , create : map [string ]string {"Department" : "Finance" }, update : map [string ]string {"Department" : "Accounting" }},
40+ "compartment_id" : Representation {repType : Required , create : `${var.tenancy_ocid}` },
41+ "description" : Representation {repType : Required , create : `description` , update : `description2` },
42+ "metadata" : Representation {repType : Required , create : `${file("${var.identity_provider_metadata_file}")}` },
43+ "metadata_url" : Representation {repType : Required , create : `metadataUrl` , update : `metadataUrl2` },
44+ "name" : Representation {repType : Required , create : `test-idp-saml2-adfs` },
45+ "product_type" : Representation {repType : Required , create : `ADFS` },
46+ "protocol" : Representation {repType : Required , create : `SAML2` },
47+ "defined_tags" : Representation {repType : Optional , create : `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}` , update : `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}` },
48+ "freeform_attributes" : Representation {repType : Optional , create : map [string ]string {"clientId" : "app_sf3kdjf3" }},
49+ "freeform_tags" : Representation {repType : Optional , create : map [string ]string {"Department" : "Finance" }, update : map [string ]string {"Department" : "Accounting" }},
4950 }
5051
5152 IdentityProviderResourceDependencies = DefinedTagsDependencies + IdentityProviderPropertyVariables
@@ -115,6 +116,7 @@ func TestIdentityIdentityProviderResource_basic(t *testing.T) {
115116 resource .TestCheckResourceAttr (resourceName , "compartment_id" , tenancyId ),
116117 resource .TestCheckResourceAttr (resourceName , "defined_tags.%" , "1" ),
117118 resource .TestCheckResourceAttr (resourceName , "description" , "description" ),
119+ resource .TestCheckResourceAttr (resourceName , "freeform_attributes.%" , "1" ),
118120 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
119121 resource .TestCheckResourceAttrSet (resourceName , "id" ),
120122 resource .TestCheckResourceAttr (resourceName , "metadata" , metadata ),
@@ -141,6 +143,7 @@ func TestIdentityIdentityProviderResource_basic(t *testing.T) {
141143 resource .TestCheckResourceAttr (resourceName , "compartment_id" , tenancyId ),
142144 resource .TestCheckResourceAttr (resourceName , "defined_tags.%" , "1" ),
143145 resource .TestCheckResourceAttr (resourceName , "description" , "description2" ),
146+ resource .TestCheckResourceAttr (resourceName , "freeform_attributes.%" , "1" ),
144147 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
145148 resource .TestCheckResourceAttrSet (resourceName , "id" ),
146149 resource .TestCheckResourceAttr (resourceName , "metadata" , metadata ),
@@ -175,6 +178,7 @@ func TestIdentityIdentityProviderResource_basic(t *testing.T) {
175178 resource .TestCheckResourceAttr (datasourceName , "identity_providers.0.compartment_id" , tenancyId ),
176179 resource .TestCheckResourceAttr (datasourceName , "identity_providers.0.defined_tags.%" , "1" ),
177180 resource .TestCheckResourceAttr (datasourceName , "identity_providers.0.description" , "description2" ),
181+ resource .TestCheckResourceAttr (datasourceName , "identity_providers.0.freeform_attributes.%" , "1" ),
178182 resource .TestCheckResourceAttr (datasourceName , "identity_providers.0.freeform_tags.%" , "1" ),
179183 resource .TestCheckResourceAttrSet (datasourceName , "identity_providers.0.id" ),
180184 resource .TestCheckResourceAttr (datasourceName , "identity_providers.0.name" , "test-idp-saml2-adfs" ),
0 commit comments