Tests failing when ubuntuone-storage-protocol not already installed

Bug #1011666 reported by dobey
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One storage protocol
Status tracked in Trunk
Stable-3-0
Fix Released
Undecided
dobey
Stable-4-0
Fix Released
High
dobey
Trunk
Fix Released
High
dobey
ubuntuone-storage-protocol (Ubuntu)
Fix Released
Undecided
dobey
Precise
Fix Released
Undecided
Unassigned
Quantal
Fix Released
Undecided
dobey

Bug Description

The new certificate context tests are failing when the certs are not installed to the system:

[ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
    result = g.send(result)
  File "/build/buildd/ubuntuone-storage-protocol-4.1+r148/tests/test_context.py", line 152, in test_fails_certificate
    hostname="localhost")
  File "/build/buildd/ubuntuone-storage-protocol-4.1+r148/ubuntuone/storageprotocol/context.py", line 107, in get_ssl_context
    caCerts=get_certificates(), method=SSL.SSLv23_METHOD)
  File "/build/buildd/ubuntuone-storage-protocol-4.1+r148/ubuntuone/storageprotocol/context.py", line 92, in get_certificates
    'UbuntuOne-Go_Daddy_Class_2_CA.pem'), 'r').read())
exceptions.IOError: [Errno 2] No such file or directory: '/etc/ssl/certs/UbuntuOne-Go_Daddy_Class_2_CA.pem'

tests.test_context.SSLContextTestCase.test_fails_certificate

dobey (dobey)
Changed in ubuntuone-storage-protocol (Ubuntu Quantal):
status: New → Triaged
assignee: nobody → Rodney Dawes (dobey)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntuone-storage-protocol - 3.99.0-0ubuntu1

---------------
ubuntuone-storage-protocol (3.99.0-0ubuntu1) quantal; urgency=low

  * New upstream release.
    - Use both the cpp and python protobuf implementations when running
      the test suite. (LP: #988362)
    - Be more strict when validating the SSL certificate. (LP: #882062)
    - CVE-2011-4409
  * 00_fix_tests.patch:
    - Backport patch from upstream trunk to fix tests. (LP: #1011666)
  * debian/control:
    - Update build dependencies for running tests.
    - Remove python-xdg binary dependency as it isn't used any longer.
  * debian/rules:
    - Fix argument ordering for dh.
    - Run the tests when building the package.
  * debian/watch:
    - Update the watch file to use stable-4-0 series for Quantal.
 -- Rodney Dawes <email address hidden> Mon, 11 Jun 2012 15:47:19 -0400

Changed in ubuntuone-storage-protocol (Ubuntu Quantal):
status: Triaged → Fix Released
dobey (dobey)
Changed in ubuntuone-storage-protocol (Ubuntu Precise):
status: New → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Rodney, or anyone else affected,

Accepted ubuntuone-storage-protocol into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/ubuntuone-storage-protocol/3.0.2-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in ubuntuone-storage-protocol (Ubuntu Precise):
status: Triaged → Fix Committed
tags: added: verification-needed
Revision history for this message
dobey (dobey) wrote :

Definitely fixes the tests.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntuone-storage-protocol - 3.0.2-0ubuntu1

---------------
ubuntuone-storage-protocol (3.0.2-0ubuntu1) precise-proposed; urgency=low

  * New upstream release.
    - Include improved patch for SSL cert validation.
    - Include the ValiCert certificate for validation.
    - Allow tests to pass when protocol not already installed. (LP: #1011666)
  * debian/patches:
    - Remove upstreamed patch.
  * debian/watch:
    - Update watch file to use stable-3-0 series for download location.
 -- Rodney Dawes <email address hidden> Mon, 02 Jul 2012 11:30:07 -0400

Changed in ubuntuone-storage-protocol (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.