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

Add more k8s tests #3491

Merged
merged 3 commits into from Jun 19, 2018
Merged

Add more k8s tests #3491

merged 3 commits into from Jun 19, 2018

Conversation

dtomcej
Copy link
Contributor

@dtomcej dtomcej commented Jun 13, 2018

What does this PR do?

Add and fix existing k8s tests

Motivation

More people using k8s, better tests to assist with refactoring

More

  • Added/updated tests

Copy link
Contributor

@errm errm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

os.Setenv("KUBERNETES_SERVICE_HOST", "localhost")
os.Setenv("KUBERNETES_SERVICE_PORT", "443")
_, err := p.newK8sClient("")
os.Clearenv()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about defering the cleanup right after we have set up the custom environment (i.e., right after line 2229)? This would protect us from p.newK8sClient messing up and leaving our fixture in place longer than expected.

Similar below.

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐯

@ldez ldez removed the bot/no-merge label Jun 15, 2018
Copy link
Contributor

@timoreimann timoreimann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants