@@ -116,7 +116,7 @@ func TestAnalyticsAnalyticsInstanceResource_basic(t *testing.T) {
116116 {
117117 Config : config + compartmentIdVariableStr + idcsAccessTokenVariableStr + AnalyticsInstanceResourceDependencies +
118118 generateResourceFromRepresentationMap ("oci_analytics_analytics_instance" , "test_analytics_instance" , Required , Create , getUpdatedRepresentationCopy ("name" , Representation {repType : Required , create : analyticsinstanceName }, analyticsInstanceRepresentation )),
119- Check : resource . ComposeAggregateTestCheckFunc (
119+ Check : ComposeAggregateTestCheckFuncWrapper (
120120 resource .TestCheckResourceAttr (resourceName , "capacity.#" , "1" ),
121121 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_type" , "OLPU_COUNT" ),
122122 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_value" , "2" ),
@@ -141,7 +141,7 @@ func TestAnalyticsAnalyticsInstanceResource_basic(t *testing.T) {
141141 {
142142 Config : config + compartmentIdVariableStr + idcsAccessTokenVariableStr + AnalyticsInstanceResourceDependencies +
143143 generateResourceFromRepresentationMap ("oci_analytics_analytics_instance" , "test_analytics_instance" , Optional , Create , analyticsInstanceRepresentation ),
144- Check : resource . ComposeAggregateTestCheckFunc (
144+ Check : ComposeAggregateTestCheckFuncWrapper (
145145 resource .TestCheckResourceAttr (resourceName , "capacity.#" , "1" ),
146146 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_type" , "OLPU_COUNT" ),
147147 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_value" , "2" ),
@@ -181,7 +181,7 @@ func TestAnalyticsAnalyticsInstanceResource_basic(t *testing.T) {
181181 representationCopyWithNewProperties (analyticsInstanceRepresentation , map [string ]interface {}{
182182 "compartment_id" : Representation {repType : Required , create : `${var.compartment_id_for_update}` },
183183 })),
184- Check : resource . ComposeAggregateTestCheckFunc (
184+ Check : ComposeAggregateTestCheckFuncWrapper (
185185 resource .TestCheckResourceAttr (resourceName , "capacity.#" , "1" ),
186186 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_type" , "OLPU_COUNT" ),
187187 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_value" , "2" ),
@@ -216,7 +216,7 @@ func TestAnalyticsAnalyticsInstanceResource_basic(t *testing.T) {
216216 {
217217 Config : config + compartmentIdVariableStr + idcsAccessTokenVariableStr + AnalyticsInstanceResourceDependencies +
218218 generateResourceFromRepresentationMap ("oci_analytics_analytics_instance" , "test_analytics_instance" , Optional , Update , analyticsInstanceRepresentation ),
219- Check : resource . ComposeAggregateTestCheckFunc (
219+ Check : ComposeAggregateTestCheckFuncWrapper (
220220 resource .TestCheckResourceAttr (resourceName , "capacity.#" , "1" ),
221221 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_type" , "OLPU_COUNT" ),
222222 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_value" , "2" ),
@@ -249,7 +249,7 @@ func TestAnalyticsAnalyticsInstanceResource_basic(t *testing.T) {
249249 representationCopyWithNewProperties (representationCopyWithRemovedProperties (analyticsInstanceRepresentation , []string {"capacity" }), map [string ]interface {}{
250250 "capacity" : RepresentationGroup {Required , analyticsInstanceCapacityUpdateRepresentation },
251251 })),
252- Check : resource . ComposeAggregateTestCheckFunc (
252+ Check : ComposeAggregateTestCheckFuncWrapper (
253253 resource .TestCheckResourceAttr (resourceName , "capacity.#" , "1" ),
254254 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_type" , "OLPU_COUNT" ),
255255 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_value" , "4" ),
@@ -279,7 +279,7 @@ func TestAnalyticsAnalyticsInstanceResource_basic(t *testing.T) {
279279 {
280280 Config : config + compartmentIdVariableStr + idcsAccessTokenVariableStr + AnalyticsInstanceResourceDependencies +
281281 generateResourceFromRepresentationMap ("oci_analytics_analytics_instance" , "test_analytics_instance" , Optional , Update , analyticsInstanceRepresentation ),
282- Check : resource . ComposeAggregateTestCheckFunc (
282+ Check : ComposeAggregateTestCheckFuncWrapper (
283283 resource .TestCheckResourceAttr (resourceName , "capacity.#" , "1" ),
284284 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_type" , "OLPU_COUNT" ),
285285 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_value" , "2" ),
@@ -315,7 +315,7 @@ func TestAnalyticsAnalyticsInstanceResource_basic(t *testing.T) {
315315 generateResourceFromRepresentationMap ("oci_analytics_analytics_instance" , "test_analytics_instance" , Optional , Update , representationCopyWithNewProperties (analyticsInstanceRepresentation , map [string ]interface {}{
316316 "state" : Representation {repType : Required , create : `INACTIVE` },
317317 })),
318- Check : resource . ComposeAggregateTestCheckFunc (
318+ Check : ComposeAggregateTestCheckFuncWrapper (
319319 resource .TestCheckResourceAttr (resourceName , "capacity.#" , "1" ),
320320 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_type" , "OLPU_COUNT" ),
321321 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_value" , "2" ),
@@ -347,7 +347,7 @@ func TestAnalyticsAnalyticsInstanceResource_basic(t *testing.T) {
347347 generateResourceFromRepresentationMap ("oci_analytics_analytics_instance" , "test_analytics_instance" , Optional , Update , representationCopyWithNewProperties (analyticsInstanceRepresentation , map [string ]interface {}{
348348 "state" : Representation {repType : Required , create : `ACTIVE` },
349349 })),
350- Check : resource . ComposeAggregateTestCheckFunc (
350+ Check : ComposeAggregateTestCheckFuncWrapper (
351351 resource .TestCheckResourceAttr (resourceName , "capacity.#" , "1" ),
352352 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_type" , "OLPU_COUNT" ),
353353 resource .TestCheckResourceAttr (resourceName , "capacity.0.capacity_value" , "2" ),
@@ -379,7 +379,7 @@ func TestAnalyticsAnalyticsInstanceResource_basic(t *testing.T) {
379379 generateDataSourceFromRepresentationMap ("oci_analytics_analytics_instances" , "test_analytics_instances" , Optional , Update , analyticsInstanceDataSourceRepresentation ) +
380380 compartmentIdVariableStr + idcsAccessTokenVariableStr + AnalyticsInstanceResourceDependencies +
381381 generateResourceFromRepresentationMap ("oci_analytics_analytics_instance" , "test_analytics_instance" , Optional , Update , analyticsInstanceRepresentation ),
382- Check : resource . ComposeAggregateTestCheckFunc (
382+ Check : ComposeAggregateTestCheckFuncWrapper (
383383 resource .TestCheckResourceAttr (datasourceName , "capacity_type" , "OLPU_COUNT" ),
384384 resource .TestCheckResourceAttr (datasourceName , "compartment_id" , compartmentId ),
385385 resource .TestCheckResourceAttr (datasourceName , "feature_set" , "ENTERPRISE_ANALYTICS" ),
@@ -412,7 +412,7 @@ func TestAnalyticsAnalyticsInstanceResource_basic(t *testing.T) {
412412 Config : config +
413413 generateDataSourceFromRepresentationMap ("oci_analytics_analytics_instance" , "test_analytics_instance" , Required , Create , analyticsInstanceSingularDataSourceRepresentation ) +
414414 compartmentIdVariableStr + idcsAccessTokenVariableStr + AnalyticsInstanceResourceConfig ,
415- Check : resource . ComposeAggregateTestCheckFunc (
415+ Check : ComposeAggregateTestCheckFuncWrapper (
416416 resource .TestCheckResourceAttrSet (singularDatasourceName , "analytics_instance_id" ),
417417
418418 resource .TestCheckResourceAttr (singularDatasourceName , "capacity.#" , "1" ),
0 commit comments