twisted / mantissa

Divmod Mantissa is an application server with a web interface built using Axiom and Nevow.
MIT License
5 stars 10 forks source link

axiomatic `SSLPort` construction test failures #10

Closed mithrandi closed 9 years ago

mithrandi commented 9 years ago

I think the best solution to these failures is to use the feature described in #9, rather than attempting to fix the current implementation strategy.

[FAIL]
Traceback (most recent call last):
  File "/home/mithrandi/code/Mantissa/xmantissa/test/test_port.py", line 1010, in test_createSSLPortWithMethod
    "--factory-identifier", str(factory.storeID)])
  File "/home/mithrandi/code/Mantissa/xmantissa/test/test_port.py", line 484, in assertFailStatus
    exc = self.assertRaises(SystemExit, options.parseOptions, arguments)
  File "/home/mithrandi/deployment/virtualenvs/Mantissa/local/lib/python2.7/site-packages/twisted/trial/_synctest.py", line 429, in assertRaises
    return context._handle(lambda: f(*args, **kwargs))
  File "/home/mithrandi/deployment/virtualenvs/Mantissa/local/lib/python2.7/site-packages/twisted/trial/_synctest.py", line 321, in _handle
    self._returnValue = obj()
  File "/home/mithrandi/deployment/virtualenvs/Mantissa/local/lib/python2.7/site-packages/twisted/trial/_synctest.py", line 359, in __exit__
    self._expectedName, reason.getTraceback()),
twisted.trial.unittest.FailTest: exceptions.AttributeError raised instead of SystemExit:
 Traceback (most recent call last):
  File "/home/mithrandi/code/Mantissa/xmantissa/test/test_port.py", line 1010, in test_createSSLPortWithMethod
    "--factory-identifier", str(factory.storeID)])
  File "/home/mithrandi/code/Mantissa/xmantissa/test/test_port.py", line 484, in assertFailStatus
    exc = self.assertRaises(SystemExit, options.parseOptions, arguments)`SSLPort` te`
  File "/home/mithrandi/deployment/virtualenvs/Mantissa/local/lib/python2.7/site-packages/twisted/trial/_synctest.py", line 429, in assertRaises
    return context._handle(lambda: f(*args, **kwargs))
  File "/home/mithrandi/deployment/virtualenvs/Mantissa/local/lib/python2.7/site-packages/twisted/trial/_synctest.py", line 321, in _handle
    self._returnValue = obj()
--- <exception caught here> ---
  File "/home/mithrandi/deployment/virtualenvs/Mantissa/local/lib/python2.7/site-packages/twisted/trial/_synctest.py", line 321, in _handle
    self._returnValue = obj()
  File "/home/mithrandi/deployment/virtualenvs/Mantissa/local/lib/python2.7/site-packages/twisted/trial/_synctest.py", line 429, in <lambda>
    return context._handle(lambda: f(*args, **kwargs))
  File "/home/mithrandi/deployment/virtualenvs/Mantissa/local/lib/python2.7/site-packages/twisted/python/usage.py", line 267, in parseOptions
    self.subOptions.parseOptions(rest)
  File "/home/mithrandi/deployment/virtualenvs/Mantissa/local/lib/python2.7/site-packages/twisted/python/usage.py", line 277, in parseOptions
    self.postOptions()
  File "/home/mithrandi/code/Mantissa/xmantissa/port.py", line 472, in postOptions
    port = method(store, *args, **kwargs)
  File "/home/mithrandi/code/Mantissa/xmantissa/port.py", line 493, in create_SSL
    key = context.privateKeyFileName
exceptions.AttributeError: 'OpenSSLCertificateOptions' object has no attribute 'privateKeyFileName'