shaifali

modifyng exception-unit testing error

Sep 23rd, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.16 KB | None | 0 0
  1. submodule = utils.import_versioned_module(version, 'shell')
  2. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  3. return importutils.import_module(module)
  4. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  5. __import__(import_str)
  6. File "glanceclient/v1/__init__.py", line 16, in <module>
  7. from glanceclient.v1.client import Client # noqa
  8. File "glanceclient/v1/client.py", line 18, in <module>
  9. from glanceclient.v1.image_members import ImageMemberManager
  10. File "glanceclient/v1/image_members.py", line 16, in <module>
  11. from glanceclient.openstack.common.apiclient import base
  12. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  13. from glanceclient.openstack.common.apiclient import exceptions
  14. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  15. class HttpError(ClientException):
  16. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  17. message = _("HTTP Error")
  18. NameError: name '_' is not defined
  19. ======================================================================
  20. FAIL: tests.test_shell.ShellTest.test_help_unknown_command
  21. tags: worker-0
  22. ----------------------------------------------------------------------
  23. Traceback (most recent call last):
  24. File "tests/test_shell.py", line 85, in test_help_unknown_command
  25. self.assertRaises(exc.CommandError, shell.main, argstr.split())
  26. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
  27. self.assertThat(our_callable, matcher)
  28. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
  29. mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  30. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
  31. mismatch = matcher.match(matchee)
  32. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  33. mismatch = self.exception_matcher.match(exc_info)
  34. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  35. mismatch = matcher.match(matchee)
  36. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
  37. reraise(*matchee)
  38. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  39. result = matchee()
  40. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
  41. return self._callable_object(*self._args, **self._kwargs)
  42. File "glanceclient/shell.py", line 561, in main
  43. subcommand_parser = self.get_subcommand_parser(api_version)
  44. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  45. submodule = utils.import_versioned_module(version, 'shell')
  46. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  47. return importutils.import_module(module)
  48. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  49. __import__(import_str)
  50. File "glanceclient/v1/__init__.py", line 16, in <module>
  51. from glanceclient.v1.client import Client # noqa
  52. File "glanceclient/v1/client.py", line 18, in <module>
  53. from glanceclient.v1.image_members import ImageMemberManager
  54. File "glanceclient/v1/image_members.py", line 16, in <module>
  55. from glanceclient.openstack.common.apiclient import base
  56. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  57. from glanceclient.openstack.common.apiclient import exceptions
  58. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  59. class HttpError(ClientException):
  60. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  61. message = _("HTTP Error")
  62. NameError: name '_' is not defined
  63. ======================================================================
  64. FAIL: tests.test_shell.ShellTest.test_no_auth_with_token_and_image_url_with_v1
  65. tags: worker-0
  66. ----------------------------------------------------------------------
  67. Traceback (most recent call last):
  68. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1193, in patched
  69. arg = patching.__enter__()
  70. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1252, in __enter__
  71. self.target = self.getter()
  72. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1414, in <lambda>
  73. getter = lambda: _importer(target)
  74. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1102, in _importer
  75. thing = _dot_lookup(thing, comp, import_path)
  76. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1091, in _dot_lookup
  77. __import__(import_path)
  78. File "glanceclient/v1/__init__.py", line 16, in <module>
  79. from glanceclient.v1.client import Client # noqa
  80. File "glanceclient/v1/client.py", line 18, in <module>
  81. from glanceclient.v1.image_members import ImageMemberManager
  82. File "glanceclient/v1/image_members.py", line 16, in <module>
  83. from glanceclient.openstack.common.apiclient import base
  84. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  85. from glanceclient.openstack.common.apiclient import exceptions
  86. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  87. class HttpError(ClientException):
  88. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  89. message = _("HTTP Error")
  90. NameError: name '_' is not defined
  91. ======================================================================
  92. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_api_discovery_failed_with_unversioned_auth_url
  93. tags: worker-0
  94. ----------------------------------------------------------------------
  95. Traceback (most recent call last):
  96. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
  97. return func(*args, **keywargs)
  98. File "tests/test_shell.py", line 286, in test_api_discovery_failed_with_unversioned_auth_url
  99. self.assertRaises(exc.CommandError, glance_shell.main, args.split())
  100. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
  101. self.assertThat(our_callable, matcher)
  102. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
  103. mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  104. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
  105. mismatch = matcher.match(matchee)
  106. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  107. mismatch = self.exception_matcher.match(exc_info)
  108. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  109. mismatch = matcher.match(matchee)
  110. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
  111. reraise(*matchee)
  112. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  113. result = matchee()
  114. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
  115. return self._callable_object(*self._args, **self._kwargs)
  116. File "glanceclient/shell.py", line 561, in main
  117. subcommand_parser = self.get_subcommand_parser(api_version)
  118. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  119. submodule = utils.import_versioned_module(version, 'shell')
  120. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  121. return importutils.import_module(module)
  122. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  123. __import__(import_str)
  124. File "glanceclient/v1/__init__.py", line 16, in <module>
  125. from glanceclient.v1.client import Client # noqa
  126. File "glanceclient/v1/client.py", line 18, in <module>
  127. from glanceclient.v1.image_members import ImageMemberManager
  128. File "glanceclient/v1/image_members.py", line 16, in <module>
  129. from glanceclient.openstack.common.apiclient import base
  130. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  131. from glanceclient.openstack.common.apiclient import exceptions
  132. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  133. class HttpError(ClientException):
  134. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  135. message = _("HTTP Error")
  136. NameError: name '_' is not defined
  137. ======================================================================
  138. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_auth_plugin_invocation_with_unversioned_auth_url_with_v1
  139. tags: worker-0
  140. ----------------------------------------------------------------------
  141. Traceback (most recent call last):
  142. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1193, in patched
  143. arg = patching.__enter__()
  144. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1252, in __enter__
  145. self.target = self.getter()
  146. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1414, in <lambda>
  147. getter = lambda: _importer(target)
  148. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1102, in _importer
  149. thing = _dot_lookup(thing, comp, import_path)
  150. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1091, in _dot_lookup
  151. __import__(import_path)
  152. File "glanceclient/v1/__init__.py", line 16, in <module>
  153. from glanceclient.v1.client import Client # noqa
  154. File "glanceclient/v1/client.py", line 18, in <module>
  155. from glanceclient.v1.image_members import ImageMemberManager
  156. File "glanceclient/v1/image_members.py", line 16, in <module>
  157. from glanceclient.openstack.common.apiclient import base
  158. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  159. from glanceclient.openstack.common.apiclient import exceptions
  160. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  161. class HttpError(ClientException):
  162. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  163. message = _("HTTP Error")
  164. NameError: name '_' is not defined
  165. ======================================================================
  166. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_auth_plugin_invocation_with_v1
  167. tags: worker-0
  168. ----------------------------------------------------------------------
  169. Traceback (most recent call last):
  170. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1193, in patched
  171. arg = patching.__enter__()
  172. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1252, in __enter__
  173. self.target = self.getter()
  174. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1414, in <lambda>
  175. getter = lambda: _importer(target)
  176. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1102, in _importer
  177. thing = _dot_lookup(thing, comp, import_path)
  178. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1091, in _dot_lookup
  179. __import__(import_path)
  180. File "glanceclient/v1/__init__.py", line 16, in <module>
  181. from glanceclient.v1.client import Client # noqa
  182. File "glanceclient/v1/client.py", line 18, in <module>
  183. from glanceclient.v1.image_members import ImageMemberManager
  184. File "glanceclient/v1/image_members.py", line 16, in <module>
  185. from glanceclient.openstack.common.apiclient import base
  186. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  187. from glanceclient.openstack.common.apiclient import exceptions
  188. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  189. class HttpError(ClientException):
  190. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  191. message = _("HTTP Error")
  192. NameError: name '_' is not defined
  193. ======================================================================
  194. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_cert_and_key_args_interchangeable
  195. tags: worker-0
  196. ----------------------------------------------------------------------
  197. Traceback (most recent call last):
  198. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1201, in patched
  199. return func(*args, **keywargs)
  200. File "tests/test_shell.py", line 116, in test_cert_and_key_args_interchangeable
  201. shell(args)
  202. File "tests/test_shell.py", line 75, in <lambda>
  203. shell = lambda cmd: _shell.main(cmd.split())
  204. File "glanceclient/shell.py", line 561, in main
  205. subcommand_parser = self.get_subcommand_parser(api_version)
  206. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  207. submodule = utils.import_versioned_module(version, 'shell')
  208. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  209. return importutils.import_module(module)
  210. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  211. __import__(import_str)
  212. File "glanceclient/v1/__init__.py", line 16, in <module>
  213. from glanceclient.v1.client import Client # noqa
  214. File "glanceclient/v1/client.py", line 18, in <module>
  215. from glanceclient.v1.image_members import ImageMemberManager
  216. File "glanceclient/v1/image_members.py", line 16, in <module>
  217. from glanceclient.openstack.common.apiclient import base
  218. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  219. from glanceclient.openstack.common.apiclient import exceptions
  220. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  221. class HttpError(ClientException):
  222. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  223. message = _("HTTP Error")
  224. NameError: name '_' is not defined
  225. ======================================================================
  226. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_help
  227. tags: worker-0
  228. ----------------------------------------------------------------------
  229. Traceback (most recent call last):
  230. File "tests/test_shell.py", line 90, in test_help
  231. actual = shell.main(argstr.split())
  232. File "glanceclient/shell.py", line 561, in main
  233. subcommand_parser = self.get_subcommand_parser(api_version)
  234. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  235. submodule = utils.import_versioned_module(version, 'shell')
  236. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  237. return importutils.import_module(module)
  238. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  239. __import__(import_str)
  240. File "glanceclient/v1/__init__.py", line 16, in <module>
  241. from glanceclient.v1.client import Client # noqa
  242. File "glanceclient/v1/client.py", line 18, in <module>
  243. from glanceclient.v1.image_members import ImageMemberManager
  244. File "glanceclient/v1/image_members.py", line 16, in <module>
  245. from glanceclient.openstack.common.apiclient import base
  246. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  247. from glanceclient.openstack.common.apiclient import exceptions
  248. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  249. class HttpError(ClientException):
  250. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  251. message = _("HTTP Error")
  252. NameError: name '_' is not defined
  253. ======================================================================
  254. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_help_on_subcommand_error
  255. tags: worker-0
  256. ----------------------------------------------------------------------
  257. Traceback (most recent call last):
  258. File "tests/test_shell.py", line 94, in test_help_on_subcommand_error
  259. self.assertRaises(exc.CommandError, shell, 'help bad')
  260. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
  261. self.assertThat(our_callable, matcher)
  262. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
  263. mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  264. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
  265. mismatch = matcher.match(matchee)
  266. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  267. mismatch = self.exception_matcher.match(exc_info)
  268. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  269. mismatch = matcher.match(matchee)
  270. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
  271. reraise(*matchee)
  272. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  273. result = matchee()
  274. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
  275. return self._callable_object(*self._args, **self._kwargs)
  276. File "tests/test_shell.py", line 75, in <lambda>
  277. shell = lambda cmd: _shell.main(cmd.split())
  278. File "glanceclient/shell.py", line 561, in main
  279. subcommand_parser = self.get_subcommand_parser(api_version)
  280. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  281. submodule = utils.import_versioned_module(version, 'shell')
  282. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  283. return importutils.import_module(module)
  284. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  285. __import__(import_str)
  286. File "glanceclient/v1/__init__.py", line 16, in <module>
  287. from glanceclient.v1.client import Client # noqa
  288. File "glanceclient/v1/client.py", line 18, in <module>
  289. from glanceclient.v1.image_members import ImageMemberManager
  290. File "glanceclient/v1/image_members.py", line 16, in <module>
  291. from glanceclient.openstack.common.apiclient import base
  292. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  293. from glanceclient.openstack.common.apiclient import exceptions
  294. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  295. class HttpError(ClientException):
  296. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  297. message = _("HTTP Error")
  298. NameError: name '_' is not defined
  299. ======================================================================
  300. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_help_unknown_command
  301. tags: worker-0
  302. ----------------------------------------------------------------------
  303. Traceback (most recent call last):
  304. File "tests/test_shell.py", line 85, in test_help_unknown_command
  305. self.assertRaises(exc.CommandError, shell.main, argstr.split())
  306. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
  307. self.assertThat(our_callable, matcher)
  308. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
  309. mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  310. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
  311. mismatch = matcher.match(matchee)
  312. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
  313. mismatch = self.exception_matcher.match(exc_info)
  314. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
  315. mismatch = matcher.match(matchee)
  316. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
  317. reraise(*matchee)
  318. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
  319. result = matchee()
  320. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 965, in __call__
  321. return self._callable_object(*self._args, **self._kwargs)
  322. File "glanceclient/shell.py", line 561, in main
  323. subcommand_parser = self.get_subcommand_parser(api_version)
  324. File "glanceclient/shell.py", line 287, in get_subcommand_parser
  325. submodule = utils.import_versioned_module(version, 'shell')
  326. File "glanceclient/common/utils.py", line 215, in import_versioned_module
  327. return importutils.import_module(module)
  328. File "glanceclient/openstack/common/importutils.py", line 57, in import_module
  329. __import__(import_str)
  330. File "glanceclient/v1/__init__.py", line 16, in <module>
  331. from glanceclient.v1.client import Client # noqa
  332. File "glanceclient/v1/client.py", line 18, in <module>
  333. from glanceclient.v1.image_members import ImageMemberManager
  334. File "glanceclient/v1/image_members.py", line 16, in <module>
  335. from glanceclient.openstack.common.apiclient import base
  336. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  337. from glanceclient.openstack.common.apiclient import exceptions
  338. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  339. class HttpError(ClientException):
  340. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  341. message = _("HTTP Error")
  342. NameError: name '_' is not defined
  343. ======================================================================
  344. FAIL: tests.test_shell.ShellTestWithKeystoneV3Auth.test_no_auth_with_token_and_image_url_with_v1
  345. tags: worker-0
  346. ----------------------------------------------------------------------
  347. Traceback (most recent call last):
  348. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1193, in patched
  349. arg = patching.__enter__()
  350. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1252, in __enter__
  351. self.target = self.getter()
  352. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1414, in <lambda>
  353. getter = lambda: _importer(target)
  354. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2Schema is not a valid JSON object.
  355. No metadata definition namespace passed via stdin or --file argument.
  356. Schema is not a valid JSON object.
  357. Property MyProperty not found in object MyObject.
  358. Schema is not a valid JSON object.
  359. Schema is not a valid JSON object.
  360. Schema is not a valid JSON object.
  361. .7/site-packages/mock.py", line 1102, in _importer
  362. thing = _dot_lookup(thing, comp, import_path)
  363. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1091, in _dot_lookup
  364. __import__(import_path)
  365. File "glanceclient/v1/__init__.py", line 16, in <module>
  366. from glanceclient.v1.client import Client # noqa
  367. File "glanceclient/v1/client.py", line 18, in <module>
  368. from glanceclient.v1.image_members import ImageMemberManager
  369. File "glanceclient/v1/image_members.py", line 16, in <module>
  370. from glanceclient.openstack.common.apiclient import base
  371. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  372. from glanceclient.openstack.common.apiclient import exceptions
  373. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  374. class HttpError(ClientException):
  375. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  376. message = _("HTTP Error")
  377. NameError: name '_' is not defined
  378. ======================================================================
  379. FAIL: unittest.loader.ModuleImportFailure.tests.test_base
  380. tags: worker-0
  381. ----------------------------------------------------------------------
  382. Traceback (most recent call last):
  383. ImportError: Failed to import test module: tests.test_base
  384. Traceback (most recent call last):
  385. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  386. module = self._get_module_from_name(name)
  387. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  388. __import__(name)
  389. File "tests/test_base.py", line 19, in <module>
  390. from glanceclient.openstack.common.apiclient import base
  391. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  392. from glanceclient.openstack.common.apiclient import exceptions
  393. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  394. class HttpError(ClientException):
  395. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  396. message = _("HTTP Error")
  397. NameError: name '_' is not defined
  398. ======================================================================
  399. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_client
  400. tags: worker-0
  401. ----------------------------------------------------------------------
  402. Traceback (most recent call last):
  403. ImportError: Failed to import test module: tests.v1.test_client
  404. Traceback (most recent call last):
  405. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  406. module = self._get_module_from_name(name)
  407. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  408. __import__(name)
  409. File "tests/v1/test_client.py", line 18, in <module>
  410. from glanceclient.v1 import client
  411. File "glanceclient/v1/__init__.py", line 16, in <module>
  412. from glanceclient.v1.client import Client # noqa
  413. File "glanceclient/v1/client.py", line 18, in <module>
  414. from glanceclient.v1.image_members import ImageMemberManager
  415. File "glanceclient/v1/image_members.py", line 16, in <module>
  416. from glanceclient.openstack.common.apiclient import base
  417. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  418. from glanceclient.openstack.common.apiclient import exceptions
  419. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  420. class HttpError(ClientException):
  421. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  422. message = _("HTTP Error")
  423. NameError: name '_' is not defined
  424. ======================================================================
  425. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_image_members
  426. tags: worker-0
  427. ----------------------------------------------------------------------
  428. Traceback (most recent call last):
  429. ImportError: Failed to import test module: tests.v1.test_image_members
  430. Traceback (most recent call last):
  431. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  432. module = self._get_module_from_name(name)
  433. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  434. __import__(name)
  435. File "tests/v1/test_image_members.py", line 18, in <module>
  436. import glanceclient.v1.image_members
  437. File "glanceclient/v1/__init__.py", line 16, in <module>
  438. from glanceclient.v1.client import Client # noqa
  439. File "glanceclient/v1/client.py", line 18, in <module>
  440. from glanceclient.v1.image_members import ImageMemberManager
  441. File "glanceclient/v1/image_members.py", line 16, in <module>
  442. from glanceclient.openstack.common.apiclient import base
  443. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  444. from glanceclient.openstack.common.apiclient import exceptions
  445. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  446. class HttpError(ClientException):
  447. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  448. message = _("HTTP Error")
  449. NameError: name '_' is not defined
  450. ======================================================================
  451. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_images
  452. tags: worker-0
  453. ----------------------------------------------------------------------
  454. Traceback (most recent call last):
  455. ImportError: Failed to import test module: tests.v1.test_images
  456. Traceback (most recent call last):
  457. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  458. module = self._get_module_from_name(name)
  459. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  460. __import__(name)
  461. File "tests/v1/test_images.py", line 23, in <module>
  462. from glanceclient.v1 import client
  463. File "glanceclient/v1/__init__.py", line 16, in <module>
  464. from glanceclient.v1.client import Client # noqa
  465. File "glanceclient/v1/client.py", line 18, in <module>
  466. from glanceclient.v1.image_members import ImageMemberManager
  467. File "glanceclient/v1/image_members.py", line 16, in <module>
  468. from glanceclient.openstack.common.apiclient import base
  469. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  470. from glanceclient.openstack.common.apiclient import exceptions
  471. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  472. class HttpError(ClientException):
  473. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  474. message = _("HTTP Error")
  475. NameError: name '_' is not defined
  476. ======================================================================
  477. FAIL: unittest.loader.ModuleImportFailure.tests.v1.test_shell
  478. tags: worker-0
  479. ----------------------------------------------------------------------
  480. Traceback (most recent call last):
  481. ImportError: Failed to import test module: tests.v1.test_shell
  482. Traceback (most recent call last):
  483. File "/opt/stack/python-glanceclient/.tox/py27/local/lib/python2.7/site-packages/testtools/run.py", line 472, in _find_tests
  484. module = self._get_module_from_name(name)
  485. File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name
  486. __import__(name)
  487. File "tests/v1/test_shell.py", line 30, in <module>
  488. import glanceclient.v1.client as client
  489. File "glanceclient/v1/__init__.py", line 16, in <module>
  490. from glanceclient.v1.client import Client # noqa
  491. File "glanceclient/v1/client.py", line 18, in <module>
  492. from glanceclient.v1.image_members import ImageMemberManager
  493. File "glanceclient/v1/image_members.py", line 16, in <module>
  494. from glanceclient.openstack.common.apiclient import base
  495. File "glanceclient/openstack/common/apiclient/base.py", line 32, in <module>
  496. from glanceclient.openstack.common.apiclient import exceptions
  497. File "glanceclient/openstack/common/apiclient/exceptions.py", line 108, in <module>
  498. class HttpError(ClientException):
  499. File "glanceclient/openstack/common/apiclient/exceptions.py", line 112, in HttpError
  500. message = _("HTTP Error")
  501. NameError: name '_' is not defined
  502. Ran 222 (-71) tests in 1.521s (-2.587s)
  503. FAILED (id=1, failures=20 (+20))
  504. error: testr failed (1)
  505. ERROR: InvocationError: '/opt/stack/python-glanceclient/.tox/py27/bin/python setup.py testr --testr-args='
  506. ___________________________________ summary ____________________________________
  507. ERROR: py27: commands failed
  508. openstack@ubuntu:/opt/stack/python-glanceclient$
Advertisement
Add Comment
Please, Sign In to add comment