teoat commited on
Commit
d29a5a0
·
verified ·
1 Parent(s): 4ae946d

fix(backend): fix port and health check robustness

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +2 -0
  2. .pytest_cache/v/cache/lastfailed +8 -1
  3. .pytest_cache/v/cache/nodeids +30 -1
  4. .ruff_cache/0.14.10/10010265442953389429 +0 -0
  5. .ruff_cache/0.14.10/10020887991903048471 +0 -0
  6. .ruff_cache/0.14.10/10028326622875884492 +0 -0
  7. .ruff_cache/0.14.10/10057499840449717229 +0 -0
  8. .ruff_cache/0.14.10/10064764371388903063 +0 -0
  9. .ruff_cache/0.14.10/10074731465361702743 +0 -0
  10. .ruff_cache/0.14.10/10082569263543118044 +0 -0
  11. .ruff_cache/0.14.10/10111724438703198276 +0 -0
  12. .ruff_cache/0.14.10/10122885733445241924 +0 -0
  13. .ruff_cache/0.14.10/10150067655699502990 +0 -0
  14. .ruff_cache/0.14.10/1017568993204276972 +0 -0
  15. .ruff_cache/0.14.10/10196023926336770992 +0 -0
  16. .ruff_cache/0.14.10/10196855204219840116 +0 -0
  17. .ruff_cache/0.14.10/10227731662473451536 +0 -0
  18. .ruff_cache/0.14.10/10254739748575086352 +0 -0
  19. .ruff_cache/0.14.10/10274646248751112734 +0 -0
  20. .ruff_cache/0.14.10/10306099995818251383 +0 -0
  21. .ruff_cache/0.14.10/10307674438786543424 +0 -0
  22. .ruff_cache/0.14.10/10307770500739549209 +0 -0
  23. .ruff_cache/0.14.10/10322946694435604224 +0 -0
  24. .ruff_cache/0.14.10/10345241051984552838 +0 -0
  25. .ruff_cache/0.14.10/10375260817603286663 +0 -0
  26. .ruff_cache/0.14.10/10375907061762582694 +0 -0
  27. .ruff_cache/0.14.10/10440286644541656514 +0 -0
  28. .ruff_cache/0.14.10/10460352294561449781 +0 -0
  29. .ruff_cache/0.14.10/10471013190748875445 +0 -0
  30. .ruff_cache/0.14.10/10475868073548529557 +0 -0
  31. .ruff_cache/0.14.10/10478764912689816559 +0 -0
  32. .ruff_cache/0.14.10/10540622169256592759 +0 -0
  33. .ruff_cache/0.14.10/1056350053576580039 +0 -0
  34. .ruff_cache/0.14.10/10587981491616560764 +0 -0
  35. .ruff_cache/0.14.10/10604134173047346042 +0 -0
  36. .ruff_cache/0.14.10/10646251749613371708 +0 -0
  37. .ruff_cache/0.14.10/10707092163113197376 +0 -0
  38. .ruff_cache/0.14.10/10745224568334505189 +0 -0
  39. .ruff_cache/0.14.10/10775662762776214218 +0 -0
  40. .ruff_cache/0.14.10/10808889085150836557 +0 -0
  41. .ruff_cache/0.14.10/10871602616533972648 +0 -0
  42. .ruff_cache/0.14.10/10887917803152089510 +0 -0
  43. .ruff_cache/0.14.10/1089493995919699846 +0 -0
  44. .ruff_cache/0.14.10/10912543192184706318 +0 -0
  45. .ruff_cache/0.14.10/10919868486702090599 +0 -0
  46. .ruff_cache/0.14.10/11007543699438477893 +0 -0
  47. .ruff_cache/0.14.10/1104232159557453305 +0 -0
  48. .ruff_cache/0.14.10/11076827934482947613 +0 -0
  49. .ruff_cache/0.14.10/11132288459140319828 +0 -0
  50. .ruff_cache/0.14.10/11142424247050110267 +0 -0
.gitattributes CHANGED
@@ -1 +1,3 @@
1
  .coverage filter=lfs diff=lfs merge=lfs -text
 
 
 
1
  .coverage filter=lfs diff=lfs merge=lfs -text
