[PR #240] [MERGED] Test mgmt http handler #2641

Closed
opened 2025-11-20 07:12:03 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

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

Base: mainHead: test_mgmt_http_handler


📝 Commits (10+)

  • 93662c2 sends wtversion to dashboard-UI
  • ca5a38c testing frame for peers http endpoint
  • 7a12435 Extract AccountManager to interface
  • ea380b6 Merge branch 'extract_account_mgr' into test_mgmt_http_handler
  • 96f65b6 tmp
  • 1ce1414 mock server template
  • ec81788 fix: typo
  • 8b670cc Merge remote-tracking branch 'origin/main' into test_mgmt_http_handler
  • 7f6fb65 extracted jwt extractor for mocking purposes
  • b24ee46 fix: nullpointer exception

📊 Changes

8 files changed (+282 additions, -9 deletions)

View changed files

📝 management/client/client_test.go (+4 -2)
📝 management/server/http/handler/peers.go (+4 -1)
management/server/http/handler/peers_test.go (+107 -0)
📝 management/server/http/handler/setupkeys.go (+2 -1)
📝 management/server/http/handler/util.go (+22 -2)
📝 management/server/idp/auth0_test.go (+3 -2)
management/server/mock_server/account_mock.go (+139 -0)
📝 management/server/mock_server/management_server_mock.go (+1 -1)

📄 Description

  • Testing the http handler endpoints
  • added AccountManager mocking

🔄 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/240 **Author:** [@shatoboar](https://github.com/shatoboar) **Created:** 2/22/2022 **Status:** ✅ Merged **Merged:** 2/22/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `test_mgmt_http_handler` --- ### 📝 Commits (10+) - [`93662c2`](https://github.com/netbirdio/netbird/commit/93662c2be641f0d4211a56aa38a0efbc58079680) sends wtversion to dashboard-UI - [`ca5a38c`](https://github.com/netbirdio/netbird/commit/ca5a38c3c64562eb3d5df833c9e0107f168ba555) testing frame for peers http endpoint - [`7a12435`](https://github.com/netbirdio/netbird/commit/7a1243528c3ef5d6c8106fcb7471d8d7eb68b96d) Extract AccountManager to interface - [`ea380b6`](https://github.com/netbirdio/netbird/commit/ea380b659d5ab427098e1cc4ecea59bfc22ff709) Merge branch 'extract_account_mgr' into test_mgmt_http_handler - [`96f65b6`](https://github.com/netbirdio/netbird/commit/96f65b6c7369d68869a2d2d0734060d77c6a66d5) tmp - [`1ce1414`](https://github.com/netbirdio/netbird/commit/1ce1414c35cd98891bd802001ae29eb12bb60b56) mock server template - [`ec81788`](https://github.com/netbirdio/netbird/commit/ec817886d9406c189d30746ae6d41bb82644e1c6) fix: typo - [`8b670cc`](https://github.com/netbirdio/netbird/commit/8b670cc4b63e30c061c2770ba1e1e06dac9f0404) Merge remote-tracking branch 'origin/main' into test_mgmt_http_handler - [`7f6fb65`](https://github.com/netbirdio/netbird/commit/7f6fb6581cc2ebaff6eec4f8e2ca14a31b18cb78) extracted jwt extractor for mocking purposes - [`b24ee46`](https://github.com/netbirdio/netbird/commit/b24ee46ca00f45ca71ba3cd6c5927cf17287f23d) fix: nullpointer exception ### 📊 Changes **8 files changed** (+282 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `management/client/client_test.go` (+4 -2) 📝 `management/server/http/handler/peers.go` (+4 -1) ➕ `management/server/http/handler/peers_test.go` (+107 -0) 📝 `management/server/http/handler/setupkeys.go` (+2 -1) 📝 `management/server/http/handler/util.go` (+22 -2) 📝 `management/server/idp/auth0_test.go` (+3 -2) ➕ `management/server/mock_server/account_mock.go` (+139 -0) 📝 `management/server/mock_server/management_server_mock.go` (+1 -1) </details> ### 📄 Description * Testing the http handler endpoints * added AccountManager mocking --- <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:12:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2641