@@ -242,6 +242,11 @@ func TestAccBedrockAgentCoreOnlineEvaluationConfig_update(t *testing.T) {
242242 plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionUpdate ),
243243 },
244244 },
245+ ConfigStateChecks : []statecheck.StateCheck {
246+ statecheck .ExpectKnownValue (resourceName , tfjsonpath .New (names .AttrDescription ), knownvalue .StringExact ("Updated description" )),
247+ statecheck .ExpectKnownValue (resourceName , tfjsonpath .New ("rule" ).AtSliceIndex (0 ).AtMapKey ("sampling_config" ).AtSliceIndex (0 ).AtMapKey ("sampling_percentage" ), knownvalue .Float64Exact (50.0 )),
248+ statecheck .ExpectKnownValue (resourceName , tfjsonpath .New ("rule" ).AtSliceIndex (0 ).AtMapKey ("session_config" ).AtSliceIndex (0 ).AtMapKey ("session_timeout_minutes" ), knownvalue .Int64Exact (30 )),
249+ },
245250 },
246251 },
247252 })
@@ -325,6 +330,12 @@ func TestAccBedrockAgentCoreOnlineEvaluationConfig_filters(t *testing.T) {
325330 Check : resource .ComposeAggregateTestCheckFunc (
326331 testAccCheckOnlineEvaluationConfigExists (ctx , t , resourceName , & v ),
327332 ),
333+ ConfigStateChecks : []statecheck.StateCheck {
334+ statecheck .ExpectKnownValue (resourceName , tfjsonpath .New ("rule" ).AtSliceIndex (0 ).AtMapKey ("filter" ).AtSliceIndex (0 ).AtMapKey ("key" ), knownvalue .StringExact ("environment" )),
335+ statecheck .ExpectKnownValue (resourceName , tfjsonpath .New ("rule" ).AtSliceIndex (0 ).AtMapKey ("filter" ).AtSliceIndex (0 ).AtMapKey ("operator" ), knownvalue .StringExact ("Equals" )),
336+ statecheck .ExpectKnownValue (resourceName , tfjsonpath .New ("rule" ).AtSliceIndex (0 ).AtMapKey ("sampling_config" ).AtSliceIndex (0 ).AtMapKey ("sampling_percentage" ), knownvalue .Float64Exact (25.0 )),
337+ statecheck .ExpectKnownValue (resourceName , tfjsonpath .New ("rule" ).AtSliceIndex (0 ).AtMapKey ("session_config" ).AtSliceIndex (0 ).AtMapKey ("session_timeout_minutes" ), knownvalue .Int64Exact (20 )),
338+ },
328339 },
329340 },
330341 })
0 commit comments