2
+ data/fraud_detection.db filter=lfs diff=lfs merge=lfs -text
3
+ fraud_detection.db filter=lfs diff=lfs merge=lfs -text
.pytest_cache/v/cache/lastfailed CHANGED
@@ -1 +1,8 @@
1
- {}
 
 
 
 
 
 
 
 
1
+ {
2
+ "tests/unit/test_health.py::TestHealthRouter::test_health_endpoint": true,
3
+ "tests/unit/test_health.py::TestHealthRouter::test_health_response_format": true,
4
+ "tests/unit/test_health.py::TestHealthRouter::test_health_response_has_status": true,
5
+ "tests/unit/test_health.py::TestHealthRouter::test_ready_endpoint": true,
6
+ "tests/unit/test_auth.py::TestPasswordValidation::test_password_hash_not_plaintext": true,
7
+ "tests/unit/test_auth.py::TestPasswordValidation::test_password_minimum_length": true
8
+ }
.pytest_cache/v/cache/nodeids CHANGED
@@ -5,8 +5,14 @@
5
  "tests/unit/test_auth.py::TestAuthEndpoints::test_register_endpoint_exists",
6
  "tests/unit/test_auth.py::TestDatabaseHealth::test_critical_tables_exist",
7
  "tests/unit/test_auth.py::TestDatabaseHealth::test_database_connection",
 
 
 
 
8
  "tests/unit/test_auth.py::TestSecurityHeaders::test_csp_header_present",
9
  "tests/unit/test_auth.py::TestSecurityHeaders::test_security_headers_present",
 
 
10
  "tests/unit/test_auth_mocks.py::TestAuthMocks::test_auth_service_attributes",
11
  "tests/unit/test_auth_mocks.py::TestAuthMocks::test_authenticate_user_failure",
12
  "tests/unit/test_auth_mocks.py::TestAuthMocks::test_authenticate_user_success",
@@ -21,6 +27,17 @@
21
  "tests/unit/test_backup_mocks.py::test_create_backup_mock_fs",
22
  "tests/unit/test_backup_mocks.py::test_upload_to_s3_mock_boto",
23
  "tests/unit/test_case_repository_performance.py::TestCaseNoteNPlus1::test_get_notes_optimized",
 
 
 
 
 
 
 
 
 
 
 
24
  "tests/unit/test_database_mocks.py::test_connection_pooling_optimization",
25
  "tests/unit/test_database_mocks.py::test_database_optimizer_indexes",
26
  "tests/unit/test_database_mocks.py::test_query_monitoring",
@@ -30,5 +47,17 @@
30
  "tests/unit/test_fraud_detection.py::TestFraudDetection::test_fraud_rule_creation",
31
  "tests/unit/test_fraud_detection.py::TestFraudDetection::test_transaction_analysis",
32
  "tests/unit/test_fraud_detection.py::TestSecurityValidation::test_input_sanitization",
33
- "tests/unit/test_fraud_detection.py::TestSecurityValidation::test_password_strength"
 
 
 
 
 
 
 
 
 
 
 
 
34
  ]
 
5
  "tests/unit/test_auth.py::TestAuthEndpoints::test_register_endpoint_exists",
6
  "tests/unit/test_auth.py::TestDatabaseHealth::test_critical_tables_exist",
7
  "tests/unit/test_auth.py::TestDatabaseHealth::test_database_connection",
8
+ "tests/unit/test_auth.py::TestPasswordValidation::test_critical_tables_exist",
9
+ "tests/unit/test_auth.py::TestPasswordValidation::test_database_connection",
10
+ "tests/unit/test_auth.py::TestPasswordValidation::test_password_hash_not_plaintext",
11
+ "tests/unit/test_auth.py::TestPasswordValidation::test_password_minimum_length",
12
  "tests/unit/test_auth.py::TestSecurityHeaders::test_csp_header_present",
13
  "tests/unit/test_auth.py::TestSecurityHeaders::test_security_headers_present",
14
+ "tests/unit/test_auth.py::TestTokenEndpoints::test_logout_endpoint_exists",
15
+ "tests/unit/test_auth.py::TestTokenEndpoints::test_refresh_token_endpoint_exists",
16
  "tests/unit/test_auth_mocks.py::TestAuthMocks::test_auth_service_attributes",
17
  "tests/unit/test_auth_mocks.py::TestAuthMocks::test_authenticate_user_failure",
