feat: add unit tests for application services (Rust + Python)#372
Open
feat: add unit tests for application services (Rust + Python)#372
Conversation
…tel-trace-exporter Add 38 unit tests covering pure functions: - 502: error alert generation, error handler responses, JSON validation (13 tests) - 504: correlation ID parsing and extraction (25 tests) Refs: #153
Add 24 unit tests across receiver and sender services: - Receiver: Payload deserialization (7 tests), CustomUserDataExtractor (7 tests) - Sender: Payload serialization (5 tests), VecInjector (5 tests) Refs: #153
- 509-sse-connector: 19 tests for AnalyticsEventSimulator event generators - 510-onvif-connector: 22 tests for SOAP/XML builders, PTZ commands, imaging - 505-akri-rest-http-connector: 25 tests for Pydantic model validators - 506-ros2-connector: 15 tests for BaseMessageHandler MQTT topic/payload helpers
Member
|
@kgmwang1 - this is awesome! |
src/500-application/510-onvif-connector/services/onvif-camera-simulator/test_onvif_camera.py
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds 143 unit tests across 7 application services, covering pure functions and core logic with no external dependencies required.
Closes #153
Changes
Rust services (62 tests)
Python services (81 tests)
Not in scope
Testing
cargo testpasses for all 3 servicespytestpasses for all 4 services (81/81)