[PR #3087] [CLOSED] [management] Add tests for new network map generation #21472

Open
opened 2026-08-05 05:08:33 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3087
Author: @pascal-fischer
Created: 12/19/2024
Status: Closed

Base: mainHead: feature/new-networks-concept-network-gen-tests


📝 Commits (10+)

  • 623fcb0 [management] Add structs for new networks concept (#3006)
  • eb5798e Migrate networks, network routers and network resource tables
  • 0812cc6 [management] Add name attr to network resource (#3011)
  • 21eca7e Merge branch 'feature/new-networks-concept' into add-networks-db-support
  • 6a1eda1 Add account networks
  • f9be8f8 Add networks store implementation and tests
  • 21586ac Add network routers in account object
  • 6dd6992 Add network routers store implementation
  • 3e621b0 Merge branch 'main' into feature/new-networks-concept
  • 382dba4 Add network resources store implementation

📊 Changes

155 files changed (+13849 additions, -4987 deletions)

View changed files

📝 .github/workflows/golang-test-linux.yml (+1 -1)
📝 .github/workflows/golangci-lint.yml (+2 -2)
📝 client/anonymize/anonymize.go (+7 -8)
📝 client/anonymize/anonymize_test.go (+52 -4)
client/cmd/networks.go (+173 -0)
📝 client/cmd/root.go (+3 -3)
client/cmd/route.go (+0 -174)
📝 client/cmd/status.go (+32 -12)
📝 client/cmd/status_test.go (+25 -3)
📝 client/cmd/testutil_test.go (+4 -2)
client/internal/dns/handler_chain.go (+222 -0)
client/internal/dns/handler_chain_test.go (+511 -0)
📝 client/internal/dns/local.go (+13 -1)
📝 client/internal/dns/mock_server.go (+19 -3)
📝 client/internal/dns/server.go (+84 -20)
📝 client/internal/dns/server_test.go (+89 -2)
📝 client/internal/dns/service_listener.go (+1 -0)
📝 client/internal/dns/upstream.go (+9 -0)
client/internal/dnsfwd/forwarder.go (+157 -0)
client/internal/dnsfwd/manager.go (+106 -0)

...and 80 more files

📄 Description

Describe your changes

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 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/3087 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 12/19/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/new-networks-concept-network-gen-tests` --- ### 📝 Commits (10+) - [`623fcb0`](https://github.com/netbirdio/netbird/commit/623fcb05358ffdfdae77a20d32afc3713dbeb272) [management] Add structs for new networks concept (#3006) - [`eb5798e`](https://github.com/netbirdio/netbird/commit/eb5798e927539016d07bfb92a091792ae0d1bc0e) Migrate networks, network routers and network resource tables - [`0812cc6`](https://github.com/netbirdio/netbird/commit/0812cc61b9e718ba9d7c63d94835c5a5ad238ed5) [management] Add name attr to network resource (#3011) - [`21eca7e`](https://github.com/netbirdio/netbird/commit/21eca7e1d160caa54c833cda7508a84ea207cb56) Merge branch 'feature/new-networks-concept' into add-networks-db-support - [`6a1eda1`](https://github.com/netbirdio/netbird/commit/6a1eda1caa61c28f5eebbb06dac7bd32c4f18e23) Add account networks - [`f9be8f8`](https://github.com/netbirdio/netbird/commit/f9be8f829e091ebe2faabcd24aac94eff2dd8457) Add networks store implementation and tests - [`21586ac`](https://github.com/netbirdio/netbird/commit/21586acc1647c79fb23b01a69ace05ce51e55cdc) Add network routers in account object - [`6dd6992`](https://github.com/netbirdio/netbird/commit/6dd6992415bb6d67b5d1d26ed90a945b12e05330) Add network routers store implementation - [`3e621b0`](https://github.com/netbirdio/netbird/commit/3e621b0fef7d88fc93fcc2727c54963cbacb0a24) Merge branch 'main' into feature/new-networks-concept - [`382dba4`](https://github.com/netbirdio/netbird/commit/382dba4a8526d66d34f7d2096fe09c47ae21f849) Add network resources store implementation ### 📊 Changes **155 files changed** (+13849 additions, -4987 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/golang-test-linux.yml` (+1 -1) 📝 `.github/workflows/golangci-lint.yml` (+2 -2) 📝 `client/anonymize/anonymize.go` (+7 -8) 📝 `client/anonymize/anonymize_test.go` (+52 -4) ➕ `client/cmd/networks.go` (+173 -0) 📝 `client/cmd/root.go` (+3 -3) ➖ `client/cmd/route.go` (+0 -174) 📝 `client/cmd/status.go` (+32 -12) 📝 `client/cmd/status_test.go` (+25 -3) 📝 `client/cmd/testutil_test.go` (+4 -2) ➕ `client/internal/dns/handler_chain.go` (+222 -0) ➕ `client/internal/dns/handler_chain_test.go` (+511 -0) 📝 `client/internal/dns/local.go` (+13 -1) 📝 `client/internal/dns/mock_server.go` (+19 -3) 📝 `client/internal/dns/server.go` (+84 -20) 📝 `client/internal/dns/server_test.go` (+89 -2) 📝 `client/internal/dns/service_listener.go` (+1 -0) 📝 `client/internal/dns/upstream.go` (+9 -0) ➕ `client/internal/dnsfwd/forwarder.go` (+157 -0) ➕ `client/internal/dnsfwd/manager.go` (+106 -0) _...and 80 more files_ </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <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 2026-08-05 05:08:33 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#21472