@@ -43,7 +43,8 @@ class LogicMonitor::V3Test < ActiveSupport::TestCase
43
43
servicedetail : nil ,
44
44
serviceurl : "https://pagertree-test-server.net/" ,
45
45
servicegroup : "Functional Testing" ,
46
- clearvalue : "1"
46
+ clearvalue : "1" ,
47
+ internalid : "1234567890"
47
48
} . with_indifferent_access
48
49
49
50
@resolve_request = @create_request . deep_dup
@@ -81,7 +82,7 @@ class LogicMonitor::V3Test < ActiveSupport::TestCase
81
82
82
83
test "adapter_thirdparty_id" do
83
84
@integration . adapter_incoming_request_params = @create_request
84
- assert_equal @create_request . dig ( "alertid " ) , @integration . adapter_thirdparty_id
85
+ assert_equal @create_request . dig ( "internalid " ) , @integration . adapter_thirdparty_id
85
86
end
86
87
87
88
test "adapter_process_create" do
@@ -91,7 +92,7 @@ class LogicMonitor::V3Test < ActiveSupport::TestCase
91
92
title : @create_request . dig ( "eventmsg" ) ,
92
93
description : @create_request . dig ( "eventlogmsg" ) ,
93
94
urgency : "medium" ,
94
- thirdparty_id : @create_request . dig ( "alertid " ) ,
95
+ thirdparty_id : @create_request . dig ( "internalid " ) ,
95
96
dedup_keys : [ ] ,
96
97
additional_data : [
97
98
AdditionalDatum . new ( format : "text" , label : "Host" , value : @create_request . dig ( "host" ) ) ,
@@ -112,7 +113,7 @@ class LogicMonitor::V3Test < ActiveSupport::TestCase
112
113
outgoing_event = OutgoingEvent . new
113
114
outgoing_event . event_name = :alert_acknowledged
114
115
outgoing_event . alert = OpenStruct . new (
115
- thirdparty_id : "LMS22 " ,
116
+ thirdparty_id : "1234567890 " ,
116
117
foo : "bar" ,
117
118
source : @integration
118
119
)
0 commit comments