feat: Add comprehensive API test suite#80
Open
royliz3090-jpg wants to merge 1 commit into
Open
Conversation
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 comprehensive API test suite for health_check, config_generator, and benchmark modules.
Closes #6
Changes
tests/test_api_suite.pywith:Test Coverage
Health Check Tests
test_check_tcp_port_open: Tests TCP port check when port is opentest_check_tcp_port_closed: Tests TCP port check when port is closedtest_check_http_service_ok: Tests HTTP service check when service is healthytest_check_http_service_error: Tests HTTP service check when service is unhealthytest_check_disk_usage_normal: Tests disk usage check when usage is normaltest_check_disk_usage_high: Tests disk usage check when usage is hightest_check_memory_usage_normal: Tests memory usage check when usage is normaltest_check_memory_usage_high: Tests memory usage check when usage is highConfig Generator Tests
test_merge_config_simple: Tests simple config mergingtest_merge_config_nested: Tests nested config mergingtest_merge_config_no_mutation: Tests that merge_config does not mutate original dictstest_mask_sensitive: Tests sensitive value maskingtest_generate_config_development: Tests config generation for development environmenttest_generate_config_production: Tests config generation for production environmenttest_generate_config_with_overrides: Tests config generation with custom overridesBenchmark Tests
test_benchmark_latency_parser: Tests latency benchmark argument parsingtest_benchmark_throughput_parser: Tests throughput benchmark argument parsingIntegration Tests
test_health_check_json_output: Tests health check with JSON output formattest_config_roundtrip: Tests config generation and masking roundtripAcceptance Criteria
Diagnostic Artifacts
Build diagnostic artifacts generated via
python3 build.py.Lightning wallet: fullphone56@walletofsatoshi.com