Project

Profile

Help

Issue #1420

closed

Testcase random failure

Added by ipanova@redhat.com over 8 years ago. Updated about 4 years ago.

Status:
CLOSED - WONTFIX
Priority:
High
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Nectar:
master
Platform Release:
Target Release - Nectar:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

when running testsiute for Nectar once in a while there is one test that fails. We need to figure out if is an issue in the nectar functionality or in the testcase itself.

$ nosetests -vs  test/unit/test_threaded_downloader.py
test_build_session (test_threaded_downloader.InstantiationTests) ... ok
test_instantiation (test_threaded_downloader.InstantiationTests) ... ok
test_download_unhandled_exception (test_threaded_downloader.LiveDownloadingTests) ... ::1 - - [16/Dec/2015 14:16:22] "GET / HTTP/1.1" 200 -
<nectar.listener.AggregatingEventListener object at 0x7fec23526a90>
FAIL
test_multiple_downloads (test_threaded_downloader.LiveDownloadingTests) ... ::1 - - [16/Dec/2015 14:16:22] "GET /test/unit/data/100K_file HTTP/1.1" 200 -
::1 - - [16/Dec/2015 14:16:22] "GET /test/unit/data/500K_file HTTP/1.1" 200 -
::1 - - [16/Dec/2015 14:16:22] "GET /test/unit/data/1M_file HTTP/1.1" 200 -
::1 - - [16/Dec/2015 14:16:22] code 404, message File not found
::1 - - [16/Dec/2015 14:16:22] "GET /test/unit/data/notme HTTP/1.1" 404 -
::1 - - [16/Dec/2015 14:16:22] code 404, message File not found
::1 - - [16/Dec/2015 14:16:22] "GET /test/unit/data/notmeeither HTTP/1.1" 404 -
ok
test_single_download_failure (test_threaded_downloader.LiveDownloadingTests) ... ::1 - - [16/Dec/2015 14:16:23] code 404, message File not found
::1 - - [16/Dec/2015 14:16:23] "GET /test/unit/data/idontexistanddontcreateme HTTP/1.1" 404 -
ok
test_single_download_success (test_threaded_downloader.LiveDownloadingTests) ... ::1 - - [16/Dec/2015 14:16:23] "GET /test/unit/data/100K_file HTTP/1.1" 200 -
ok
test_throttling (test_threaded_downloader.LiveDownloadingTests) ... ::1 - - [16/Dec/2015 14:16:24] "GET /test/unit/data/500K_file HTTP/1.1" 200 -
ok
test_calls_fetch (test_threaded_downloader.TestDownloadOne) ... ok
Test that the report state is failed and that the baseurl is not tried again. ... ok
Test that the baseurl is tried again if ConnectionError reason BadStatusLine happened. ... ok
Test that the report state is failed and that the baseurl can be tried again. ... ok
test_normal_content_encoding (test_threaded_downloader.TestFetch) ... ok
test_request_headers (test_threaded_downloader.TestFetch) ... ok
Make sure that whatever headers come back on the response get added ... ok
test_wrong_content_encoding (test_threaded_downloader.TestFetch) ... ok

======================================================================
FAIL: test_download_unhandled_exception (test_threaded_downloader.LiveDownloadingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ipanova/pulp_development/nectar/test/unit/test_threaded_downloader.py", line 171, in test_download_unhandled_exception
    self.assertEqual(len(lst.succeeded_reports), 0)
AssertionError: 1 != 0
-------------------- >> begin captured logging << --------------------
requests.packages.urllib3.connectionpool: INFO: Starting new HTTP connection (1): localhost
requests.packages.urllib3.connectionpool: DEBUG: "GET / HTTP/1.1" 200 1402
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 15 tests in 5.094s

FAILED (failures=1)

I am making this as high priority as this failure prevents us to make a successful build for fedora.
https://kojipkgs.fedoraproject.org//work/tasks/4943/12214943/build.log

Also available in: Atom PDF