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

ServiceInfo now gets the provided interfaces from the .serviceconfig #274

Merged

Conversation

DelpireNI
Copy link
Contributor

What does this Pull Request accomplish?

Rather than hard coding the provided interfaces, these will now be determined by the .serviceconfig file.

Why should this Pull Request be merged?

Currently when a measurement service is registered, it will have both the v1 and v2 provided interfaces. You should be able to specify which interfaces you provide

What testing has been done?

Tested manually to ensure the correct provided interfaces are being registered with the discovery service based on the .serviceconfig file.

  • Wrote automated test to ensure MeasurementService's ServiceInfo is populated by the .serviceconfig file.

…file.

Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
ni_measurementlink_service/measurement/info.py Outdated Show resolved Hide resolved
tests/assets/examples.v1.serviceconfig Outdated Show resolved Hide resolved
tests/unit/test_service.py Outdated Show resolved Hide resolved
tests/unit/test_service.py Outdated Show resolved Hide resolved
tests/unit/test_service.py Outdated Show resolved Hide resolved
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
tests/unit/test_service.py Outdated Show resolved Hide resolved
ni_measurementlink_service/measurement/info.py Outdated Show resolved Hide resolved
ni_measurementlink_service/measurement/info.py Outdated Show resolved Hide resolved
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
@DelpireNI DelpireNI merged commit 03c51e4 into main May 23, 2023
@DelpireNI DelpireNI deleted the users/cdelpire/read-provided-interfaces-from-serviceconfig branch May 23, 2023 14:38
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

Successfully merging this pull request may close these issues.

2 participants