18
  "tests/unit/test_auth_mocks.py::TestAuthMocks::test_authenticate_user_success",
 
27
  "tests/unit/test_backup_mocks.py::test_create_backup_mock_fs",
28
  "tests/unit/test_backup_mocks.py::test_upload_to_s3_mock_boto",
29
  "tests/unit/test_case_repository_performance.py::TestCaseNoteNPlus1::test_get_notes_optimized",
30
+ "tests/unit/test_config.py::TestConfigurationConcepts::test_configuration_constants",
31
+ "tests/unit/test_config.py::TestConfigurationConcepts::test_cors_origin_detection",
32
+ "tests/unit/test_config.py::TestConfigurationConcepts::test_environment_variables",
33
+ "tests/unit/test_config.py::TestMiddlewareConfiguration::test_middleware_routers_defined",
34
+ "tests/unit/test_config.py::TestRouterSetup::test_core_routers_defined",
35
+ "tests/unit/test_config.py::TestRouterSetup::test_router_includes_prefix",
36
+ "tests/unit/test_database.py::TestDatabaseConcepts::test_connection_pool_concepts",
37
+ "tests/unit/test_database.py::TestDatabaseConcepts::test_database_url_parsing",
38
+ "tests/unit/test_database.py::TestDatabaseConcepts::test_session_factory_concepts",
39
+ "tests/unit/test_database.py::TestSQLAlchemyTypes::test_column_types",
40
+ "tests/unit/test_database.py::TestSQLAlchemyTypes::test_orm_relationships",
41
  "tests/unit/test_database_mocks.py::test_connection_pooling_optimization",
42
  "tests/unit/test_database_mocks.py::test_database_optimizer_indexes",
43
  "tests/unit/test_database_mocks.py::test_query_monitoring",
 
47
  "tests/unit/test_fraud_detection.py::TestFraudDetection::test_fraud_rule_creation",
48
  "tests/unit/test_fraud_detection.py::TestFraudDetection::test_transaction_analysis",
49
  "tests/unit/test_fraud_detection.py::TestSecurityValidation::test_input_sanitization",
50
+ "tests/unit/test_fraud_detection.py::TestSecurityValidation::test_password_strength",
51
+ "tests/unit/test_health.py::TestHealthConcepts::test_health_import",
52
+ "tests/unit/test_health.py::TestHealthConcepts::test_health_response_structure",
53
+ "tests/unit/test_health.py::TestHealthConcepts::test_readiness_concepts",
54
+ "tests/unit/test_health.py::TestHealthRouter::test_health_endpoint",
55
+ "tests/unit/test_health.py::TestHealthRouter::test_health_response_format",
56
+ "tests/unit/test_health.py::TestHealthRouter::test_health_response_has_status",
57
+ "tests/unit/test_health.py::TestHealthRouter::test_ready_endpoint",
58
+ "tests/unit/test_health.py::TestLivenessProbes::test_liveness_response",
59
+ "tests/unit/test_security.py::TestInputValidation::test_email_format_validation",
60
+ "tests/unit/test_security.py::TestInputValidation::test_password_minimum_length",
61
+ "tests/unit/test_security.py::TestPasswordHashing::test_password_hash_generates_string",
62
+ "tests/unit/test_security.py::TestPasswordHashing::test_password_verification"
63
  ]
.ruff_cache/0.14.10/10010265442953389429 ADDED
Binary file (113 Bytes). View file
 
.ruff_cache/0.14.10/10020887991903048471 ADDED
Binary file (106 Bytes). View file
 
.ruff_cache/0.14.10/10028326622875884492 ADDED
Binary file (149 Bytes). View file
 
.ruff_cache/0.14.10/10057499840449717229 ADDED
Binary file (86 Bytes). View file
 
.ruff_cache/0.14.10/10064764371388903063 ADDED
Binary file (106 Bytes). View file
 
.ruff_cache/0.14.10/10074731465361702743 ADDED
Binary file (77 Bytes). View file
 
.ruff_cache/0.14.10/10082569263543118044 ADDED
Binary file (244 Bytes). View file
 
.ruff_cache/0.14.10/10111724438703198276 ADDED
Binary file (134 Bytes). View file
 
.ruff_cache/0.14.10/10122885733445241924 ADDED
Binary file (146 Bytes). View file
 
.ruff_cache/0.14.10/10150067655699502990 ADDED
Binary file (134 Bytes). View file
 
.ruff_cache/0.14.10/1017568993204276972 ADDED
Binary file (89 Bytes). View file
 
.ruff_cache/0.14.10/10196023926336770992 ADDED
Binary file (180 Bytes). View file
 
.ruff_cache/0.14.10/10196855204219840116 ADDED
Binary file (244 Bytes). View file
 
.ruff_cache/0.14.10/10227731662473451536 ADDED
Binary file (198 Bytes). View file
 
.ruff_cache/0.14.10/10254739748575086352 ADDED
Binary file (106 Bytes). View file
 
.ruff_cache/0.14.10/10274646248751112734 ADDED
Binary file (114 Bytes). View file
 
.ruff_cache/0.14.10/10306099995818251383 ADDED
Binary file (110 Bytes). View file
 
.ruff_cache/0.14.10/10307674438786543424 ADDED
Binary file (118 Bytes). View file
 
.ruff_cache/0.14.10/10307770500739549209 ADDED
Binary file (223 Bytes). View file
 
.ruff_cache/0.14.10/10322946694435604224 ADDED
Binary file (113 Bytes). View file
 
.ruff_cache/0.14.10/10345241051984552838 ADDED
Binary file (184 Bytes). View file
 
.ruff_cache/0.14.10/10375260817603286663 ADDED
Binary file (13.9 kB). View file
 
.ruff_cache/0.14.10/10375907061762582694 ADDED
Binary file (158 Bytes). View file
 
.ruff_cache/0.14.10/10440286644541656514 ADDED
Binary file (149 Bytes). View file
 
.ruff_cache/0.14.10/10460352294561449781 ADDED
Binary file (117 Bytes). View file
 
.ruff_cache/0.14.10/10471013190748875445 ADDED
Binary file (244 Bytes). View file
 
.ruff_cache/0.14.10/10475868073548529557 ADDED
Binary file (408 Bytes). View file
 
.ruff_cache/0.14.10/10478764912689816559 ADDED
Binary file (179 Bytes). View file
 
.ruff_cache/0.14.10/10540622169256592759 ADDED
Binary file (182 Bytes). View file
 
.ruff_cache/0.14.10/1056350053576580039 ADDED
Binary file (110 Bytes). View file
 
.ruff_cache/0.14.10/10587981491616560764 ADDED
Binary file (120 Bytes). View file
 
.ruff_cache/0.14.10/10604134173047346042 ADDED
Binary file (86 Bytes). View file
 
.ruff_cache/0.14.10/10646251749613371708 ADDED
Binary file (113 Bytes). View file
 
.ruff_cache/0.14.10/10707092163113197376 ADDED
Binary file (111 Bytes). View file
 
.ruff_cache/0.14.10/10745224568334505189 ADDED
Binary file (107 Bytes). View file
 
.ruff_cache/0.14.10/10775662762776214218 ADDED
Binary file (311 Bytes). View file
 
.ruff_cache/0.14.10/10808889085150836557 ADDED
Binary file (91 Bytes). View file
 
.ruff_cache/0.14.10/10871602616533972648 ADDED
Binary file (149 Bytes). View file
 
.ruff_cache/0.14.10/10887917803152089510 ADDED
Binary file (90 Bytes). View file
 
.ruff_cache/0.14.10/1089493995919699846 ADDED
Binary file (152 Bytes). View file
 
.ruff_cache/0.14.10/10912543192184706318 ADDED
Binary file (146 Bytes). View file
 
.ruff_cache/0.14.10/10919868486702090599 ADDED
Binary file (142 Bytes). View file
 
.ruff_cache/0.14.10/11007543699438477893 ADDED
Binary file (184 Bytes). View file
 
.ruff_cache/0.14.10/1104232159557453305 ADDED
Binary file (285 Bytes). View file
 
.ruff_cache/0.14.10/11076827934482947613 ADDED
Binary file (146 Bytes). View file
 
.ruff_cache/0.14.10/11132288459140319828 ADDED
Binary file (77 Bytes). View file
 
.ruff_cache/0.14.10/11142424247050110267 ADDED
Binary file (152 Bytes). View file