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

Add test for docker environment variable behavior#1057

Open
mpuncel wants to merge 1 commit intosquare:masterfrom
mpuncel:mpuncel/docker-test
Open

Add test for docker environment variable behavior#1057
mpuncel wants to merge 1 commit intosquare:masterfrom
mpuncel:mpuncel/docker-test

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?

@mpuncel mpuncel force-pushed the mpuncel/docker-test branch from 7102a62 to c38291c Compare February 16, 2019 12:47
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