Skip to content

Commit

Permalink
test: update compliance tool test-files
Browse files Browse the repository at this point in the history
This commit applies the following changes to all test-files:
- The id_short of direct children of a `SubmodelElementList` is removed
- `SubmodelElementList.order_relevant` is set to true for all
  `SubmodelElementList`s
  • Loading branch information
jkhsjdhjs committed Oct 4, 2023
1 parent 8b5a267 commit bcd949f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 32 deletions.
10 changes: 2 additions & 8 deletions test/compliance_tool/files/test_demo_full_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,6 @@
},
"value": [
{
"idShort": "ExampleProperty",
"displayName": [
{
"language": "en-US",
Expand Down Expand Up @@ -1595,7 +1594,6 @@
]
},
{
"idShort": "ExampleProperty2",
"displayName": [
{
"language": "en-US",
Expand Down Expand Up @@ -1792,7 +1790,6 @@
"modelType": "SubmodelElementList",
"value": [
{
"idShort": "ExampleSubmodelCollection",
"modelType": "SubmodelElementCollection",
"value": [
{
Expand Down Expand Up @@ -1834,7 +1831,6 @@
]
},
{
"idShort": "ExampleSubmodelCollection2",
"modelType": "SubmodelElementCollection"
}
]
Expand Down Expand Up @@ -2795,7 +2791,7 @@
}
]
},
"orderRelevant": false,
"orderRelevant": true,
"category": "PARAMETER",
"description": [
{
Expand All @@ -2820,7 +2816,6 @@
"kind": "Template",
"value": [
{
"idShort": "ExampleSubmodelCollection",
"category": "PARAMETER",
"description": [
{
Expand Down Expand Up @@ -3033,7 +3028,6 @@
]
},
{
"idShort": "ExampleSubmodelCollection2",
"category": "PARAMETER",
"description": [
{
Expand Down Expand Up @@ -3071,7 +3065,7 @@
}
]
},
"orderRelevant": false,
"orderRelevant": true,
"category": "PARAMETER",
"description": [
{
Expand Down
10 changes: 2 additions & 8 deletions test/compliance_tool/files/test_demo_full_example.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,6 @@
<aas:value>
<aas:property>
<aas:category>CONSTANT</aas:category>
<aas:idShort>ExampleProperty</aas:idShort>
<aas:displayName>
<aas:langStringNameType>
<aas:language>en-US</aas:language>
Expand Down Expand Up @@ -1380,7 +1379,6 @@
</aas:property>
<aas:property>
<aas:category>CONSTANT</aas:category>
<aas:idShort>ExampleProperty2</aas:idShort>
<aas:displayName>
<aas:langStringNameType>
<aas:language>en-US</aas:language>
Expand Down Expand Up @@ -1663,7 +1661,6 @@
<aas:idShort>ExampleSubmodelList</aas:idShort>
<aas:value>
<aas:submodelElementCollection>
<aas:idShort>ExampleSubmodelCollection</aas:idShort>
<aas:kind>Instance</aas:kind>
<aas:value>
<aas:blob>
Expand Down Expand Up @@ -1702,7 +1699,6 @@
</aas:value>
</aas:submodelElementCollection>
<aas:submodelElementCollection>
<aas:idShort>ExampleSubmodelCollection2</aas:idShort>
<aas:kind>Instance</aas:kind>
</aas:submodelElementCollection>
</aas:value>
Expand Down Expand Up @@ -2671,11 +2667,10 @@
</aas:key>
</aas:keys>
</aas:semanticId>
<aas:orderRelevant>false</aas:orderRelevant>
<aas:orderRelevant>true</aas:orderRelevant>
<aas:value>
<aas:submodelElementCollection>
<aas:category>PARAMETER</aas:category>
<aas:idShort>ExampleSubmodelCollection</aas:idShort>
<aas:description>
<aas:langStringTextType>
<aas:language>en-US</aas:language>
Expand Down Expand Up @@ -2877,7 +2872,6 @@
</aas:submodelElementCollection>
<aas:submodelElementCollection>
<aas:category>PARAMETER</aas:category>
<aas:idShort>ExampleSubmodelCollection2</aas:idShort>
<aas:description>
<aas:langStringTextType>
<aas:language>en-US</aas:language>
Expand Down Expand Up @@ -2934,7 +2928,7 @@
</aas:key>
</aas:keys>
</aas:semanticId>
<aas:orderRelevant>false</aas:orderRelevant>
<aas:orderRelevant>true</aas:orderRelevant>
<aas:semanticIdListElement>
<aas:type>ExternalReference</aas:type>
<aas:keys>
Expand Down
Binary file modified test/compliance_tool/files/test_demo_full_example_json.aasx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,6 @@
},
"value": [
{
"idShort": "ExampleProperty",
"displayName": [
{
"language": "en-US",
Expand Down Expand Up @@ -1595,7 +1594,6 @@
]
},
{
"idShort": "ExampleProperty2",
"displayName": [
{
"language": "en-US",
Expand Down Expand Up @@ -1792,7 +1790,6 @@
"modelType": "SubmodelElementList",
"value": [
{
"idShort": "ExampleSubmodelCollection",
"modelType": "SubmodelElementCollection",
"value": [
{
Expand Down Expand Up @@ -1834,7 +1831,6 @@
]
},
{
"idShort": "ExampleSubmodelCollection2",
"modelType": "SubmodelElementCollection"
}
]
Expand Down Expand Up @@ -2795,7 +2791,7 @@
}
]
},
"orderRelevant": false,
"orderRelevant": true,
"category": "PARAMETER",
"description": [
{
Expand All @@ -2820,7 +2816,6 @@
"kind": "Template",
"value": [
{
"idShort": "ExampleSubmodelCollection",
"category": "PARAMETER",
"description": [
{
Expand Down Expand Up @@ -3033,7 +3028,6 @@
]
},
{
"idShort": "ExampleSubmodelCollection2",
"category": "PARAMETER",
"description": [
{
Expand Down Expand Up @@ -3071,7 +3065,7 @@
}
]
},
"orderRelevant": false,
"orderRelevant": true,
"category": "PARAMETER",
"description": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,6 @@
<aas:value>
<aas:property>
<aas:category>CONSTANT</aas:category>
<aas:idShort>ExampleProperty</aas:idShort>
<aas:displayName>
<aas:langStringNameType>
<aas:language>en-US</aas:language>
Expand Down Expand Up @@ -1380,7 +1379,6 @@
</aas:property>
<aas:property>
<aas:category>CONSTANT</aas:category>
<aas:idShort>ExampleProperty2</aas:idShort>
<aas:displayName>
<aas:langStringNameType>
<aas:language>en-US</aas:language>
Expand Down Expand Up @@ -1663,7 +1661,6 @@
<aas:idShort>ExampleSubmodelList</aas:idShort>
<aas:value>
<aas:submodelElementCollection>
<aas:idShort>ExampleSubmodelCollection</aas:idShort>
<aas:kind>Instance</aas:kind>
<aas:value>
<aas:blob>
Expand Down Expand Up @@ -1702,7 +1699,6 @@
</aas:value>
</aas:submodelElementCollection>
<aas:submodelElementCollection>
<aas:idShort>ExampleSubmodelCollection2</aas:idShort>
<aas:kind>Instance</aas:kind>
</aas:submodelElementCollection>
</aas:value>
Expand Down Expand Up @@ -2671,11 +2667,10 @@
</aas:key>
</aas:keys>
</aas:semanticId>
<aas:orderRelevant>false</aas:orderRelevant>
<aas:orderRelevant>true</aas:orderRelevant>
<aas:value>
<aas:submodelElementCollection>
<aas:category>PARAMETER</aas:category>
<aas:idShort>ExampleSubmodelCollection</aas:idShort>
<aas:description>
<aas:langStringTextType>
<aas:language>en-US</aas:language>
Expand Down Expand Up @@ -2877,7 +2872,6 @@
</aas:submodelElementCollection>
<aas:submodelElementCollection>
<aas:category>PARAMETER</aas:category>
<aas:idShort>ExampleSubmodelCollection2</aas:idShort>
<aas:description>
<aas:langStringTextType>
<aas:language>en-US</aas:language>
Expand Down Expand Up @@ -2934,7 +2928,7 @@
</aas:key>
</aas:keys>
</aas:semanticId>
<aas:orderRelevant>false</aas:orderRelevant>
<aas:orderRelevant>true</aas:orderRelevant>
<aas:semanticIdListElement>
<aas:type>ExternalReference</aas:type>
<aas:keys>
Expand Down
Binary file modified test/compliance_tool/files/test_demo_full_example_xml.aasx
Binary file not shown.
Binary file not shown.

0 comments on commit bcd949f

Please sign in to comment.