Browse code

I am only seeing the values I set

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)

Dan Walsh authored on 2015/01/13 04:52:44
Showing 1 changed files
... ...
@@ -214,6 +214,7 @@ func TestCommitChange(t *testing.T) {
214 214
 	cmd = exec.Command(dockerBinary, "commit",
215 215
 		"--change", "EXPOSE 8080",
216 216
 		"--change", "ENV DEBUG true",
217
+		"--change", "ENV test 1",
217 218
 		"test", "test-commit")
218 219
 	imageId, _, err := runCommandWithOutput(cmd)
219 220
 	if err != nil {
... ...
@@ -224,7 +225,7 @@ func TestCommitChange(t *testing.T) {
224 224
 
225 225
 	expected := map[string]string{
226 226
 		"Config.ExposedPorts": "map[8080/tcp:map[]]",
227
-		"Config.Env":          "[DEBUG=true PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]",
227
+		"Config.Env":          "[DEBUG=true test=1]",
228 228
 	}
229 229
 
230 230
 	for conf, value := range expected {