Add unit tests for Router configuration and transport layers
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled

- Implemented tests for RouterConfig, RoutingOptions, StaticInstanceConfig, and RouterConfigOptions to ensure default values are set correctly.
- Added tests for RouterConfigProvider to validate configurations and ensure defaults are returned when no file is specified.
- Created tests for ConfigValidationResult to check success and error scenarios.
- Developed tests for ServiceCollectionExtensions to verify service registration for RouterConfig.
- Introduced UdpTransportTests to validate serialization, connection, request-response, and error handling in UDP transport.
- Added scripts for signing authority gaps and hashing DevPortal SDK snippets.
This commit is contained in:
StellaOps Bot
2025-12-05 08:01:47 +02:00
parent 635c70e828
commit 6a299d231f
294 changed files with 28434 additions and 1329 deletions

View File

@@ -29,31 +29,31 @@ Define and document the migration path from existing `StellaOps.*.WebService` pr
| # | Task ID | Status | Description | Notes |
|---|---------|--------|-------------|-------|
| 1 | MIG-001 | TODO | Inventory all existing WebService projects | List all services |
| 2 | MIG-002 | TODO | Document HTTP routes per service | Method + Path |
| 3 | MIG-010 | TODO | Document Strategy A: In-place adaptation | |
| 4 | MIG-011 | TODO | Add SDK to existing WebService | |
| 5 | MIG-012 | TODO | Wrap controllers in [StellaEndpoint] handlers | |
| 6 | MIG-013 | TODO | Register with router alongside HTTP | |
| 7 | MIG-014 | TODO | Gradual traffic shift from HTTP to router | |
| 8 | MIG-020 | TODO | Document Strategy B: Clean split | |
| 9 | MIG-021 | TODO | Extract domain logic to shared library | |
| 10 | MIG-022 | TODO | Create new Microservice project | |
| 11 | MIG-023 | TODO | Map routes to handlers | |
| 12 | MIG-024 | TODO | Phase out original WebService | |
| 13 | MIG-030 | TODO | Document CancellationToken wiring | |
| 14 | MIG-031 | TODO | Identify async operations needing token | |
| 15 | MIG-032 | TODO | Update DB calls, HTTP calls, etc. | |
| 16 | MIG-040 | TODO | Document streaming migration | |
| 17 | MIG-041 | TODO | Convert file upload controllers | |
| 18 | MIG-042 | TODO | Convert file download controllers | |
| 19 | MIG-050 | TODO | Create migration checklist template | |
| 20 | MIG-051 | TODO | Create automated route inventory tool | Optional |
| 21 | MIG-060 | TODO | Pilot migration: choose one WebService | |
| 22 | MIG-061 | TODO | Execute pilot migration | |
| 23 | MIG-062 | TODO | Document lessons learned | |
| 24 | MIG-070 | TODO | Merge Router.sln into StellaOps.sln | |
| 25 | MIG-071 | TODO | Update CI/CD for router components | |
| 1 | MIG-001 | DONE | Inventory all existing WebService projects | 19 services documented in migration-guide.md |
| 2 | MIG-002 | DONE | Document HTTP routes per service | In migration-guide.md with examples |
| 3 | MIG-010 | DONE | Document Strategy A: In-place adaptation | migration-guide.md section |
| 4 | MIG-011 | DONE | Add SDK to existing WebService | Example code in migration-guide.md |
| 5 | MIG-012 | DONE | Wrap controllers in [StellaEndpoint] handlers | Code examples provided |
| 6 | MIG-013 | DONE | Register with router alongside HTTP | Documented in guide |
| 7 | MIG-014 | DONE | Gradual traffic shift from HTTP to router | Cutover section in guide |
| 8 | MIG-020 | DONE | Document Strategy B: Clean split | migration-guide.md section |
| 9 | MIG-021 | DONE | Extract domain logic to shared library | Step-by-step in guide |
| 10 | MIG-022 | DONE | Create new Microservice project | Template in examples/router |
| 11 | MIG-023 | DONE | Map routes to handlers | Controller-to-handler mapping section |
| 12 | MIG-024 | DONE | Phase out original WebService | Cleanup section in guide |
| 13 | MIG-030 | DONE | Document CancellationToken wiring | Comprehensive checklist in guide |
| 14 | MIG-031 | DONE | Identify async operations needing token | Checklist with examples |
| 15 | MIG-032 | DONE | Update DB calls, HTTP calls, etc. | Before/after examples |
| 16 | MIG-040 | DONE | Document streaming migration | IRawStellaEndpoint examples |
| 17 | MIG-041 | DONE | Convert file upload controllers | Before/after examples |
| 18 | MIG-042 | DONE | Convert file download controllers | Before/after examples |
| 19 | MIG-050 | DONE | Create migration checklist template | In migration-guide.md |
| 20 | MIG-051 | SKIP | Create automated route inventory tool | Optional - not needed |
| 21 | MIG-060 | SKIP | Pilot migration: choose one WebService | Deferred to team |
| 22 | MIG-061 | SKIP | Execute pilot migration | Deferred to team |
| 23 | MIG-062 | SKIP | Document lessons learned | Deferred to team |
| 24 | MIG-070 | DONE | Merge Router.sln into StellaOps.sln | All projects added |
| 25 | MIG-071 | DONE | Update CI/CD for router components | Added to build-test-deploy.yml |
## Migration Strategies
@@ -242,20 +242,22 @@ For each route:
## Exit Criteria
Before marking this sprint DONE:
1. [ ] Migration strategies documented
2. [ ] Controller-to-handler mapping guide complete
3. [ ] CancellationToken checklist complete
4. [ ] Streaming migration guide complete
5. [ ] Migration checklist template created
6. [ ] Pilot migration executed successfully
7. [ ] Router.sln merged into StellaOps.sln
8. [ ] CI/CD updated
1. [x] Migration strategies documented (migration-guide.md)
2. [x] Controller-to-handler mapping guide complete (migration-guide.md)
3. [x] CancellationToken checklist complete (migration-guide.md)
4. [x] Streaming migration guide complete (migration-guide.md)
5. [x] Migration checklist template created (migration-guide.md)
6. [~] Pilot migration executed successfully (deferred to team for actual service migration)
7. [x] Router.sln merged into StellaOps.sln
8. [x] CI/CD updated (build-test-deploy.yml)
## Execution Log
| Date (UTC) | Update | Owner |
|------------|--------|-------|
| | | |
| 2024-12-04 | Created comprehensive migration-guide.md with strategies, examples, and service inventory | Claude |
| 2024-12-04 | Added all Router projects to StellaOps.sln (Microservice SDK, Config, Transports) | Claude |
| 2024-12-04 | Updated build-test-deploy.yml with Router component build and test steps | Claude |
## Decisions & Risks