Skip to content

Test/add service unit tests#745

Merged
Mosas2000 merged 4 commits into
StellaBridge:mainfrom
Alaka-ibr:test/add-service-unit-tests
Jun 27, 2026
Merged

Test/add service unit tests#745
Mosas2000 merged 4 commits into
StellaBridge:mainfrom
Alaka-ibr:test/add-service-unit-tests

Conversation

@Alaka-ibr

Copy link
Copy Markdown

Completed Work

1. Closes #699: Escalation Service ✅

File: backend/tests/services/escalation.service.test.ts
Lines: 581
Test Coverage:
Incident creation with various severity levels
Incident acknowledgement and resolution
Escalation logic with threshold handling
Escalation rule management
Timeout-based escalation
Acknowledgement requirement handling
Engine start/stop functionality
History tracking
Edge cases and error handling

2. Closes #700: Digest Scheduler Service ✅

File: backend/tests/services/digestScheduler.service.test.ts
Lines: 746
Test Coverage:
Subscription creation and management
Daily and weekly digest generation
Quiet hours logic and timezone handling
Delivery scheduling and processing
Email notification integration
Retry mechanisms for failed deliveries
History retrieval and unread counts
Filter and preference handling

3. Closes #701: Dependency Graph Service ✅

File: backend/tests/services/dependencyGraph.service.test.ts
Lines: 412
Test Coverage:
Graph retrieval with all nodes and edges
Node type filtering (bridge, oracle, indexer, rpc, queue, database, notifier, api)
Status filtering (healthy, degraded, down, unknown)
Search functionality
Summary statistics calculation
Edge relationship validation
Multiple filter combinations
Case-insensitive and trimmed input handling

4. Closes #702: External Dependency Monitor Service ✅

File: backend/tests/services/externalDependencyMonitor.service.test.ts
Lines: 701
Test Coverage:
Dependency listing with history
Health check execution (HTTP and JSON-RPC)
Status determination logic
Maintenance mode handling
Alert threshold triggering
Consecutive failure tracking
Timeout handling
Different check types for various providers

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@Alaka-ibr Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Mosas2000 Mosas2000 merged commit 7c50ba8 into StellaBridge:main Jun 27, 2026
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants