@@ -185,6 +185,7 @@ func TestManagementAgentManagementAgentResource_basic(t *testing.T) {
185185 "managed_agent_id" : acctest.Representation {RepType : acctest .Required , Create : managementAgentId },
186186 "display_name" : acctest.Representation {RepType : acctest .Optional , Create : `terraformTest` , Update : `terraformTest2` },
187187 "deploy_plugins_id" : acctest.Representation {RepType : acctest .Optional , Create : []string {`${data.oci_management_agent_management_agent_plugins.test_management_agent_plugins.management_agent_plugins.0.id}` }},
188+ "freeform_tags" : acctest.Representation {RepType : acctest .Required , Create : map [string ]string {"TestingTag" : "TestingValue" }, Update : map [string ]string {"TestingTag2" : "TestingValue2" }},
188189 }
189190 ManagementAgentRequiredOnlyResource := acctest .GenerateResourceFromRepresentationMap ("oci_management_agent_management_agent" , "test_management_agent" , acctest .Required , acctest .Create , managementAgentRepresentation )
190191
@@ -205,6 +206,7 @@ func TestManagementAgentManagementAgentResource_basic(t *testing.T) {
205206 acctest .GenerateResourceFromRepresentationMap ("oci_management_agent_management_agent" ,
206207 "test_management_agent" , acctest .Required , acctest .Create , managementAgentRepresentation ),
207208 Check : acctest .ComposeAggregateTestCheckFuncWrapper (
209+ resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
208210
209211 func (s * terraform.State ) (err error ) {
210212 resId , err = acctest .FromInstanceState (s , resourceName , "id" )
@@ -228,6 +230,7 @@ func TestManagementAgentManagementAgentResource_basic(t *testing.T) {
228230 resource .TestCheckResourceAttrSet (resourceName , "id" ),
229231 resource .TestCheckResourceAttrSet (resourceName , "version" ),
230232 resource .TestCheckResourceAttr (resourceName , "display_name" , "terraformTest2" ),
233+ resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
231234
232235 func (s * terraform.State ) (err error ) {
233236 resId2 , err = acctest .FromInstanceState (s , resourceName , "id" )
@@ -291,7 +294,7 @@ func TestManagementAgentManagementAgentResource_basic(t *testing.T) {
291294 resource .TestCheckResourceAttrSet (singularDatasourceName , "availability_status" ),
292295 resource .TestCheckResourceAttrSet (singularDatasourceName , "compartment_id" ),
293296 resource .TestCheckResourceAttr (singularDatasourceName , "data_source_list.#" , "0" ),
294- resource .TestCheckResourceAttr (singularDatasourceName , "freeform_tags.%" , "0 " ),
297+ resource .TestCheckResourceAttr (singularDatasourceName , "freeform_tags.%" , "1 " ),
295298 resource .TestCheckResourceAttrSet (singularDatasourceName , "display_name" ),
296299 resource .TestCheckResourceAttrSet (singularDatasourceName , "host" ),
297300 resource .TestCheckResourceAttrSet (singularDatasourceName , "id" ),
0 commit comments