-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.json
More file actions
302 lines (295 loc) · 7.45 KB
/
Copy pathtests.json
File metadata and controls
302 lines (295 loc) · 7.45 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
{
"metadata": {
"version": "1.0.0",
"created": "2026-01-13",
"description": "Test definitions for Coperniq MCP agents",
"instance": 388
},
"voice_ai_tests": [
{
"name": "emergency_call_creates_urgent_request",
"description": "Emergency calls (NO_HEAT in winter) should create EMERGENCY priority",
"input": {
"reason": "SERVICE",
"issue": "NO_HEAT",
"temperature": 20
},
"expected": {
"priority": "EMERGENCY",
"sla_hours": 2
}
},
{
"name": "standard_call_creates_normal_request",
"description": "Non-urgent calls should create NORMAL priority",
"input": {
"reason": "SERVICE",
"issue": "AC_TUNE_UP"
},
"expected": {
"priority": "SCHEDULED",
"sla_hours": 168
}
},
{
"name": "gas_leak_triggers_immediate_dispatch",
"description": "Gas leak should trigger immediate technician dispatch",
"input": {
"reason": "SERVICE",
"issue": "GAS_LEAK"
},
"expected": {
"priority": "EMERGENCY",
"immediate_dispatch": true,
"after_hours_allowed": true
}
},
{
"name": "call_disposition_logged_correctly",
"description": "All call outcomes should have valid disposition codes",
"input": {
"from_number": "+15551234567",
"to_number": "+15559876543",
"reason": "SERVICE",
"disposition": "VISIT_SCHEDULED"
},
"expected": {
"disposition_valid": true,
"reason_valid": true
}
}
],
"dispatch_tests": [
{
"name": "matches_trade_to_technician",
"description": "HVAC work orders should go to HVAC certified techs",
"input": {
"trade": "HVAC",
"skills_required": ["refrigerant"]
},
"expected": {
"tech_trade": "HVAC",
"has_required_skills": true
}
},
{
"name": "prioritizes_by_proximity",
"description": "Closer technicians should be preferred for same skills",
"input": {
"job_location": "78701",
"available_techs": [
{"id": 1, "zip": "78704", "distance_miles": 3},
{"id": 2, "zip": "78745", "distance_miles": 12}
]
},
"expected": {
"selected_tech_id": 1,
"reason": "proximity"
}
},
{
"name": "respects_sla_deadline",
"description": "Emergency jobs dispatched within SLA window",
"input": {
"priority": "EMERGENCY",
"created_at": "2026-01-13T10:00:00Z"
},
"expected": {
"dispatch_by": "2026-01-13T12:00:00Z",
"sla_hours": 2
}
}
],
"collections_tests": [
{
"name": "0_30_days_email_only",
"description": "Invoices 0-30 days get email reminder only",
"input": {
"days_overdue": 15,
"amount": 500
},
"expected": {
"action": "email",
"phone_call": false
}
},
{
"name": "31_60_days_phone_call",
"description": "Invoices 31-60 days get phone call",
"input": {
"days_overdue": 45,
"amount": 1000
},
"expected": {
"action": "phone_call",
"tone": "concerned_checkin"
}
},
{
"name": "90_plus_final_notice",
"description": "Invoices 90+ days get final notice",
"input": {
"days_overdue": 95,
"amount": 2500
},
"expected": {
"action": "final_notice",
"payment_plan_offered": true,
"escalate_to_manager": true
}
}
],
"pm_scheduler_tests": [
{
"name": "spring_ac_tuneup_march_may",
"description": "AC tune-ups scheduled in spring months",
"input": {
"service_plan": "HVAC_BRONZE",
"current_month": 3
},
"expected": {
"pm_type": "AC_TUNEUP",
"scheduled_in_window": true,
"window": "March-May"
}
},
{
"name": "fall_furnace_check_sep_nov",
"description": "Furnace checks scheduled in fall months",
"input": {
"service_plan": "HVAC_BRONZE",
"current_month": 10
},
"expected": {
"pm_type": "FURNACE_SAFETY",
"scheduled_in_window": true,
"window": "September-November"
}
},
{
"name": "commercial_nfpa_quarterly",
"description": "Commercial fire NFPA25 quarterly visits",
"input": {
"service_plan": "COMMERCIAL_FIRE_NFPA25",
"current_quarter": 1
},
"expected": {
"visits_per_year": 4,
"frequency": "quarterly",
"compliance_required": true
}
},
{
"name": "contract_renewal_60_days_warning",
"description": "Contracts get renewal notice 60 days before expiry",
"input": {
"contract_end_date": "2026-03-15",
"check_date": "2026-01-14"
},
"expected": {
"days_until_expiry": 60,
"renewal_notice_sent": true
}
}
],
"quote_builder_tests": [
{
"name": "service_plan_discount_applied",
"description": "Gold plan customers get 20% discount",
"input": {
"customer_plan": "GOLD",
"parts_total": 100,
"labor_total": 200
},
"expected": {
"parts_discount": 20,
"labor_discount": 40,
"total_discount": 60
}
},
{
"name": "good_better_best_options",
"description": "Quotes include 3 options",
"input": {
"repair_type": "AC_NOT_COOLING",
"diagnosis": "capacitor_failure"
},
"expected": {
"options_count": 3,
"option_names": ["GOOD", "BETTER", "BEST"],
"best_includes_service_plan": true
}
},
{
"name": "parts_markup_calculated",
"description": "Parts markup follows tiered structure",
"input": {
"part_cost": 300
},
"expected": {
"markup_percent": 60,
"selling_price": 480
}
}
],
"data_quality_tests": [
{
"name": "project_requires_title",
"description": "Projects must have title",
"input": {
"client_id": 123
},
"expected": {
"valid": false,
"missing_field": "title"
}
},
{
"name": "phone_format_validated",
"description": "Phone numbers must be E.164 format",
"input": {
"phone": "5551234567"
},
"expected": {
"valid": false,
"message": "Phone must be +1XXXXXXXXXX format"
}
},
{
"name": "call_disposition_enum_validated",
"description": "Call dispositions must be valid enum values",
"input": {
"disposition": "INVALID_VALUE"
},
"expected": {
"valid": false,
"valid_values": ["VISIT_SCHEDULED", "INFO_PROVIDED", "ISSUE_RESOLVED", "FOLLOW_UP", "ESCALATION", "NO_ACTION", "UNRESPONSIVE", "OTHER"]
}
}
],
"review_gate_tests": [
{
"name": "api_key_scan_catches_secrets",
"description": "Pre-deploy gate catches exposed API keys",
"input": {
"file_content": "COPERNIQ_API_KEY=sk-ant-12345"
},
"expected": {
"gate_passed": false,
"blocking_check": "api_key_scan"
}
},
{
"name": "test_coverage_enforced",
"description": "Pre-deploy requires 80% coverage",
"input": {
"coverage_percent": 75
},
"expected": {
"gate_passed": false,
"blocking_check": "test_coverage",
"minimum_required": 80
}
}
]
}