Skip to content

Add integration test harness#75

Merged
davidnortonjr merged 2 commits into
mainfrom
issue-72-integration-tests
Apr 8, 2026
Merged

Add integration test harness#75
davidnortonjr merged 2 commits into
mainfrom
issue-72-integration-tests

Conversation

@davidnortonjr

Copy link
Copy Markdown
Member

Summary

  • Adds FakeServer — a minimal fake Kubernetes API server built on httptest.Server that handles API discovery endpoints by default and lets tests register additional JSON handlers per path
  • Adds Harness — manages a set of fake servers, generates a kubeconfig pointing each context at its server, and runs commands with stdout captured
  • Adds four integration tests (run with -tags integration) covering: JSON pod list merge across contexts, version output, --exclude filtering, and --include filtering

Closes #72

davidnortonjr and others added 2 commits April 8, 2026 07:10
Closes #72

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Install kubectl on the CI runner and pass -tags integration so the
integration test suite is included in every test run.
@davidnortonjr davidnortonjr merged commit e1b5e33 into main Apr 8, 2026
5 checks passed
@davidnortonjr davidnortonjr deleted the issue-72-integration-tests branch April 8, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

integration tests

1 participant