Skip to content

test: cover maintenance window monitor edits#3741

Open
sanmaxdev wants to merge 1 commit into
bluewave-labs:developfrom
sanmaxdev:fix/maintenance-window-monitor-edits
Open

test: cover maintenance window monitor edits#3741
sanmaxdev wants to merge 1 commit into
bluewave-labs:developfrom
sanmaxdev:fix/maintenance-window-monitor-edits

Conversation

@sanmaxdev

Copy link
Copy Markdown

Summary

  • add a real-Mongo regression test for editing a maintenance window's monitor membership
  • verify removed monitors no longer match the window
  • verify kept and newly added monitors both resolve back to the edited window

Context

Refs #3551. The service layer already maps the edit payload's monitors field to monitorIds; this adds repository-level coverage so the Mongo persistence path is locked down too.

Test Plan

  • TMPDIR=/home/ubuntu/tmp npm test -- --runTestsByPath test/integration/maintenanceWindowRepository.test.ts test/unit/services/maintenanceWindowService.test.ts --runInBand
  • npx prettier --check test/integration/maintenanceWindowRepository.test.ts
  • npm run build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant