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

delete in stream telemetry - in demo + test #34

Merged
merged 5 commits into from
Jan 12, 2024
Merged

Conversation

micnovak
Copy link
Contributor

minor refactoring
stream telemetry delete in demo adapter
tests for delete in stream telemetry

minor refactoring
stream telemetry delete in demo adapter
tests for delete in stream telemetry

Signed-off-by: Michal Novak <[email protected]>
Copy link
Contributor

@martin-volf martin-volf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The base test classes contain a lot of dependencies on the demo adapter (there were some already, but this change introduces a lot more). It is "just" a test, so I guess it is acceptable, but still.

src/confd_gnmi_demo_adapter.py Outdated Show resolved Hide resolved
tests/client_server_test_base.py Outdated Show resolved Hide resolved
@@ -37,6 +45,7 @@ def fix_method(self, request):
self.set_adapter_type()
self.server = ConfDgNMIServicer.serve(adapter_type=self.adapter_type, insecure=True)
self.client = ConfDgNMIClient(insecure=True)
GnmiDemoServerAdapter.fill_demo_db()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this code specific to the demo adapter? Also, it looks like a broader-scoped fixture, not a function fixture.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

demo db is currently also used for ConfD tests (contains paths to test)

tests/client_server_test_base.py Outdated Show resolved Hide resolved
tests/client_server_test_base.py Outdated Show resolved Hide resolved
tests/client_server_test_base.py Show resolved Hide resolved
tests/client_server_test_base.py Outdated Show resolved Hide resolved
@micnovak
Copy link
Contributor Author

micnovak commented Jan 9, 2024

The base test classes contain a lot of dependencies on the demo adapter (there were some already, but this change introduces a lot more). It is "just" a test, so I guess it is acceptable, but still.

I think only new types (classes) for change list were imported (newly)

gnmi-tools.xml Outdated Show resolved Hide resolved
gnmi-tools.yang Outdated Show resolved Hide resolved
src/confd_gnmi_adapter.py Outdated Show resolved Hide resolved
src/confd_gnmi_demo_adapter.py Outdated Show resolved Hide resolved
src/confd_gnmi_demo_adapter.py Show resolved Hide resolved
Signed-off-by: Michal Novak <[email protected]>
Signed-off-by: Michal Novak <[email protected]>
Signed-off-by: Michal Novak <[email protected]>
@micnovak micnovak merged commit f750956 into main Jan 12, 2024
1 check passed
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.

3 participants