Skip to content

Commit

Permalink
Check subscription response
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-r-thorpe committed Nov 4, 2024
1 parent ec3c2a1 commit c5b5d31
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nmostesting/suites/IS1201Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,17 @@ def test_33(self, test):

oids = dict.fromkeys([self.is12_utils.ROOT_BLOCK_OID] + [o.oid for o in device_model_objects], 0)

self.is12_utils.update_subscritions(test, list(oids.keys()))

error = False
error_message = ""

response = self.is12_utils.update_subscritions(test, list(oids.keys()))

if not isinstance(response, list):
return test.FAIL(f"Unexpected response from subscription command: {str(response)}")

for oid in oids.keys():
if oid not in response:
return test.FAIL(f"Unexpected response from subscription command: {str(response)}")
method_result = self.is12_utils.get_property(test, NcObjectProperties.USER_LABEL.value, oid=oid)

if isinstance(method_result, NcMethodResultError):
Expand Down

0 comments on commit c5b5d31

Please sign in to comment.