@@ -249,6 +249,7 @@ func TestAccSumologicMonitorsLibraryMonitor_update(t *testing.T) {
249249 testType := "MonitorsLibraryMonitor"
250250 testContentType := "Monitor"
251251 testMonitorType := "Logs"
252+ testPlaybook := "This is a test playbook"
252253 testIsDisabled := false
253254 testQueries := []MonitorQuery {
254255 {
@@ -306,6 +307,7 @@ func TestAccSumologicMonitorsLibraryMonitor_update(t *testing.T) {
306307 testUpdatedType := "MonitorsLibraryMonitor"
307308 testUpdatedContentType := "Monitor"
308309 testUpdatedMonitorType := "Logs"
310+ testUpdatedPlaybook := "This is an updated test playbook"
309311 testUpdatedIsDisabled := true
310312 testUpdatedQueries := []MonitorQuery {
311313 {
@@ -377,6 +379,7 @@ func TestAccSumologicMonitorsLibraryMonitor_update(t *testing.T) {
377379 resource .TestCheckResourceAttr ("sumologic_monitor.test" , "triggers.0.trigger_type" , testTriggers [0 ].TriggerType ),
378380 resource .TestCheckResourceAttr ("sumologic_monitor.test" , "triggers.0.time_range" , testTriggers [0 ].TimeRange ),
379381 resource .TestCheckResourceAttr ("sumologic_monitor.test" , "notifications.0.notification.0.connection_type" , testNotifications [0 ].Notification .(EmailNotification ).ConnectionType ),
382+ resource .TestCheckResourceAttr ("sumologic_monitor.test" , "playbook" , testPlaybook ),
380383 ),
381384 },
382385 {
@@ -392,6 +395,7 @@ func TestAccSumologicMonitorsLibraryMonitor_update(t *testing.T) {
392395 resource .TestCheckResourceAttr ("sumologic_monitor.test" , "triggers.0.trigger_type" , testUpdatedTriggers [0 ].TriggerType ),
393396 resource .TestCheckResourceAttr ("sumologic_monitor.test" , "triggers.0.time_range" , testUpdatedTriggers [0 ].TimeRange ),
394397 resource .TestCheckResourceAttr ("sumologic_monitor.test" , "notifications.0.notification.0.connection_type" , testUpdatedNotifications [0 ].Notification .(EmailNotification ).ConnectionType ),
398+ resource .TestCheckResourceAttr ("sumologic_monitor.test" , "playbook" , testUpdatedPlaybook ),
395399 ),
396400 },
397401 },
@@ -582,6 +586,7 @@ resource "sumologic_monitor" "test" {
582586 }
583587 run_for_trigger_types = [%s]
584588 }
589+ playbook = "This is a test playbook"
585590}` , testName , monitorType , query , trigger , triggerTysStr )
586591}
587592
0 commit comments