You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Gordon Sim (JIRA)" <qp...@incubator.apache.org> on 2009/01/09 16:40:59 UTC

[jira] Updated: (QPID-1562) Better separation of 0-10 and 0-8/0-9 support in test framework

     [ https://issues.apache.org/jira/browse/QPID-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gordon Sim updated QPID-1562:
-----------------------------

    Priority: Minor  (was: Major)
     Summary: Better separation of 0-10 and 0-8/0-9 support in test framework  (was: Codegen requires presence of an 0-10 spec)

Changed title to reflect root cause, namely that the test framework imports both 0-8 and 0-10 APIs and now the import of the 0-10 APIs trigger code generation which requires a valid 0-10 format spec.

> Better separation of 0-10 and 0-8/0-9 support in test framework
> ---------------------------------------------------------------
>
>                 Key: QPID-1562
>                 URL: https://issues.apache.org/jira/browse/QPID-1562
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client
>    Affects Versions: M4
>            Reporter: Gordon Sim
>            Assignee: Rafael H. Schloming
>            Priority: Minor
>
> From r732760 the python test suite cannot be run without either the spec refered to from qpid_config available in the expected location or the AMQP_SPEC env var set to an 0-10 format spec.
> Setting AMQP_SPEC to an 0-8 format spec file causes:
> Traceback (most recent call last):
>   File "./run-tests", line 22, in ?
>     from qpid.testlib import testrunner
>   File "/home/gordon/temp/python/qpid/__init__.py", line 20, in ?
>     import spec, codec, connection, content, peer, delegate, client
>   File "/home/gordon/temp/python/qpid/connection.py", line 20, in ?
>     import datatypes, session, socket
>   File "/home/gordon/temp/python/qpid/session.py", line 47, in ?
>     class Session(command_invoker(SPEC)):
>   File "/home/gordon/temp/python/qpid/generator.py", line 56, in command_invoker
>     return invoker("CommandInvoker", spec, is_command)
>   File "/home/gordon/temp/python/qpid/generator.py", line 52, in invoker
>     (), generate(spec, invoker.__module__, predicate))
>   File "/home/gordon/temp/python/qpid/generator.py", line 35, in generate
>     for name, enum in spec.enums.items():
> AttributeError: Spec instance has no attribute 'enums'

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.