dotnet-kube-client: Testability - Missing abstraction
Hi,
we really appreciate your lib and want to use it, but we are currently facing some hard times testing our code using your lib. The lib provides no interfaces, which means that we cannot mock your implementations.
As we are developing in a CI environment, we strongly need to provide unittests (not only integrationtests).
Do you think there is a chance to introduce an appropiate level of abstraction, especially for the KubeApiClient and the ResourceClients?
Thanks in advance Andy
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 30 (21 by maintainers)
Commits related to this issue
- Define and implement basic interfaces to improve testability. +semver: minor tintoy/dotnet-kube-client#14 — committed to tintoy/dotnet-kube-client by tintoy 6 years ago
- Add missing doc-comment. tintoy/dotnet-kube-client#14 — committed to tintoy/dotnet-kube-client by tintoy 6 years ago
- Define and implement interfaces for ConfigMapV1, DeploymentV1Beta1, JobV1, and PodV1 resource clients. tintoy/dotnet-kube-client#14 — committed to tintoy/dotnet-kube-client by tintoy 6 years ago
- Define and implement interfaces for PersistentVolume, PersistentVolumeClaim, Secret, and Service resource clients. tintoy/dotnet-kube-client#14 — committed to tintoy/dotnet-kube-client by tintoy 6 years ago
- Enable resolving of both KubeApiClient and IKubeApiClient for dependency injection. tintoy/dotnet-kube-client#14 — committed to tintoy/dotnet-kube-client by tintoy 6 years ago
- Update README to reflect use of interfaces. tintoy/dotnet-kube-client#14 — committed to tintoy/dotnet-kube-client by tintoy 6 years ago
FYI, since you reference the preview version. Netcore 2.1 has been released yesterday.
No problem. Take the time you need. Private life has priority. If you have any comments or change requests, just let me know. Then I can adjust this.
Will do so
Hi tintoy,
of course. Thanks for the fast response. If you need help or suggestions, don’t hesitate to ask.
Cheers, Andy