Skip to content

Commit

Permalink
IS-13: add service announcement test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkeroulas committed Oct 21, 2024
1 parent ad6005d commit b8a84e0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions nmostesting/suites/IS1301Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,18 @@ def do_test_sequence(self, test, resource, annotation_property):

return test.PASS()

def test_00_01(self, test):
""" Annotation service must be announced """
r = self. get_resource(f"{self.node_url}self/")
print(self.annotation_url)
try:
for s in r['services']:
if 'urn:x-nmos:service:annotation' in s['type'] and s['href'] + '/' == self.annotation_url:
return test.PASS()
except Exception as e:
return test.FAIL(f"Could't parse services in '/node/self' {str(e)}")
return test.FAIL(f"Could't found 'annotation' as a service in '/node/self' ({IS13_SPEC_URL}/Interoperability_-_IS-04.html#discovery)")

def test_01_01(self, test):
""" Annotation test: self/label (reset to default, set 64-byte value, set >64-byte, check IS04+version)"""
return self.do_test_sequence(test, "self", "label")
Expand Down

0 comments on commit b8a84e0

Please sign in to comment.