Skip to content

Add null param check for StandardPodUtils and Unit test#40

Merged
spencergibb merged 1 commit intospring-cloud:masterfrom
bparry02:26-add-unit-test
Jan 30, 2017
Merged

Add null param check for StandardPodUtils and Unit test#40
spencergibb merged 1 commit intospring-cloud:masterfrom
bparry02:26-add-unit-test

Conversation

@bparry02
Copy link
Copy Markdown
Contributor

A small start to #26!

Added a null check in StandardPodUtils, since an instance with a null Kube client would have limited usefulness and we should protect developers from a configuration error. If a developer decides not to use a KubernetesClient, they should probably implement the PodUtils interface and supply an alternate implementation instead of passing null to StandardPodUtils.

Holding off on additional tests for StandardPodUtils for now, since it will be tricky to simulate running inside a pod because of the file system checks, and we can't guarantee that the test is running outside of a pod.

Add unit test for StandardPodUtils
@iocanel
Copy link
Copy Markdown
Contributor

iocanel commented Jan 30, 2017

LGTM

@spencergibb spencergibb merged commit df5078b into spring-cloud:master Jan 30, 2017
@bparry02 bparry02 deleted the 26-add-unit-test branch January 31, 2017 03:36
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.

3 participants