
This patch moves the `_get_transport` and `request_and_transport` method to the client. Both method are useful for other resources like Message, for example. This patch also moves the is_functional logic to the BaseTest class and splits unittests from functional tests. Partially-Implements: python-marconiclient-v1 Change-Id: Iaf56c234291b355c98817feee5644a5dd07c0b7f
32 lines
990 B
Python
32 lines
990 B
Python
# Copyright (c) 2013 Red Hat, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
|
|
from marconiclient.tests.queues import queues
|
|
from marconiclient.tests.transport import dummy
|
|
from marconiclient.transport import http
|
|
|
|
|
|
class QueuesV1QueueDummyTransportTest(queues.QueuesV1QueueTestBase):
|
|
|
|
transport_cls = dummy.DummyTransport
|
|
|
|
|
|
class QueuesV1QueueHttpUnitTest(queues.QueuesV1QueueUnitTest):
|
|
|
|
transport_cls = http.HttpTransport
|
|
url = 'http://127.0.0.1:8888/v1'
|
|
version = 1
|