Skip to content

Send connection upgrade headers - #1124

Closed
dgageot wants to merge 2 commits into
docker:masterfrom
dgageot:fix-1123
Closed

dgageot wants to merge 2 commits into
docker:masterfrom
dgageot:fix-1123

Conversation

@dgageot

@dgageot dgageot commented Jul 8, 2016 •

Copy link
Copy Markdown
Member

@bfirsh

bfirsh commented Jul 8, 2016

Copy link
Copy Markdown
Contributor

Looks like this is sending it as part of the request payload rather than as header. You probably want to pass it as a headers argument to _post_json.

@dgageot

dgageot commented Jul 8, 2016

Copy link
Copy Markdown
Member Author

@bfirsh sure...

@dgageot

dgageot commented Jul 8, 2016

Copy link
Copy Markdown
Member Author

@bfirsh should be better now

@shin-

shin- commented Jul 8, 2016

Copy link
Copy Markdown
Contributor

I suppose we need some client-side code to handle the change of protocol?

The Connection Aborted issue only happens when we're executing the tests from inside a container, this is what I get running locally.

$ py.test tests/integration/exec_test.py 
============================= test session starts ==============================
platform linux2 -- Python 2.7.9 -- py-1.4.30 -- pytest-2.7.2
rootdir: /home/joffrey/work/pydocker, inifile: pytest.ini
plugins: cov
collected 7 items 

tests/integration/exec_test.py FFFF..F

=================================== FAILURES ===================================
______________________ ExecTest.test_exec_command_as_root ______________________
tests/integration/exec_test.py:74: in test_exec_command_as_root
    self.assertEqual(exec_log, b'root\n')
E   AssertionError: '' != 'root\n'
______________________ ExecTest.test_exec_command_as_user ______________________
tests/integration/exec_test.py:58: in test_exec_command_as_user
    self.assertEqual(exec_log, b'default\n')
E   AssertionError: '' != 'default\n'
_____________________ ExecTest.test_exec_command_streaming _____________________
tests/integration/exec_test.py:92: in test_exec_command_streaming
    self.assertEqual(res, b'hello\nworld\n')
E   AssertionError: '' != 'hello\nworld\n'
______________________ ExecTest.test_exec_command_string _______________________
tests/integration/exec_test.py:42: in test_exec_command_string
    self.assertEqual(exec_log, b'hello world\n')
E   AssertionError: '' != 'hello world\n'
________________________ ExecTest.test_execute_command _________________________
tests/integration/exec_test.py:26: in test_execute_command
    self.assertEqual(s, b'hello\n')
E   AssertionError: '' != 'hello\n'

@shin- shin- mentioned this pull request Jul 8, 2016
@dgageot

dgageot commented Jul 9, 2016

Copy link
Copy Markdown
Member Author

Closing in favor of #1126

@dgageot dgageot closed this Jul 9, 2016
@aanand aanand mentioned this pull request Jul 13, 2016
@shin- shin- added this to the 1.10.0 milestone Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants