Closed Tset-Noitamotua closed 7 years ago
Ah yes. It looks like other tests are being run before hello-world image is downloaded. Have to make sure it's downloaded first.
I have cloned the master branch again. Now I see one behave test fail:
Scenario: restart container # features/3_container_commands.feature:96
Given we have wharfee installed # features/steps/1_basic_commands.py:11 0.006s
When we run wharfee # features/steps/1_basic_commands.py:20 0.002s
And we wait for prompt # features/steps/1_basic_commands.py:28 0.439s
When we run container foo with image busybox and command /bin/sh and options -d -i -t # features/steps/3_container_commands.py:8 0.106s
And we wait for prompt # features/steps/1_basic_commands.py:28 0.002s
Then we see "Interactive terminal is closed" printed out # features/steps/1_basic_commands.py:69 2.757s
When we restart container foo # features/steps/3_container_commands.py:225 0.106s
Then we see foo restarted # features/steps/3_container_commands.py:201 2.092s
Traceback (most recent call last):
File "/Users/ME/.virtualenvs/WHARFEE/lib/python2.7/site-packages/behave/model.py", line 1456, in run
match.run(runner.context)
File "/Users/ME/.virtualenvs/WHARFEE/lib/python2.7/site-packages/behave/model.py", line 1903, in run
self.func(context, *args, **kwargs)
File "features/steps/3_container_commands.py", line 206, in step_see_restarted
wrappers.expect(context, '{0}
'.format(name), 60)
File "/Users/ME/_GITHUB/wharfee/tests/features/steps/wrappers.py", line 17, in expect
handle_exception(context, expected)
File "/Users/ME/_GITHUB/wharfee/tests/features/steps/wrappers.py", line 40, in handle_exception
actual))
Exception: Expected:
---
foo
---
Actual:
---
.
wharfee>
restart foowharfee> restart foo
UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=2)
Goodbye!
---
Exception Exception: Expected:
---
wharfee>
---
Actual:
---
---
Traceback (most recent call last):
File "/Users/ME/.virtualenvs/WHARFEE/bin/behave", line 11, in <module>
sys.exit(main())
File "/Users/ME/.virtualenvs/WHARFEE/lib/python2.7/site-packages/behave/__main__.py", line 109, in main
failed = runner.run()
File "/Users/ME/.virtualenvs/WHARFEE/lib/python2.7/site-packages/behave/runner.py", line 672, in run
return self.run_with_paths()
File "/Users/ME/.virtualenvs/WHARFEE/lib/python2.7/site-packages/behave/runner.py", line 693, in run_with_paths
return self.run_model()
File "/Users/ME/.virtualenvs/WHARFEE/lib/python2.7/site-packages/behave/runner.py", line 483, in run_model
failed = feature.run(self)
File "/Users/ME/.virtualenvs/WHARFEE/lib/python2.7/site-packages/behave/model.py", line 523, in run
failed = scenario.run(runner)
File "/Users/ME/.virtualenvs/WHARFEE/lib/python2.7/site-packages/behave/model.py", line 919, in run
runner.run_hook('after_scenario', runner.context, self)
File "/Users/ME/.virtualenvs/WHARFEE/lib/python2.7/site-packages/behave/runner.py", line 405, in run_hook
self.hooks[name](context, *args)
File "features/environment.py", line 40, in after_scenario
wrappers.expect_exact(context, 'wharfee> ')
File "/Users/ME/_GITHUB/wharfee/tests/features/steps/wrappers.py", line 30, in expect_exact
handle_exception(context, expected)
File "/Users/ME/_GITHUB/wharfee/tests/features/steps/wrappers.py", line 40, in handle_exception
actual))
Exception: Expected:
---
wharfee>
---
Actual:
---
---
Yikes. I noticed before that default timeout of 2s is not enough. Should probably up that. Thanks for the catch!
Those tests are now fixed in master. Container restart seems to be just too slow, so I disabled that.
I see some behave test failing on OS X El Capitan
Unit tests PASSED, just 1 SKIPPED
Cheers Tset