[PR #222] [MERGED] Add client version to the client app and send it to the management service #2628

Open
opened 2025-11-20 07:11:59 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/222
Author: @shatoboar
Created: 2/8/2022
Status: Merged
Merged: 2/8/2022
Merged by: @braginini

Base: mainHead: client_server_test


📝 Commits (9)

  • 1be8527 test: WIP mocking the grpc server for testing the sending of the client information
  • 42430cf WIP: Test_SystemMetaDataFromClient with mocks, todo:
  • 3f10b0a fix: failing meta data test
  • 573a9c2 test: add system meta expectation in management client test
  • 504ba80 fix: removing deprecated register function, replacing with new one
  • 432f284 fix: removing deprecated register function from mockclient interface impl
  • a789083 fix: fixing interface declaration
  • 2b44da7 merge: master
  • 1ae8131 chore: remove unused commented code

📊 Changes

11 files changed (+222 additions, -41 deletions)

View changed files

📝 client/cmd/login.go (+6 -3)
📝 client/cmd/up.go (+2 -2)
📝 client/internal/engine.go (+5 -4)
📝 client/internal/engine_test.go (+11 -8)
📝 go.mod (+2 -2)
📝 management/client/client.go (+4 -2)
📝 management/client/client_test.go (+132 -7)
📝 management/client/grpc.go (+8 -10)
📝 management/client/mock.go (+4 -3)
📝 management/proto/management.proto (+2 -0)
management/server/management_server_mock.go (+46 -0)

📄 Description

Testing with server mocks integrated.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/222 **Author:** [@shatoboar](https://github.com/shatoboar) **Created:** 2/8/2022 **Status:** ✅ Merged **Merged:** 2/8/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `client_server_test` --- ### 📝 Commits (9) - [`1be8527`](https://github.com/netbirdio/netbird/commit/1be8527906b53f95475b51dd1e5cef55d9467ce3) test: WIP mocking the grpc server for testing the sending of the client information - [`42430cf`](https://github.com/netbirdio/netbird/commit/42430cfe6510f0c3134f3b6452515ea73d4be42b) WIP: Test_SystemMetaDataFromClient with mocks, todo: - [`3f10b0a`](https://github.com/netbirdio/netbird/commit/3f10b0afc5f7fdd55dfd8e19a40d74242b8ef874) fix: failing meta data test - [`573a9c2`](https://github.com/netbirdio/netbird/commit/573a9c2f7f79a12164859aa39e13521e07ea2a82) test: add system meta expectation in management client test - [`504ba80`](https://github.com/netbirdio/netbird/commit/504ba80546571005cd4744cb24219f0fa11cc77c) fix: removing deprecated register function, replacing with new one - [`432f284`](https://github.com/netbirdio/netbird/commit/432f28403647231adf2eea1d31c779f041a9216b) fix: removing deprecated register function from mockclient interface impl - [`a789083`](https://github.com/netbirdio/netbird/commit/a789083f66cad37f094230cc0660f33a6a6acca7) fix: fixing interface declaration - [`2b44da7`](https://github.com/netbirdio/netbird/commit/2b44da7a4662ca8d033844d82afe91eb58864090) merge: master - [`1ae8131`](https://github.com/netbirdio/netbird/commit/1ae813107c49d76b208ff9e2e64a8693b76610b9) chore: remove unused commented code ### 📊 Changes **11 files changed** (+222 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/login.go` (+6 -3) 📝 `client/cmd/up.go` (+2 -2) 📝 `client/internal/engine.go` (+5 -4) 📝 `client/internal/engine_test.go` (+11 -8) 📝 `go.mod` (+2 -2) 📝 `management/client/client.go` (+4 -2) 📝 `management/client/client_test.go` (+132 -7) 📝 `management/client/grpc.go` (+8 -10) 📝 `management/client/mock.go` (+4 -3) 📝 `management/proto/management.proto` (+2 -0) ➕ `management/server/management_server_mock.go` (+46 -0) </details> ### 📄 Description Testing with server mocks integrated. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 07:11:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2628