LMS API Testing Guide
Summary
Source-backed Draft reference for LMS API Testing Guide across the implemented Training Service and, where applicable, Gateway surface.
Audience
API consumers, engineering, QA, support, architecture, security, product, and implementation reviewers.
Reference Content
Existing evidence
A broad PowerShell smoke asset exercises Training health/data, course lifecycle, nested course content, materials, paths, enrollment lifecycle, attempts, certificates, sessions, reports, dashboard, import/export, audit/timeline, outbox intent, notification resolution, and selected tenant isolation. An ESS smoke asset covers Gateway degradation behavior. No dedicated Training unit-test project, API integration suite, contract suite, security suite, UI suite, or HTTP collection was found.
Safe recommended matrix
| Test layer | Existing | Recommended coverage |
|---|---|---|
| Smoke | Yes | Preserve lifecycle, file, reporting, evidence, and tenant checks |
| Unit/domain | Not found | Value records, parsing, lifecycle helpers, aggregate calculations |
| API integration | Not found | Every catalog route and confirmed status branch |
| Contract/OpenAPI | Not found | DTO/schema stability, files, Gateway envelopes |
| Gateway | ESS smoke only | Context forwarding, timeout/degradation, ownership |
| Document integration | Optional smoke path | Unavailable/missing/orphan compensation cases |
| Security | Not found | Authentication, authorization, subject ownership, diagnostic exposure |
| Import/export | Smoke coverage | Malformed rows, duplicates, limits, transactional failure |
| End-to-end | Broad smoke approximation | Non-production environment across Gateway, Training, Documents, notifications |
Tests should use synthetic data in isolated non-production services. Do not place personal records, assessment content, results, certificates, credentials, or environment configuration in fixtures or reports.
Source References
microservices/scripts/smoke-training.ps1microservices/scripts/smoke-ess.ps1microservices/src/training-service/training-service.csprojmicroservices/src/training-service/Api/TrainingEndpoints.cs
Related Articles
See Also
Keywords
- LMS API
- Training Service
- Source-backed contract
Revision Information
- Status: Draft
- Last reviewed: 2026-07-17
- Review cycle: Quarterly