Skip to content

test(k8s): test k8s/ through public interface over edge fakes - #2844

Merged
dan-petty merged 1 commit into
mainfrom
test/1322-k8s-edge-fakes
Oct 31, 2026
Merged

dan-petty merged 1 commit into
mainfrom
test/1322-k8s-edge-fakes

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

All tests under tests/k8s/ now exercise k8s through its public interface. Cluster calls use KubernetesService over FakeCluster, subprocess execution uses ProcessFake, HTTP calls use HTTP test doubles, and secret lookups use the in-memory KeyringStore. Internal patches on devops_cli modules and private imports from devops_cli are removed.

Closes #1322

@dan-petty dan-petty added type/test Type test: a new or changed test scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Oct 31, 2026
@dan-petty dan-petty changed the title test(k8s): k8s/ is tested through its public interface over the Kubernetes API, process, HTTP and keyring fakes test(k8s): test k8s/ through public interface over edge fakes Oct 31, 2026
@dan-petty
dan-petty force-pushed the test/1322-k8s-edge-fakes branch 3 times, most recently from 5582ad9 to 5f8ca80 Compare October 31, 2026 07:09
@dan-petty
dan-petty marked this pull request as ready for review October 31, 2026 07:15
All tests under tests/k8s/ now exercise k8s through its public interface. Cluster calls use KubernetesService over FakeCluster, subprocess execution uses ProcessFake, HTTP calls use HTTP test doubles, and secret lookups use the in-memory KeyringStore. Internal patches on devops_cli modules and private imports from devops_cli are removed.

Closes #1322
@dan-petty
dan-petty force-pushed the test/1322-k8s-edge-fakes branch from 5f8ca80 to ff2b040 Compare October 31, 2026 11:43
@dan-petty
dan-petty merged commit 29aa8c2 into main Oct 31, 2026
19 checks passed
@dan-petty
dan-petty deleted the test/1322-k8s-edge-fakes branch October 31, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/test Type test: a new or changed test

Projects

None yet

1 participant