Allow non-interactive exec on ACI

If the request is for a non-interactive exec we don't attach the stdin
when executing.
This commit is contained in:
Djordje Lukic 2020-07-08 14:31:27 +02:00
parent ffd815da64
commit ef2d304762
8 changed files with 75 additions and 42 deletions

View file

@ -105,6 +105,9 @@ func (s *E2eACISuite) TestACIRunSingleContainer() {
})
s.Step("exec command", func() {
output := s.NewDockerCommand("exec", testContainerName, "pwd").ExecOrDie()
Expect(output).To(ContainSubstring("/"))
_, err := s.NewDockerCommand("exec", testContainerName, "echo", "fail_with_argument").Exec()
Expect(err.Error()).To(ContainSubstring("ACI exec command does not accept arguments to the command. " +
"Only the binary should be specified"))