mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	I am only seeing the values I set
Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
This commit is contained in:
		
							parent
							
								
									17abfc3ddc
								
							
						
					
					
						commit
						4a9fa9650b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -214,6 +214,7 @@ func TestCommitChange(t *testing.T) {
 | 
			
		|||
	cmd = exec.Command(dockerBinary, "commit",
 | 
			
		||||
		"--change", "EXPOSE 8080",
 | 
			
		||||
		"--change", "ENV DEBUG true",
 | 
			
		||||
		"--change", "ENV test 1",
 | 
			
		||||
		"test", "test-commit")
 | 
			
		||||
	imageId, _, err := runCommandWithOutput(cmd)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
| 
						 | 
				
			
			@ -224,7 +225,7 @@ func TestCommitChange(t *testing.T) {
 | 
			
		|||
 | 
			
		||||
	expected := map[string]string{
 | 
			
		||||
		"Config.ExposedPorts": "map[8080/tcp:map[]]",
 | 
			
		||||
		"Config.Env":          "[DEBUG=true PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]",
 | 
			
		||||
		"Config.Env":          "[DEBUG=true test=1]",
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for conf, value := range expected {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue