@@ -31,14 +31,20 @@ var (
3131 // Dependency definition
3232 SchServiceConnectorResourceDependencies = acctest .GenerateResourceFromRepresentationMap ("oci_logging_log" , "test_log" , acctest .Required , acctest .Create , LoggingLogRepresentation ) +
3333 acctest .GenerateResourceFromRepresentationMap ("oci_logging_log" , "test_update_log" , acctest .Required , acctest .Update , acctest .GetUpdatedRepresentationCopy ("configuration.source.category" , acctest.Representation {RepType : acctest .Required , Create : `read` }, LoggingLogRepresentation )) +
34- LoggingLogResourceDependencies +
34+ SchLoggingLogResourceDependencies +
3535 acctest .GenerateResourceFromRepresentationMap ("oci_core_subnet" , "test_subnet" , acctest .Required , acctest .Create , CoreSubnetRepresentation ) +
3636 acctest .GenerateResourceFromRepresentationMap ("oci_core_vcn" , "test_vcn" , acctest .Required , acctest .Create , CoreVcnRepresentation ) +
3737 acctest .GenerateResourceFromRepresentationMap ("oci_functions_application" , "test_application" , acctest .Required , acctest .Create , FunctionsApplicationRepresentation ) +
38- acctest .GenerateResourceFromRepresentationMap ("oci_functions_function" , "test_function" , acctest .Required , acctest .Create , FunctionsFunctionRepresentation ) +
38+ acctest .GenerateResourceFromRepresentationMap ("oci_functions_function" , "test_function" , acctest .Required , acctest .Create , SchFunctionsFunctionRepresentation ) +
3939 acctest .GenerateResourceFromRepresentationMap ("oci_streaming_stream" , "test_stream" , acctest .Required , acctest .Create , StreamingStreamRepresentation ) +
4040 acctest .GenerateResourceFromRepresentationMap ("oci_ons_notification_topic" , "test_notification_topic" , acctest .Required , acctest .Create , OnsNotificationTopicRepresentation )
4141
42+ SchLoggingLogResourceDependencies = DefinedTagsDependencies +
43+ acctest .GenerateResourceFromRepresentationMap ("oci_logging_log_group" , "test_log_group" , acctest .Required , acctest .Create , LoggingLogGroupRepresentation ) +
44+ acctest .GenerateResourceFromRepresentationMap ("oci_objectstorage_bucket" , "test_bucket" , acctest .Required , acctest .Create , ObjectStorageBucketRepresentation ) +
45+ acctest .GenerateDataSourceFromRepresentationMap ("oci_objectstorage_namespace" , "test_namespace" , acctest .Optional , acctest .Create , ObjectStorageObjectStorageNamespaceSingularDataSourceRepresentation ) +
46+ acctest .GenerateResourceFromRepresentationMap ("oci_logging_log_group" , "test_update_log_group" , acctest .Required , acctest .Create , logGroupUpdateRepresentation )
47+
4248 // source definitions
4349 SchServiceConnectorSourceLogSourcesRepresentation = map [string ]interface {}{
4450 "compartment_id" : acctest.Representation {RepType : acctest .Required , Create : `${var.compartment_id}` },
7076 "function_id" : acctest.Representation {RepType : acctest .Required , Create : `${oci_functions_function.test_function.id}` },
7177 }
7278
79+ // target definitions with batching details
80+ functionTargetBatchRepresentation = map [string ]interface {}{
81+ "kind" : acctest.Representation {RepType : acctest .Required , Create : `functions` },
82+ "function_id" : acctest.Representation {RepType : acctest .Required , Create : `${oci_functions_function.test_function.id}` },
83+ "batch_size_in_kbs" : acctest.Representation {RepType : acctest .Optional , Create : `5000` },
84+ "batch_size_in_num" : acctest.Representation {RepType : acctest .Optional , Create : `10` },
85+ "batch_time_in_sec" : acctest.Representation {RepType : acctest .Optional , Create : `5` },
86+ }
87+
7388 objectStorageTargetRepresentation = map [string ]interface {}{
7489 "kind" : acctest.Representation {RepType : acctest .Required , Create : `objectStorage` },
7590 "bucket" : acctest.Representation {RepType : acctest .Required , Create : `${oci_objectstorage_bucket.test_bucket.name}` },
@@ -232,6 +247,17 @@ var (
232247 "stream_id" : acctest.Representation {RepType : acctest .Optional , Create : `${oci_streaming_stream.test_stream.id}` },
233248 }
234249
250+ SchFunctionsFunctionRepresentation = map [string ]interface {}{
251+ "application_id" : acctest.Representation {RepType : acctest .Required , Create : `${oci_functions_application.test_application.id}` },
252+ "display_name" : acctest.Representation {RepType : acctest .Required , Create : `ExampleFunction` },
253+ "memory_in_mbs" : acctest.Representation {RepType : acctest .Required , Create : `128` , Update : `256` },
254+ "config" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"MY_FUNCTION_CONFIG" : "ConfVal" }},
255+ "defined_tags" : acctest.Representation {RepType : acctest .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")}` },
256+ "freeform_tags" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"Department" : "Finance" }, Update : map [string ]string {"Department" : "Accounting" }},
257+ "image" : acctest.Representation {RepType : acctest .Required , Create : `${var.image}` , Update : `${var.image_for_update}` },
258+ "image_digest" : acctest.Representation {RepType : acctest .Optional , Create : `${var.image_digest}` , Update : `${var.image_digest_for_update}` },
259+ }
260+
235261 serviceConnectorTargetStaticDimensionsRepresentation_0 = map [string ]interface {}{
236262 "dimension_value" : acctest.RepresentationGroup {RepType : acctest .Required , Group : serviceConnectorTargetDimensionsStaticDimensionValueRepresentation_0 },
237263 "name" : acctest.Representation {RepType : acctest .Required , Create : `static_dimension_0` , Update : `static_dimension_update_1` },
0 commit comments