Opened 10 years ago

Closed 10 years ago

#157 closed defect (fixed)

failing cmdctl_test.py tests

Reported by: jreed Owned by:
Priority: medium Milestone:
Component: Unclassified Version:
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity:
Sub-Project: Feature Depending on Ticket:
Estimated Difficulty: Add Hours to Ticket:
Total Hours: Internal?:

Description

make  check-local
for pytest in cmdctl_test.py ; do  echo Running test: $pytest ;  env 
PYTHONPATH=/home/reed/work/isc/bind10/svn/trunk/src/lib/python:/home/reed/work/isc/bind10/svn/trunk/src/bin/cmdctl  
/usr/pkg/bin/python3.1 $pytest ;  done
Running test: cmdctl_test.py
............E.E...
======================================================================
ERROR: test_handle_post_request (__main__.TestSecureHTTPRequestHandler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "cmdctl_test.py", line 228, in test_handle_post_request
    rcode, reply = self.handler._handle_post_request()
  File "/home/reed/work/isc/bind10/svn/trunk/src/bin/cmdctl/cmdctl.py", 
line 200, in _handle_post_request
    if self.server._verbose:
AttributeError: 'MySecureHTTPServer' object has no attribute '_verbose'

======================================================================
ERROR: test_handle_post_request_2 
(__main__.TestSecureHTTPRequestHandler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "cmdctl_test.py", line 249, in test_handle_post_request_2
    rcode, reply = self.handler._handle_post_request()
  File "/home/reed/work/isc/bind10/svn/trunk/src/bin/cmdctl/cmdctl.py", 
line 200, in _handle_post_request
    if self.server._verbose:
AttributeError: 'MySecureHTTPServer' object has no attribute '_verbose'

----------------------------------------------------------------------
Ran 18 tests in 0.025s

FAILED (errors=2)
*** Error code 1

Stop.
make: stopped in 
/home/reed/work/isc/bind10/svn/trunk/src/bin/cmdctl/tests
*** Error code 1

Subtickets

Change History (1)

comment:1 Changed 10 years ago by jreed

  • Resolution set to fixed
  • Status changed from new to closed

Was fixed in r1768.

Worked for me. I re-enabled the test in the Makefile.am.

Closing ticket.

Note: See TracTickets for help on using tickets.