Skip to content

Commit b8a84e0

Browse files
committed
IS-13: add service announcement test
1 parent ad6005d commit b8a84e0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

nmostesting/suites/IS1301Test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,18 @@ def do_test_sequence(self, test, resource, annotation_property):
218218

219219
return test.PASS()
220220

221+
def test_00_01(self, test):
222+
""" Annotation service must be announced """
223+
r = self. get_resource(f"{self.node_url}self/")
224+
print(self.annotation_url)
225+
try:
226+
for s in r['services']:
227+
if 'urn:x-nmos:service:annotation' in s['type'] and s['href'] + '/' == self.annotation_url:
228+
return test.PASS()
229+
except Exception as e:
230+
return test.FAIL(f"Could't parse services in '/node/self' {str(e)}")
231+
return test.FAIL(f"Could't found 'annotation' as a service in '/node/self' ({IS13_SPEC_URL}/Interoperability_-_IS-04.html#discovery)")
232+
221233
def test_01_01(self, test):
222234
""" Annotation test: self/label (reset to default, set 64-byte value, set >64-byte, check IS04+version)"""
223235
return self.do_test_sequence(test, "self", "label")

0 commit comments

Comments
 (0)