Skip to content

Commit

Permalink
Add additional validation of class descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-r-thorpe committed Jun 3, 2024
1 parent 5eda47f commit e228800
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nmostesting/suites/MS0501Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def check_block(self, test, block, class_descriptors, context=""):
test,
descriptor,
self.get_datatype_schema(test, "NcBlockMemberDescriptor"),
context="NcBlockMemberDescriptor: ")
context=context + "NcBlockMemberDescriptor: ")

self.check_unique_roles(descriptor['role'], role_cache)
self.check_unique_oid(descriptor['oid'])
Expand All @@ -396,6 +396,11 @@ def check_block(self, test, block, class_descriptors, context=""):

class_identifier = ".".join(map(str, descriptor['classId']))
if class_identifier and class_identifier in class_descriptors:
self.ms05_utils.validate_schema(
test,
class_descriptors[class_identifier],
self.get_datatype_schema(test, "NcClassDescriptor"),
context=context + "NcClassDescriptor for class " + str(descriptor['classId']))
self.check_object_properties(test,
class_descriptors[class_identifier],
descriptor['oid'],
Expand Down

0 comments on commit e228800

Please sign in to comment.