Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Add test for docker environment variable behavior #1057

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mpuncel
Copy link
Collaborator

@mpuncel mpuncel commented Jun 6, 2018

I felt bad about not writing tests so added some

}

if !contains(envVars, "OVERRIDE=overridden") {
t.Error("expected to find OVERRIDE=overridden in teh environment variables because the launchable one should override the pod one, found %s", envVars)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo teh in each of the three error messages

t.Fatal(err)
}

err = ioutil.WriteFile(filepath.Join(podEnvDir, "OVERRIDE"), []byte("not_overridden"), 0755)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should these file permissions be 0644?

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

Successfully merging this pull request may close these issues.

3 participants