mirror of
https://github.com/docker/compose.git
synced 2026-08-31 23:03:55 +00:00
Merge pull request #356 from docker/fix-non-interactive
Add check on exec looking for arguments
This commit is contained in:
commit
16acc36033
3 changed files with 31 additions and 0 deletions
|
|
@ -150,6 +150,15 @@ func (s *E2eACISuite) TestACIBackend() {
|
|||
Expect(output).To(ContainSubstring("GET"))
|
||||
})
|
||||
|
||||
s.T().Run("exec command", func(t *testing.T) {
|
||||
output := s.NewDockerCommand("exec", testContainerName, "pwd").ExecOrDie()
|
||||
Expect(output).To(ContainSubstring("/"))
|
||||
|
||||
output = s.NewDockerCommand("exec", testContainerName, "echo", "fail_with_argument").ExecOrDie()
|
||||
Expect(output).To(ContainSubstring("ACI exec command does not accept arguments to the command. " +
|
||||
"Only the binary should be specified"))
|
||||
})
|
||||
|
||||
s.T().Run("follow logs from nginx", func(t *testing.T) {
|
||||
timeChan := make(chan time.Time)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue