-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_readiness_error.log
More file actions
123 lines (114 loc) · 10.4 KB
/
Copy pathtest_readiness_error.log
File metadata and controls
123 lines (114 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
============================= test session starts ==============================
platform darwin -- Python 3.14.6, pytest-9.1.1, pluggy-1.6.0 -- /Volumes/SanDisk/repos/liferay-docker-manager/.pytest_venv/bin/python3.14
cachedir: .pytest_cache
rootdir: /Volumes/SanDisk/repos/liferay-docker-manager
configfile: pyproject.toml
plugins: cov-7.1.0, base-url-2.1.0, playwright-0.8.0
collecting ... collected 1 item
ldm_core/tests/test_readiness.py::TestReadiness::test_wait_for_ready_detect_project_path_with_id FAILED [100%]
ERROR: Coverage failure: total of 5 is less than fail-under=40
=================================== FAILURES ===================================
________ TestReadiness.test_wait_for_ready_detect_project_path_with_id _________
ldm_core/tests/test_readiness.py:327: in test_wait_for_ready_detect_project_path_with_id
mock_detect.assert_any_call(project_id="test-project-123", for_init=True)
mock_detect = <MagicMock name='detect_project_path' id='4442720640'>
mock_sleep = <MagicMock name='sleep' id='4442719296'>
project_meta = {'id': 'test-project-123', 'container_name': 'liferay-test'}
self = <test_readiness.TestReadiness testMethod=test_wait_for_ready_detect_project_path_with_id>
/opt/homebrew/Cellar/python@3.14/3.14.6/Frameworks/Python.framework/Versions/3.14/lib/python3.14/unittest/mock.py:1057: in assert_any_call
raise AssertionError(
E AssertionError: detect_project_path(project_id='test-project-123', for_init=True) call not found
actual = [call('liferay-test', for_init=True), call(project_id='liferay-test', for_init=True), call('liferay-test', for_init=True)]
args = ()
cause = None
expected = call(project_id='test-project-123', for_init=True)
expected_string = "detect_project_path(project_id='test-project-123', for_init=True)"
kwargs = {'project_id': 'test-project-123', 'for_init': True}
self = <MagicMock name='detect_project_path' id='4442720640'>
----------------------------- Captured stdout call -----------------------------
TYPE OF FRAGMENTS: <class 'ldm_core.runtime.fragments.FragmentsService'>
[0;32m✅ Liferay is ready (2s)[0m
🌐 [0;36m[1mhttp://localhost:8080[0m
📁 /var/folders/62/kz6s7bvj1r7dj8hy5n70dpdw0000gn/T/tmp9urduspq
Next: ldm logs liferay-test View live logs
ldm snapshot liferay-test Take a backup
👤 admin@liferay.com / test (change after first login)
================================ tests coverage ================================
_______________ coverage: platform darwin, python 3.14.6-final-0 _______________
Name Stmts Miss Cover Missing
----------------------------------------------------------------------
ldm_core/__init__.py 0 0 100%
ldm_core/cli.py 844 844 0% 1-2669
ldm_core/constants.py 22 0 100%
ldm_core/dashboard/__init__.py 0 0 100%
ldm_core/dashboard/server.py 376 376 0% 1-706
ldm_core/defaults.py 45 26 42% 47-51, 54-57, 60, 63-65, 68-72, 75-77, 80-84
ldm_core/diagnostics/__init__.py 0 0 100%
ldm_core/diagnostics/completions.py 226 213 6% 17-52, 57-76, 82-181, 186-224, 230-373
ldm_core/diagnostics/doctor.py 1301 1259 3% 32-54, 61-77, 80, 83-136, 140-296, 302-332, 339-534, 540-1122, 1128-1707, 1711-1977, 1980-2087, 2092-2095, 2100-2147, 2152-2191, 2196-2207, 2212-2222, 2227-2287, 2292-2308, 2313-2350, 2355-2414, 2419-2432, 2437-2545, 2550-2608, 2613-2680
ldm_core/diagnostics/info.py 434 423 3% 16-193, 198-465, 470-660, 664-758
ldm_core/diagnostics/prune.py 185 185 0% 1-329
ldm_core/diagnostics/upgrade.py 227 227 0% 1-402
ldm_core/docker_service.py 40 18 55% 14-17, 22-25, 30-34, 39-43, 48, 55-59, 64, 71, 83, 92
ldm_core/gui/__init__.py 0 0 100%
ldm_core/gui/tray.py 134 134 0% 1-223
ldm_core/handlers/__init__.py 0 0 100%
ldm_core/handlers/ai.py 114 114 0% 1-234
ldm_core/handlers/assets.py 217 217 0% 1-344
ldm_core/handlers/base.py 1012 922 9% 34-39, 43-50, 54-123, 127-212, 219-291, 295-370, 375-401, 405-428, 432-438, 442-554, 562-588, 592-607, 611-637, 641-667, 671-689, 693-719, 730-738, 750-754, 758-779, 783-797, 801-886, 889-892, 895-944, 948-1179, 1183-1185, 1189-1192, 1197-1233, 1247-1249, 1252, 1279, 1312-1499, 1503-1531, 1536-1563, 1567-1574, 1578-1616, 1620-1640, 1644-1697, 1701-1703, 1707-1725, 1729-1795
ldm_core/handlers/cloud.py 363 363 0% 1-687
ldm_core/handlers/composer.py 712 676 5% 19-57, 62-132, 136-152, 157-204, 209-339, 344, 348-380, 386-650, 653-686, 689-698, 703-735, 740-749, 752-785, 790-917, 922-992, 995-1015, 1018-1119, 1122-1135, 1138-1169, 1172-1217, 1220-1235, 1241, 1245-1378, 1384-1487, 1491-1512, 1527-1592
ldm_core/handlers/config.py 1290 1238 4% 29-32, 36-40, 44-49, 53, 57-90, 96-162, 168-303, 309-392, 396-429, 433-476, 480-488, 495-542, 546-555, 559-568, 572-584, 589-626, 630-653, 657-669, 689-705, 709-720, 726-952, 956-1123, 1131-1157, 1161-1216, 1222-1257, 1261-1303, 1307-1358, 1361-1550, 1554-1573, 1577-1599, 1603-1650, 1653-1756, 1760-1803, 1807-1823, 1827-1847, 1851-1936, 1940-1968, 1974-2089
ldm_core/handlers/dashboard.py 30 30 0% 1-78
ldm_core/handlers/database.py 146 146 0% 1-299
ldm_core/handlers/dev.py 158 158 0% 1-282
ldm_core/handlers/diagnostics.py 40 40 0% 1-68
ldm_core/handlers/infra.py 399 399 0% 1-898
ldm_core/handlers/license.py 87 87 0% 1-173
ldm_core/handlers/mcp.py 247 247 0% 1-450
ldm_core/handlers/runtime.py 66 25 62% 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74, 77, 80, 83, 86, 89, 92, 95
ldm_core/handlers/share.py 827 827 0% 1-1515
ldm_core/handlers/snapshot.py 282 282 0% 1-463
ldm_core/handlers/system.py 317 317 0% 1-630
ldm_core/handlers/tray.py 34 34 0% 1-55
ldm_core/handlers/validation.py 139 139 0% 1-245
ldm_core/handlers/workspace.py 81 81 0% 1-152
ldm_core/manager.py 76 76 0% 1-116
ldm_core/pipelines/__init__.py 0 0 100%
ldm_core/pipelines/base.py 56 56 0% 1-91
ldm_core/pipelines/import_pipeline.py 299 299 0% 5-521
ldm_core/pipelines/run.py 785 785 0% 5-1402
ldm_core/pipelines/validation.py 18 18 0% 1-32
ldm_core/plugin_manager.py 37 37 0% 1-88
ldm_core/resources/__init__.py 0 0 100%
ldm_core/runtime/__init__.py 0 0 100%
ldm_core/runtime/fragments.py 203 191 6% 18-344, 361-384
ldm_core/runtime/logs.py 259 243 6% 43-232, 266-337, 363-530, 535-562
ldm_core/runtime/orchestration.py 400 373 7% 33-44, 48-71, 75-94, 98-117, 129-273, 277-329, 333-362, 366-382, 386-415, 421-506, 511-542, 548-562, 566-583, 587-646, 653-720
ldm_core/runtime/readiness.py 342 255 25% 28-301, 339-345, 358-435, 452, 458-467, 470-487, 502, 509-567, 570, 611, 633, 639, 644, 674, 679-686, 709-719
ldm_core/runtime/search.py 66 57 14% 16-78, 82-127
ldm_core/snapshot/__init__.py 0 0 100%
ldm_core/snapshot/archive.py 211 211 0% 1-356
ldm_core/snapshot/custom_containers.py 34 34 0% 1-43
ldm_core/snapshot/database.py 262 262 0% 1-548
ldm_core/snapshot/search.py 52 52 0% 1-135
ldm_core/snapshot/utils.py 111 111 0% 1-168
ldm_core/snapshot/volumes.py 115 115 0% 1-198
ldm_core/ui.py 417 275 34% 7, 11-28, 70-74, 80-98, 103-126, 132-139, 188-191, 194-207, 219-235, 245, 250-290, 294, 301-306, 311, 320-328, 333-335, 340-393, 402-403, 409, 417, 421-427, 431-432, 437-438, 443-445, 450-451, 456-476, 482-558, 563-575, 579-583, 592-600, 605-619
ldm_core/ui_colors.py 61 0 100%
ldm_core/utils.py 1670 1491 11% 50-53, 57-58, 62-63, 67-84, 91-95, 100-104, 110-119, 124-127, 132-133, 146-184, 192-226, 231-258, 263-311, 316-328, 336-341, 346-358, 366-394, 405, 419-536, 552-567, 574-579, 584, 598, 618-646, 650-659, 664-673, 678-721, 730-744, 749-762, 771-803, 808-825, 830-844, 858, 865-866, 875-917, 926-953, 965-1077, 1083-1220, 1225-1231, 1235-1241, 1251-1261, 1265-1270, 1275-1350, 1355-1405, 1410-1516, 1521-1564, 1569-1585, 1590-1624, 1629-1717, 1725-1767, 1772-1816, 1821-1968, 1973-1977, 1982-2011, 2016-2047, 2052-2059, 2064-2150, 2157-2188, 2197-2243, 2248-2259, 2268-2345, 2357-2380, 2388-2436, 2441-2456, 2466-2473, 2496-2514, 2525-2529, 2532-2541, 2555-2560, 2568-2569, 2572, 2579-2580, 2583-2607, 2611-2643, 2647-2667, 2670-2671, 2674, 2688, 2690-2698, 2705-2731, 2736-2747, 2752-2764, 2774-2797
ldm_core/workspace/__init__.py 0 0 100%
ldm_core/workspace/fork.py 60 60 0% 1-129
ldm_core/workspace/hydration.py 126 126 0% 1-219
ldm_core/workspace/importer.py 398 398 0% 1-752
ldm_core/workspace/metadata.py 253 253 0% 1-531
ldm_core/workspace/monitor.py 138 138 0% 1-257
ldm_core/workspace/quickstart.py 69 69 0% 1-128
ldm_core/workspace/utils.py 139 139 0% 1-232
ldm_core/workspace/versioning.py 37 37 0% 1-73
----------------------------------------------------------------------
TOTAL 17089 16208 5%
FAIL Required test coverage of 40% not reached. Total coverage: 5.16%
=========================== short test summary info ============================
FAILED ldm_core/tests/test_readiness.py::TestReadiness::test_wait_for_ready_detect_project_path_with_id
============================== 1 failed in 1.62s ===============================