[PR #24] [MERGED] Add a DestroyNamespace command and tests for the Namespace functions. #1206

Closed
opened 2025-12-29 02:29:13 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/24
Author: @cure
Created: 5/9/2021
Status: Merged
Merged: 5/9/2021
Merged by: @juanfont

Base: mainHead: add-destroy-namespace-command


📝 Commits (1)

  • b20b664 Add a DestroyNamespace command and tests for the Namespace functions.

📊 Changes

6 files changed (+175 additions, -44 deletions)

View changed files

app_test.go (+52 -0)
📝 cmd/headscale/cli/namespaces.go (+28 -0)
📝 cmd/headscale/headscale.go (+1 -0)
📝 namespaces.go (+37 -3)
namespaces_test.go (+57 -0)
📝 preauth_keys_test.go (+0 -41)

📄 Description

This also reorganizes the test infrastructure a bit, moving the shared functions to app_test.go


🔄 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/juanfont/headscale/pull/24 **Author:** [@cure](https://github.com/cure) **Created:** 5/9/2021 **Status:** ✅ Merged **Merged:** 5/9/2021 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `add-destroy-namespace-command` --- ### 📝 Commits (1) - [`b20b664`](https://github.com/juanfont/headscale/commit/b20b6643535739337996c5a3ef756c0c06e75110) Add a DestroyNamespace command and tests for the Namespace functions. ### 📊 Changes **6 files changed** (+175 additions, -44 deletions) <details> <summary>View changed files</summary> ➕ `app_test.go` (+52 -0) 📝 `cmd/headscale/cli/namespaces.go` (+28 -0) 📝 `cmd/headscale/headscale.go` (+1 -0) 📝 `namespaces.go` (+37 -3) ➕ `namespaces_test.go` (+57 -0) 📝 `preauth_keys_test.go` (+0 -41) </details> ### 📄 Description This also reorganizes the test infrastructure a bit, moving the shared functions to app_test.go --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 02:29:13 +01:00
adam closed this issue 2025-12-29 02:29:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1206