feat: add unset-testing subcommand #7

Merged
benvin merged 1 commits from benvin/encapic-unset-testing into benvin/encapic-init-help 2026-11-08 17:37:59 +11:00
Member

set-testing pins a node to testing, but the only way back is the next terragrunt-enc apply, so the host stays in testing until then.

  • add encapic unset-testing <certname> calling DELETE /api/v1/nodes/<certname>/environment/testing and printing the restored environment
  • share the Vault-JWT request path between set-testing and unset-testing
  • add unset-testing to help, bash/zsh completion and README

Requires unkin/encapi#11 deployed.

set-testing pins a node to `testing`, but the only way back is the next terragrunt-enc apply, so the host stays in `testing` until then. - add `encapic unset-testing <certname>` calling `DELETE /api/v1/nodes/<certname>/environment/testing` and printing the restored environment - share the Vault-JWT request path between set-testing and unset-testing - add unset-testing to help, bash/zsh completion and README Requires unkin/encapi#11 deployed.
unkin-agent added 1 commit 2026-11-08 17:27:15 +11:00
feat: add unset-testing to restore a node's pre-testing environment
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
d2e9e42e20
Author
Member
  • nit: settesting.go:70 — Content-Type is now conditional on a body but no test asserts it (fakeEncapi ignores headers) → record Content-Type in seenPut and assert application/json for set-testing, empty for unset-testing
- nit: settesting.go:70 — Content-Type is now conditional on a body but no test asserts it (fakeEncapi ignores headers) → record `Content-Type` in `seenPut` and assert `application/json` for set-testing, empty for unset-testing
benvin merged commit 6e7073a830 into benvin/encapic-init-help 2026-11-08 17:37:59 +11:00
benvin deleted branch benvin/encapic-unset-testing 2026-11-08 17:38:02 +11:00
This repo is archived. You cannot comment on pull requests.