Unit test failure when building 3.37.1 in Debian Buster

Bug #1823131 reported by Thomas Goirand on 2019-04-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.middleware
Undecided
Unassigned

Bug Description

Hi,

While building Stein oslo.middleware in Debian Buster, version 3.37.1, leads to the below unit test failures. Please help me fix this to get Stein in Debian in a better shape.

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_disabled_head
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_disabled_head
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 144, in test_disablefile_disabled_head
    expected_body=b'', method='HEAD')
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 80, in _do_test
    self.assertEqual(expected_code, res.status_int)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 503 != 204

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_two_backends
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_two_backends
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 162, in test_two_backends
    expected_body=b'DISABLED BY FILE\nDISABLED BY FILE')
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 80, in _do_test
    self.assertEqual(expected_code, res.status_int)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 503 != 200

======================================================================
FAIL: oslo_middleware.tests.test_entry_points.TestPasteDeploymentEntryPoints.test_entry_points
oslo_middleware.tests.test_entry_points.TestPasteDeploymentEntryPoints.test_entry_points
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_entry_points.py", line 38, in test_entry_points
    matchers.ContainsAll(factory_classes))
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: Differences: [
'catch_errors' not in []
'correlation_id' not in []
'cors' not in []
'debug' not in []
'healthcheck' not in []
'http_proxy_to_wsgi' not in []
'request_id' not in []
'sizelimit' not in []
'ssl' not in []
]

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_no_disable_by_port_file
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_no_disable_by_port_file
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 180, in test_no_disable_by_port_file
    expected_body=b'OK')
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 81, in _do_test
    self.assertEqual(expected_body, res.body)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: b'OK' != b''

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_enabled
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_enabled
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 112, in test_disablefile_enabled
    self._do_test(conf, expected_body=b'OK')
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 81, in _do_test
    self.assertEqual(expected_body, res.body)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: b'OK' != b''

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_disabled_html_detailed
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_disabled_html_detailed
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 152, in test_disablefile_disabled_html_detailed
    self.assertIn(b'<TD>DISABLED BY FILE</TD>', res.body)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 417, in assertIn
    self.assertThat(haystack, Contains(needle), message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: b'<TD>DISABLED BY FILE</TD>' not in b'<HTML>\n<HEAD><TITLE>Healthcheck Status</TITLE></HEAD>\n<BODY>\n<H1>Server status</H1>\n<B>Server hostname:</B><PRE>buzig2.debian.org</PRE>\n<B>Current time:</B><PRE>2019-04-04 07:55:45.657028</PRE>\n<B>Python version:</B><PRE>3.7.3 (default, Apr 3 2019, 05:39:12) \n[GCC 8.3.0]</PRE>\n<B>Platform:</B><PRE>Linux-4.19.0-4-amd64-x86_64-with-debian-buster-sid</PRE>\n<HR></HR>\n<H2>Garbage collector:</H2>\n<B>Counts:</B><PRE>(91, 2, 1)</PRE>\n<B>Thresholds:</B><PRE>(700, 10, 10)</PRE>\n<HR></HR>\n<H2>Result of 0 checks:</H2>\n<TABLE bgcolor="#ffffff" border="1">\n<TBODY>\n<TR>\n<TH>\nKind\n</TH>\n<TH>\nReason\n</TH>\n<TH>\nDetails\n</TH>\n\n</TR>\n\n</TBODY>\n</TABLE>\n<HR></HR>\n<H2>1 greenthread(s) active:</H2>\n<TABLE bgcolor="#ffffff" border="1">\n<TBODY>\n<TR>\n <TD><PRE> File &#34;/usr/lib/python3.7/runpy.py&#34;, line 193, in _run_module_as_main\n &#34;__main__&#34;, mod_spec)\n File &#34;/usr/lib/python3.7/runpy.py&#34;, line 85, in _run_code\n exec(code, run_globals)\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 149, in &lt;module&gt;\n main()\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 145, in main\n stdout=stdout, exit=False)\n File &#34;/usr/lib/python3/dist-packages/testtools/run.py&#34;, line 187, in __init__\n self.runTests()\n File &#34;/usr/lib/python3/dist-packages/testtools/run.py&#34;, line 221, in runTests\n self.result = testRunner.run(self.test)\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 70, in run\n test(result)\n File &#34;/usr/lib/python3.7/unittest/suite.py&#34;, line 84, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3.7/unittest/suite.py&#34;, line 122, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/case.py&#34;, line 673, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/testtools/testcase.py&#34;, line 671, in run\n return run_test.run(result)\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 80, in run\n return self._run_one(actual_result)\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 94, in _run_one\n return self._run_prepared_result(ExtendedToOriginalDecorator(result))\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 108, in _run_prepared_result\n self._run_core()\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 144, in _run_core\n self.case._run_test_method, self.result):\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 191, in _run_user\n return fn(*args, **kwargs)\n File &#34;/usr/lib/python3/dist-packages/testtools/testcase.py&#34;, line 719, in _run_test_method\n return self._get_test_method()()\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py&#34;, line 151, in test_disablefile_disabled_html_detailed\n res = self._do_test_request(conf, accept=&#34;text/html&#34;)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py&#34;, line 70, in _do_test_request\n res = req.get_response(self.app)\n File &#34;/usr/lib/python3/dist-packages/webob/request.py&#34;, line 1314, in send\n application, catch_exc_info=False)\n File &#34;/usr/lib/python3/dist-packages/webob/request.py&#34;, line 1278, in call_application\n app_iter = application(self.environ, start_response)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 129, in __call__\n resp = self.call_func(req, *args, **kw)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 193, in call_func\n return self.func(req, *args, **kwargs)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/base.py&#34;, line 128, in __call__\n response = self.process_request(req)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 146, in __call__\n return self.call_func(req, *args, **kw)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 193, in call_func\n return self.func(req, *args, **kwargs)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 559, in process_request\n body, content_type = functor(results, healthy)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 538, in _make_html_response\n &#39;greenthreads&#39;: self._get_threadstacks(),\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 442, in _get_threadstacks\n traceback.print_stack(stack, file=buf)\n</PRE></TD>\n</TR>\n</TBODY>\n</TABLE>\n<HR></HR>\n<H2>1 thread(s) active:</H2>\n<TABLE bgcolor="#ffffff" border="1">\n<TBODY>\n<TR>\n <TD><PRE> File &#34;/usr/lib/python3.7/runpy.py&#34;, line 193, in _run_module_as_main\n &#34;__main__&#34;, mod_spec)\n File &#34;/usr/lib/python3.7/runpy.py&#34;, line 85, in _run_code\n exec(code, run_globals)\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 149, in &lt;module&gt;\n main()\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 145, in main\n stdout=stdout, exit=False)\n File &#34;/usr/lib/python3/dist-packages/testtools/run.py&#34;, line 187, in __init__\n self.runTests()\n File &#34;/usr/lib/python3/dist-packages/testtools/run.py&#34;, line 221, in runTests\n self.result = testRunner.run(self.test)\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 70, in run\n test(result)\n File &#34;/usr/lib/python3.7/unittest/suite.py&#34;, line 84, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3.7/unittest/suite.py&#34;, line 122, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/case.py&#34;, line 673, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/testtools/testcase.py&#34;, line 671, in run\n return run_test.run(result)\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 80, in run\n return self._run_one(actual_result)\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 94, in _run_one\n return self._run_prepared_result(ExtendedToOriginalDecorator(result))\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 108, in _run_prepared_result\n self._run_core()\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 144, in _run_core\n self.case._run_test_method, self.result):\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 191, in _run_user\n return fn(*args, **kwargs)\n File &#34;/usr/lib/python3/dist-packages/testtools/testcase.py&#34;, line 719, in _run_test_method\n return self._get_test_method()()\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py&#34;, line 151, in test_disablefile_disabled_html_detailed\n res = self._do_test_request(conf, accept=&#34;text/html&#34;)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py&#34;, line 70, in _do_test_request\n res = req.get_response(self.app)\n File &#34;/usr/lib/python3/dist-packages/webob/request.py&#34;, line 1314, in send\n application, catch_exc_info=False)\n File &#34;/usr/lib/python3/dist-packages/webob/request.py&#34;, line 1278, in call_application\n app_iter = application(self.environ, start_response)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 129, in __call__\n resp = self.call_func(req, *args, **kw)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 193, in call_func\n return self.func(req, *args, **kwargs)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/base.py&#34;, line 128, in __call__\n response = self.process_request(req)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 146, in __call__\n return self.call_func(req, *args, **kw)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 193, in call_func\n return self.func(req, *args, **kwargs)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 559, in process_request\n body, content_type = functor(results, healthy)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 537, in _make_html_response\n &#39;threads&#39;: self._get_threadstacks(),\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 442, in _get_threadstacks\n traceback.print_stack(stack, file=buf)\n</PRE></TD>\n</TR>\n</TBODY>\n</TABLE>\n</BODY>\n</HTML>'

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_unconfigured
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_unconfigured
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 101, in test_disablefile_unconfigured
    self._do_test(conf, expected_body=b'OK')
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 81, in _do_test
    self.assertEqual(expected_body, res.body)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: b'OK' != b''

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disable_by_port_many_files
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disable_by_port_many_files
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 190, in test_disable_by_port_many_files
    expected_body=b'DISABLED BY FILE')
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 80, in _do_test
    self.assertEqual(expected_code, res.status_int)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 503 != 200

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_disabled
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_disabled
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 135, in test_disablefile_disabled
    expected_body=b'DISABLED BY FILE')
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 80, in _do_test
    self.assertEqual(expected_code, res.status_int)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 503 != 200

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disable_by_port_file
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disable_by_port_file
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 171, in test_disable_by_port_file
    expected_body=b'DISABLED BY FILE')
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 80, in _do_test
    self.assertEqual(expected_code, res.status_int)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 503 != 200

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_enabled_html_detailed
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_disablefile_enabled_html_detailed
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 125, in test_disablefile_enabled_html_detailed
    self.assertIn(b'Result of 1 checks:', res.body)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 417, in assertIn
    self.assertThat(haystack, Contains(needle), message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: b'Result of 1 checks:' not in b'<HTML>\n<HEAD><TITLE>Healthcheck Status</TITLE></HEAD>\n<BODY>\n<H1>Server status</H1>\n<B>Server hostname:</B><PRE>buzig2.debian.org</PRE>\n<B>Current time:</B><PRE>2019-04-04 07:55:45.759810</PRE>\n<B>Python version:</B><PRE>3.7.3 (default, Apr 3 2019, 05:39:12) \n[GCC 8.3.0]</PRE>\n<B>Platform:</B><PRE>Linux-4.19.0-4-amd64-x86_64-with-debian-buster-sid</PRE>\n<HR></HR>\n<H2>Garbage collector:</H2>\n<B>Counts:</B><PRE>(142, 0, 1)</PRE>\n<B>Thresholds:</B><PRE>(700, 10, 10)</PRE>\n<HR></HR>\n<H2>Result of 0 checks:</H2>\n<TABLE bgcolor="#ffffff" border="1">\n<TBODY>\n<TR>\n<TH>\nKind\n</TH>\n<TH>\nReason\n</TH>\n<TH>\nDetails\n</TH>\n\n</TR>\n\n</TBODY>\n</TABLE>\n<HR></HR>\n<H2>1 greenthread(s) active:</H2>\n<TABLE bgcolor="#ffffff" border="1">\n<TBODY>\n<TR>\n <TD><PRE> File &#34;/usr/lib/python3.7/runpy.py&#34;, line 193, in _run_module_as_main\n &#34;__main__&#34;, mod_spec)\n File &#34;/usr/lib/python3.7/runpy.py&#34;, line 85, in _run_code\n exec(code, run_globals)\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 149, in &lt;module&gt;\n main()\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 145, in main\n stdout=stdout, exit=False)\n File &#34;/usr/lib/python3/dist-packages/testtools/run.py&#34;, line 187, in __init__\n self.runTests()\n File &#34;/usr/lib/python3/dist-packages/testtools/run.py&#34;, line 221, in runTests\n self.result = testRunner.run(self.test)\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 70, in run\n test(result)\n File &#34;/usr/lib/python3.7/unittest/suite.py&#34;, line 84, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3.7/unittest/suite.py&#34;, line 122, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/case.py&#34;, line 673, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/testtools/testcase.py&#34;, line 671, in run\n return run_test.run(result)\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 80, in run\n return self._run_one(actual_result)\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 94, in _run_one\n return self._run_prepared_result(ExtendedToOriginalDecorator(result))\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 108, in _run_prepared_result\n self._run_core()\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 144, in _run_core\n self.case._run_test_method, self.result):\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 191, in _run_user\n return fn(*args, **kwargs)\n File &#34;/usr/lib/python3/dist-packages/testtools/testcase.py&#34;, line 719, in _run_test_method\n return self._get_test_method()()\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py&#34;, line 124, in test_disablefile_enabled_html_detailed\n res = self._do_test_request(conf, accept=&#34;text/html&#34;)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py&#34;, line 70, in _do_test_request\n res = req.get_response(self.app)\n File &#34;/usr/lib/python3/dist-packages/webob/request.py&#34;, line 1314, in send\n application, catch_exc_info=False)\n File &#34;/usr/lib/python3/dist-packages/webob/request.py&#34;, line 1278, in call_application\n app_iter = application(self.environ, start_response)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 129, in __call__\n resp = self.call_func(req, *args, **kw)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 193, in call_func\n return self.func(req, *args, **kwargs)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/base.py&#34;, line 128, in __call__\n response = self.process_request(req)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 146, in __call__\n return self.call_func(req, *args, **kw)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 193, in call_func\n return self.func(req, *args, **kwargs)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 559, in process_request\n body, content_type = functor(results, healthy)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 538, in _make_html_response\n &#39;greenthreads&#39;: self._get_threadstacks(),\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 442, in _get_threadstacks\n traceback.print_stack(stack, file=buf)\n</PRE></TD>\n</TR>\n</TBODY>\n</TABLE>\n<HR></HR>\n<H2>1 thread(s) active:</H2>\n<TABLE bgcolor="#ffffff" border="1">\n<TBODY>\n<TR>\n <TD><PRE> File &#34;/usr/lib/python3.7/runpy.py&#34;, line 193, in _run_module_as_main\n &#34;__main__&#34;, mod_spec)\n File &#34;/usr/lib/python3.7/runpy.py&#34;, line 85, in _run_code\n exec(code, run_globals)\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 149, in &lt;module&gt;\n main()\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 145, in main\n stdout=stdout, exit=False)\n File &#34;/usr/lib/python3/dist-packages/testtools/run.py&#34;, line 187, in __init__\n self.runTests()\n File &#34;/usr/lib/python3/dist-packages/testtools/run.py&#34;, line 221, in runTests\n self.result = testRunner.run(self.test)\n File &#34;/usr/lib/python3/dist-packages/subunit/run.py&#34;, line 70, in run\n test(result)\n File &#34;/usr/lib/python3.7/unittest/suite.py&#34;, line 84, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3.7/unittest/suite.py&#34;, line 122, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 87, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/unittest2/suite.py&#34;, line 126, in run\n test(result)\n File &#34;/usr/lib/python3/dist-packages/unittest2/case.py&#34;, line 673, in __call__\n return self.run(*args, **kwds)\n File &#34;/usr/lib/python3/dist-packages/testtools/testcase.py&#34;, line 671, in run\n return run_test.run(result)\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 80, in run\n return self._run_one(actual_result)\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 94, in _run_one\n return self._run_prepared_result(ExtendedToOriginalDecorator(result))\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 108, in _run_prepared_result\n self._run_core()\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 144, in _run_core\n self.case._run_test_method, self.result):\n File &#34;/usr/lib/python3/dist-packages/testtools/runtest.py&#34;, line 191, in _run_user\n return fn(*args, **kwargs)\n File &#34;/usr/lib/python3/dist-packages/testtools/testcase.py&#34;, line 719, in _run_test_method\n return self._get_test_method()()\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py&#34;, line 124, in test_disablefile_enabled_html_detailed\n res = self._do_test_request(conf, accept=&#34;text/html&#34;)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py&#34;, line 70, in _do_test_request\n res = req.get_response(self.app)\n File &#34;/usr/lib/python3/dist-packages/webob/request.py&#34;, line 1314, in send\n application, catch_exc_info=False)\n File &#34;/usr/lib/python3/dist-packages/webob/request.py&#34;, line 1278, in call_application\n app_iter = application(self.environ, start_response)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 129, in __call__\n resp = self.call_func(req, *args, **kw)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 193, in call_func\n return self.func(req, *args, **kwargs)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/base.py&#34;, line 128, in __call__\n response = self.process_request(req)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 146, in __call__\n return self.call_func(req, *args, **kw)\n File &#34;/usr/lib/python3/dist-packages/webob/dec.py&#34;, line 193, in call_func\n return self.func(req, *args, **kwargs)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 559, in process_request\n body, content_type = functor(results, healthy)\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 537, in _make_html_response\n &#39;threads&#39;: self._get_threadstacks(),\n File &#34;/<<PKGBUILDDIR>>/oslo_middleware/healthcheck/__init__.py&#34;, line 442, in _get_threadstacks\n traceback.print_stack(stack, file=buf)\n</PRE></TD>\n</TR>\n</TBODY>\n</TABLE>\n</BODY>\n</HTML>'

Thomas Goirand (thomas-goirand) wrote :
Download full text (6.0 KiB)

Finally, I'm down to only a single issue, and that's probably one of the only remaining problems I have in Stein:

======================================================================
FAIL: oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_json_response
oslo_middleware.tests.test_healthcheck.HealthcheckTests.test_json_response
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 202, in test_json_response
    accept='application/json')
  File "/<<PKGBUILDDIR>>/oslo_middleware/tests/test_healthcheck.py", line 81, in _do_test
    self.assertEqual(expected_body, res.body)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = b'''\
{
    "detailed": false,
    "reasons": []
}'''
actual = b'''\
{
    "detailed": true,
    "gc": {
        "counts": [
            98,
            0,
            1
        ],
        "threshold": [
            700,
            10,
            10
        ]
    },
    "greenthreads": [],
    "now": "2019-04-05 22:12:12.946896",
    "platform": "Linux-4.19.0-4-amd64-x86_64-with-debian-buster-sid",
    "python_version": "3.7.3 (default, Apr 3 2019, 05:39:12) \\n[GCC 8.3.0]",
    "reasons": [],
    "threads": [
        " File \\"/usr/lib/python3.7/runpy.py\\", line 193, in _run_module_as_main\\n \\"__main__\\", mod_spec)\\n File \\"/usr/lib/python3.7/runpy.py\\", line 85, in _run_code\\n exec(code, run_globals)\\n File \\"/usr/lib/python3/dist-packages/subunit/run.py\\", line 149, in <module>\\n main()\\n File \\"/usr/lib/python3/dist-packages/subunit/run.py\\", line 145, in main\\n stdout=stdout, exit=False)\\n File \\"/usr/lib/python3/dist-packages/testtools/run.py\\", line 187, in __init__\\n self.runTests()\\n File \\"/usr/lib/python3/dist-packages/testtools/run.py\\", line 221, in runTests\\n self.result = testRunner.run(self.test)\\n File \\"/usr/lib/python3/dist-packages/subunit/run.py\\", line 70, in run\\n test(result)\\n File \\"/usr/lib/python3.7/unittest/suite.py\\", line 84, in __call__\\n return self.run(*args, **kwds)\\n File \\"/usr/lib/python3.7/unittest/suite.py\\", line 122, in run\\n test(result)\\n File \\"/usr/lib/python3/dist-packages/unittest2/suite.py\\", line 87, in __call__\\n return self.run(*args, **kwds)\\n File \\"/usr/lib/python3/dist-packages/unittest2/suite.py\\", line 126, in run\\n test(result)\\n File \\"/usr/lib/python3/dist-packages/unittest2/suite.py\\", line 87, in __call__\\n return self.run(*args, **kwds)\\n File \\"/usr/lib/python3/dist-packages/unittest2/suite.py\\", line 126, in run\\n test(result)\\n File \\"/usr/lib/python3/dist-packages/unittest2/suite.py\\", line 87, in __call__\\n return self.run(*args, **kwds)\\n File \\"/usr/lib/python3/dist-packages/unittest2/suite.py\\", line 126, in run\\n test(result)\\n ...

Read more...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers