You've already forked iesnieguma-izskatisana
Import UAPF package
99 lines
3.0 KiB
JSON
99 lines
3.0 KiB
JSON
{
|
|
"version": "0.1.0",
|
|
"tests": [
|
|
{
|
|
"fixture": "sample-good-governance-complaint.json",
|
|
"expectedFacets": {
|
|
"mentionsChildren": false,
|
|
"mentionsDiscrimination": false,
|
|
"mentionsPrisons": false,
|
|
"mentionsPolice": false,
|
|
"mentionsHealth": false,
|
|
"mentionsSocialServices": false,
|
|
"mentionsPrivacy": false,
|
|
"mentionsPublicAdministration": true,
|
|
"vulnerablePerson": false,
|
|
"urgency": false,
|
|
"ongoingHarm": false
|
|
},
|
|
"expectedClassifyTopic": {
|
|
"rulesFired": ["R8_pubadmin"],
|
|
"outputs": { "topic": "good-governance", "topicConfidence": 0.78 }
|
|
},
|
|
"expectedDeterminePriority": {
|
|
"rulesFired": ["P6_default"],
|
|
"outputs": { "priority": "normal", "slaHours": 720 }
|
|
},
|
|
"expectedRouteToDepartment": {
|
|
"rulesFired": ["D8_gov"],
|
|
"outputs": {
|
|
"department": "Vispārējās uzraudzības nodaļa",
|
|
"reviewerRole": "visparejas-uzraudzibas-jurists"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"fixture": "sample-child-rights-complaint.json",
|
|
"expectedFacets": {
|
|
"mentionsChildren": true,
|
|
"mentionsDiscrimination": false,
|
|
"mentionsPrisons": false,
|
|
"mentionsPolice": false,
|
|
"mentionsHealth": false,
|
|
"mentionsSocialServices": true,
|
|
"mentionsPrivacy": false,
|
|
"mentionsPublicAdministration": false,
|
|
"vulnerablePerson": true,
|
|
"urgency": false,
|
|
"ongoingHarm": false
|
|
},
|
|
"expectedClassifyTopic": {
|
|
"rulesFired": ["R1_child"],
|
|
"outputs": { "topic": "child-rights", "topicConfidence": 0.92 }
|
|
},
|
|
"expectedDeterminePriority": {
|
|
"rulesFired": ["P3_child_high"],
|
|
"outputs": { "priority": "high", "slaHours": 168 }
|
|
},
|
|
"expectedRouteToDepartment": {
|
|
"rulesFired": ["D1_child"],
|
|
"outputs": {
|
|
"department": "Bērna tiesību nodaļa",
|
|
"reviewerRole": "berna-tiesibu-jurists"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"fixture": "sample-discrimination-complaint.json",
|
|
"expectedFacets": {
|
|
"mentionsChildren": false,
|
|
"mentionsDiscrimination": true,
|
|
"mentionsPrisons": false,
|
|
"mentionsPolice": false,
|
|
"mentionsHealth": false,
|
|
"mentionsSocialServices": false,
|
|
"mentionsPrivacy": false,
|
|
"mentionsPublicAdministration": false,
|
|
"vulnerablePerson": true,
|
|
"urgency": true,
|
|
"ongoingHarm": false
|
|
},
|
|
"expectedClassifyTopic": {
|
|
"rulesFired": ["R2_discrim"],
|
|
"outputs": { "topic": "discrimination", "topicConfidence": 0.9 }
|
|
},
|
|
"expectedDeterminePriority": {
|
|
"rulesFired": ["P2_urgent_vulnerable"],
|
|
"outputs": { "priority": "urgent", "slaHours": 48 }
|
|
},
|
|
"expectedRouteToDepartment": {
|
|
"rulesFired": ["D2_discrim"],
|
|
"outputs": {
|
|
"department": "Diskriminācijas novēršanas nodaļa",
|
|
"reviewerRole": "diskriminacijas-jurists"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|