Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/unit tests #53

Merged
merged 4 commits into from
Jul 24, 2017
Merged

Feature/unit tests #53

merged 4 commits into from
Jul 24, 2017

Conversation

alexeyklyukin
Copy link
Contributor

Add more unit tests.

Avoid relying on Clientset structure to call Kubernetes API functions.
While Clientset is a convinient "catch-all" abstraction for calling
REST API related to different Kubernetes objects, it's impossible to
mock. Replacing it wih the kubernetes.Interface would be quite
straightforward, but would require an exra level of mocked interfaces,
because of the versioning. Instead, a new interface is defined, which
contains only the objects we need of the pre-defined versions.

Add one more test.
@coveralls
Copy link

Coverage Status

Coverage increased (+1.9%) to 9.765% when pulling d86cccf on feature/unit_tests into ba6529b on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.9%) to 9.765% when pulling c5e24b3 on feature/unit_tests into ba6529b on master.

@mkabilov
Copy link
Contributor

👍

1 similar comment
@alexeyklyukin
Copy link
Contributor Author

👍

@coveralls
Copy link

Coverage Status

Coverage increased (+1.9%) to 9.581% when pulling 296dbff on feature/unit_tests into 4f36e44 on master.

@alexeyklyukin alexeyklyukin merged commit 4455f1b into master Jul 24, 2017
@alexeyklyukin alexeyklyukin deleted the feature/unit_tests branch August 10, 2017 16:20
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.

None yet

3 participants