@@ -156,7 +156,7 @@ class AuditClientListenerTest {
156
156
applicationName = " deep-fryer" ,
157
157
approverLDAP = " molly" ,
158
158
automatedChange = true ,
159
- description = " Backfill started by molly [dryRun=true][service=deep-fryer][backfill=ChickenSandwich][id=${response.backfill_run_id} ]" ,
159
+ description = " Backfill paused due to error [dryRun=true][service=deep-fryer][backfill=ChickenSandwich][id=${response.backfill_run_id} ]" ,
160
160
richDescription = null ,
161
161
environment = " testing" ,
162
162
detailURL = " /backfills/${response.backfill_run_id} " ,
@@ -168,6 +168,23 @@ class AuditClientListenerTest {
168
168
169
169
auditClientListener.runCompleted(Id (response.backfill_run_id))
170
170
assertEquals(4 , fakeAuditClient.sentEvents.size)
171
+ assertEquals(
172
+ FakeAuditClient .FakeAuditEvent (
173
+ eventSource = " backfila" ,
174
+ eventTarget = " ChickenSandwich" ,
175
+ timestampSent = 2147483647 ,
176
+ applicationName = " deep-fryer" ,
177
+ approverLDAP = " molly" ,
178
+ automatedChange = true ,
179
+ description = " Backfill completed [dryRun=true][service=deep-fryer][backfill=ChickenSandwich][id=${response.backfill_run_id} ]" ,
180
+ richDescription = null ,
181
+ environment = " testing" ,
182
+ detailURL = " /backfills/${response.backfill_run_id} " ,
183
+ region = " us-west-2" ,
184
+ requestorLDAP = " molly" ,
185
+ ),
186
+ fakeAuditClient.sentEvents.last(),
187
+ )
171
188
}
172
189
}
173
190
}
0 commit comments