Skip to content

Instantly share code, notes, and snippets.

@notmyname
Created September 24, 2014 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notmyname/50d1c39cd4d93686a179 to your computer and use it in GitHub Desktop.
Save notmyname/50d1c39cd4d93686a179 to your computer and use it in GitHub Desktop.
swift@saio:~/python-swiftclient/tests/unit$ nosetests
..........F.FFFF.F...................................................................................................................................
======================================================================
FAIL: tests.unit.test_multithreading.TestOutputManager.test_instantiation
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/swift/python-swiftclient/tests/unit/test_multithreading.py", line 174, in test_instantiation
self.assertEqual(sys.stdout, output_manager.print_stream)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 322, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: !=:
reference = <StringIO.StringIO instance at 0x2dc3c68>
actual = <StringIO.StringIO instance at 0x27a7f38>
======================================================================
FAIL: tests.unit.test_shell.TestKeystoneOptions.test_all_args_passed_to_keystone
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 877, in test_all_args_passed_to_keystone
self._test_options(opts, os_opts, flags=self.flags)
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 867, in _test_options
flags=flags, no_auth=no_auth)
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 836, in _test_options_passed_to_keystone
% (expected, key, actual_args[key]))
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 322, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: 'user' != 'tester': Expected user for key username, found tester
-------------------- >> begin captured logging << --------------------
swiftclient: DEBUG: REQ: curl -i http://example.com:8080/v1/AUTH_acc -I -H "X-Auth-Token: fake_auth_token"
swiftclient: DEBUG: RESP STATUS: 204 Fake
swiftclient: DEBUG: RESP HEADERS: [('last-modified', '1'), ('content-length', 0), ('etag', '"68b329da9893e34099c7d8ad5cb9c940"'), ('x-timestamp', '1'), ('x-object-meta-test', 'testing'), ('x-container-timestamp', '1'), ('x-account-container-count', 12345), ('content-type', 'x-application/test'), ('x-works', 'yes')]
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: tests.unit.test_shell.TestKeystoneOptions.test_catalog_options_and_flags_not_required_v3
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 889, in test_catalog_options_and_flags_not_required_v3
self._test_options(opts, os_opts, flags=None)
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 867, in _test_options
flags=flags, no_auth=no_auth)
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 836, in _test_options_passed_to_keystone
% (expected, key, actual_args[key]))
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 322, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: 'user' != 'tester': Expected user for key username, found tester
-------------------- >> begin captured logging << --------------------
swiftclient: DEBUG: REQ: curl -i http://example.com:8080/v1/AUTH_acc -I -H "X-Auth-Token: fake_auth_token"
swiftclient: DEBUG: RESP STATUS: 204 Fake
swiftclient: DEBUG: RESP HEADERS: [('last-modified', '1'), ('content-length', 0), ('etag', '"68b329da9893e34099c7d8ad5cb9c940"'), ('x-timestamp', '1'), ('x-object-meta-test', 'testing'), ('x-container-timestamp', '1'), ('x-account-container-count', 12345), ('content-type', 'x-application/test'), ('x-works', 'yes')]
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: tests.unit.test_shell.TestKeystoneOptions.test_ok_option_combinations_v2
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 917, in test_ok_option_combinations_v2
self._test_options(opts, os_opts)
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 867, in _test_options
flags=flags, no_auth=no_auth)
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 836, in _test_options_passed_to_keystone
% (expected, key, actual_args[key]))
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 322, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: 'user' != 'tester': Expected user for key username, found tester
-------------------- >> begin captured logging << --------------------
swiftclient: DEBUG: REQ: curl -i http://example.com:8080/v1/AUTH_acc -I -H "X-Auth-Token: fake_auth_token"
swiftclient: DEBUG: RESP STATUS: 204 Fake
swiftclient: DEBUG: RESP HEADERS: [('last-modified', '1'), ('content-length', 0), ('etag', '"68b329da9893e34099c7d8ad5cb9c940"'), ('x-timestamp', '1'), ('x-object-meta-test', 'testing'), ('x-container-timestamp', '1'), ('x-account-container-count', 12345), ('content-type', 'x-application/test'), ('x-works', 'yes')]
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: tests.unit.test_shell.TestKeystoneOptions.test_ok_option_combinations_v3
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 895, in test_ok_option_combinations_v3
self._test_options(opts, os_opts)
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 867, in _test_options
flags=flags, no_auth=no_auth)
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 836, in _test_options_passed_to_keystone
% (expected, key, actual_args[key]))
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 322, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: 'user' != 'tester': Expected user for key username, found tester
-------------------- >> begin captured logging << --------------------
swiftclient: DEBUG: REQ: curl -i http://example.com:8080/v1/AUTH_acc -I -H "X-Auth-Token: fake_auth_token"
swiftclient: DEBUG: RESP STATUS: 204 Fake
swiftclient: DEBUG: RESP HEADERS: [('last-modified', '1'), ('content-length', 0), ('etag', '"68b329da9893e34099c7d8ad5cb9c940"'), ('x-timestamp', '1'), ('x-object-meta-test', 'testing'), ('x-container-timestamp', '1'), ('x-account-container-count', 12345), ('content-type', 'x-application/test'), ('x-works', 'yes')]
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: tests.unit.test_shell.TestKeystoneOptions.test_url_provided_on_command_line
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 952, in test_url_provided_on_command_line
self._test_options(opts, os_opts)
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 867, in _test_options
flags=flags, no_auth=no_auth)
File "/home/swift/python-swiftclient/tests/unit/test_shell.py", line 836, in _test_options_passed_to_keystone
% (expected, key, actual_args[key]))
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 322, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: 'username' != 'tester': Expected username for key username, found tester
-------------------- >> begin captured logging << --------------------
swiftclient: DEBUG: REQ: curl -i http://alternate.com:8080/v1/AUTH_another -I -H "X-Auth-Token: fake_auth_token"
swiftclient: DEBUG: RESP STATUS: 204 Fake
swiftclient: DEBUG: RESP HEADERS: [('last-modified', '1'), ('content-length', 0), ('etag', '"68b329da9893e34099c7d8ad5cb9c940"'), ('x-timestamp', '1'), ('x-object-meta-test', 'testing'), ('x-container-timestamp', '1'), ('x-account-container-count', 12345), ('content-type', 'x-application/test'), ('x-works', 'yes')]
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 149 tests in 6.978s
FAILED (failures=6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment