Skip to content

Commit 2849331

Browse files
authored
Merge pull request #44 from meaningfy-ws/feature/TED9-47/msconfig-model
Update MS config test data for MSSDK update of probing model
2 parents a34a5fb + 8a23d07 commit 2849331

2 files changed

Lines changed: 24 additions & 60 deletions

File tree

test/test_data/mapping_suite_processor/mapping_project_eforms/config/mapping_suite_config.json

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,18 @@
44
"mapping_suite_description": "Mapping suite configuration for European eForms procurement notices"
55
},
66
"metadata_config": {
7-
"document_type_probing": {
8-
"must_exist": [
9-
{
10-
"formal_expression": ".//efext:EformsExtension",
11-
"formal_expression_type": "xpath",
12-
"extraction_method": "element",
13-
"attribute_name": null
14-
},
15-
{
16-
"formal_expression": ".//cbc:CustomizationID[contains(text(), 'eForms')]",
17-
"formal_expression_type": "xpath",
18-
"extraction_method": "text",
19-
"attribute_name": null
20-
}
21-
],
22-
"must_not_exist": [
23-
{
24-
"formal_expression": ".//sf:StandardForms",
25-
"formal_expression_type": "xpath",
26-
"extraction_method": "element",
27-
"attribute_name": null
28-
},
29-
{
30-
"formal_expression": ".//ext:UBLExtension/ext:ExtensionContent[not(.//efext:EformsExtension)]",
31-
"formal_expression_type": "xpath",
32-
"extraction_method": "element",
33-
"attribute_name": null
34-
}
35-
]
36-
},
7+
"document_type_probing": [
8+
{
9+
"formal_expression": ".//cbc:CustomizationID",
10+
"formal_expression_type": "xpath",
11+
"probing_method": "must_exist"
12+
},
13+
{
14+
"formal_expression": "./TED_EXPORT",
15+
"formal_expression_type": "xpath",
16+
"probing_method": "must_not_exist"
17+
}
18+
],
3719
"metadata_properties": [
3820
{
3921
"property": "title",

test/test_data/mssdk/dummy_mapping_suite/config/mapping_suite_config.json

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,18 @@
44
"mapping_suite_description": "Mapping suite configuration for European eForms procurement notices"
55
},
66
"metadata_config": {
7-
"document_type_probing": {
8-
"must_exist": [
9-
{
10-
"formal_expression": ".//efext:EformsExtension",
11-
"formal_expression_type": "xpath",
12-
"extraction_method": "element",
13-
"attribute_name": null
14-
},
15-
{
16-
"formal_expression": ".//cbc:CustomizationID[contains(text(), 'eForms')]",
17-
"formal_expression_type": "xpath",
18-
"extraction_method": "text",
19-
"attribute_name": null
20-
}
21-
],
22-
"must_not_exist": [
23-
{
24-
"formal_expression": ".//sf:StandardForms",
25-
"formal_expression_type": "xpath",
26-
"extraction_method": "element",
27-
"attribute_name": null
28-
},
29-
{
30-
"formal_expression": ".//ext:UBLExtension/ext:ExtensionContent[not(.//efext:EformsExtension)]",
31-
"formal_expression_type": "xpath",
32-
"extraction_method": "element",
33-
"attribute_name": null
34-
}
35-
]
36-
},
7+
"document_type_probing": [
8+
{
9+
"formal_expression": ".//cbc:CustomizationID",
10+
"formal_expression_type": "xpath",
11+
"probing_method": "must_exist"
12+
},
13+
{
14+
"formal_expression": "./TED_EXPORT",
15+
"formal_expression_type": "xpath",
16+
"probing_method": "must_not_exist"
17+
}
18+
],
3719
"metadata_properties": [
3820
{
3921
"property": "title",

0 commit comments

Comments
 (0)