Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IS-04-01 test_23 not working with Node having both senders and receivers and sharing a group name #859

Open
alabou opened this issue Feb 17, 2025 · 1 comment

Comments

@alabou
Copy link

alabou commented Feb 17, 2025

Senders and Receivers of a given Node may share the same group name as allowed by "Senders and Receivers may both contain matching values of the urn:x-nmos:tag:grouphint tag, indicating that the group has elements in both signal flow directions." from https://specs.amwa.tv/nmos-parameter-registers/branches/main/tags/grouphint.html#natural-groups

test_23 combines senders and receivers of a Node and will detect duplicates that are valid according to the above statement.

@garethsb
Copy link
Contributor

Ha, wonderful how that contradicts "The role of the resource in the group, MUST be unique inside the same group."

I guess this code should take resource type into account...

# Check for duplicate roles within groups
if group_params[1] in group_ref:
return test.FAIL("Duplicate role found in group {} for resources {} and {}"
.format(group_params[0], resource["id"],
group_ref[group_params[1]]))
else:
group_ref[group_params[1]] = resource["id"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants