You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
want: SuccessMarker() +" Snapshot loaded from pod:empty-pod",
237
237
wantOK: true,
238
238
},
239
+
240
+
// snapshot diff events
241
+
{
242
+
name: "snapshot diff with additions and modifications",
243
+
event: SnapshotDiffEvent{
244
+
PodName: "my-baseline",
245
+
Strategy: "account-region-merge",
246
+
Services: map[string]SnapshotDiffServiceResult{
247
+
"s3": {Additions: 5},
248
+
"sqs": {Additions: 3, Modifications: 1},
249
+
},
250
+
},
251
+
want: "Dry-run results for pod:my-baseline\n\n s3 + 5 additions\n sqs + 3 additions ~ 1 modification ⚠\n\n> Note: 1 modification will be resolved using the account-region-merge strategy.\n\nNo state was modified.",
252
+
wantOK: true,
253
+
},
254
+
{
255
+
name: "snapshot diff additions only",
256
+
event: SnapshotDiffEvent{
257
+
PodName: "my-baseline",
258
+
Strategy: "account-region-merge",
259
+
Services: map[string]SnapshotDiffServiceResult{
260
+
"dynamodb": {Additions: 2},
261
+
},
262
+
},
263
+
want: "Dry-run results for pod:my-baseline\n\n dynamodb + 2 additions\n\nNo state was modified.",
264
+
wantOK: true,
265
+
},
266
+
{
267
+
name: "snapshot diff no changes",
268
+
event: SnapshotDiffEvent{
269
+
PodName: "empty-pod",
270
+
Strategy: "account-region-merge",
271
+
Services: map[string]SnapshotDiffServiceResult{},
272
+
},
273
+
want: "Dry-run results for pod:empty-pod\n\n No changes — pod state matches running state.\n\nNo state was modified.",
0 commit comments