-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix removal of submodel removes other root attributes (#131)
* Fix removal of submodel removes other root attributes Use set operation for update instead of set refs #129 * Remove line comment
- Loading branch information
Showing
3 changed files
with
98 additions
and
4 deletions.
There are no files selected for viewing
42 changes: 39 additions & 3 deletions
42
...try/service/tests/whenUnregisterSubmodelDescriptorAndWasPresent_thenElementIsRemoved.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,49 @@ | ||
[ | ||
{ | ||
"id": "identification_1" | ||
"id": "identification_1", | ||
"endpoints": [ | ||
{ | ||
"protocolInformation": { | ||
"endpointProtocolVersion": [ | ||
"1" | ||
] | ||
} | ||
} | ||
], | ||
"extensions": [ | ||
{ | ||
"name": "COLOR", | ||
"value": "BLUE" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "identification_2", | ||
"endpoints": [ | ||
{ | ||
"protocolInformation": { | ||
"endpointProtocolVersion": [ | ||
"2" | ||
] | ||
} | ||
} | ||
], | ||
"extensions": [ | ||
{ | ||
"name": "COLOR", | ||
"value": "RED" | ||
} | ||
], | ||
"submodelDescriptors": [ | ||
{ | ||
"id": "identification_2.1" | ||
"id": "identification_2.1", | ||
"extensions": [ | ||
{ | ||
"name": "COLOR", | ||
"value": "RED" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] |
56 changes: 56 additions & 0 deletions
56
...ervice/tests/whenUnregisterSubmodelDescriptorAndWasPresent_thenElementIsRemoved_repo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
[ | ||
{ | ||
"id": "identification_1", | ||
"endpoints": [ | ||
{ | ||
"protocolInformation": { | ||
"endpointProtocolVersion": [ | ||
"1" | ||
] | ||
} | ||
} | ||
], | ||
"extensions": [ | ||
{ | ||
"name": "COLOR", | ||
"value": "BLUE" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "identification_2", | ||
"endpoints": [ | ||
{ | ||
"protocolInformation": { | ||
"endpointProtocolVersion": [ | ||
"2" | ||
] | ||
} | ||
} | ||
], | ||
"extensions": [ | ||
{ | ||
"name": "COLOR", | ||
"value": "RED" | ||
} | ||
], | ||
"submodelDescriptors": [ | ||
{ | ||
"id": "identification_2.1", | ||
"extensions": [ | ||
{ | ||
"name": "COLOR", | ||
"value": "RED" | ||
}] | ||
}, | ||
{ | ||
"id": "identification_2.2", | ||
"extensions": [ | ||
{ | ||
"name": "COLOR", | ||
"value": "RED" | ||
}] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters