
In the cross project workshop "Establishing key themes for the Mitaka cycle" [1] during the Mitaka summit, one of the agreed point was to implement functional tests for the client libraries. [2] Later on, this will serve to improve our backward compatibility for client libraries. See I72e4e9cfa0539f6b326a0296c065fa3cb754f8ae In preparation to implement the functional tests for both v2 and v3 clients, this patch initializes the new directories and adds the base test classes: V3ClientTestCase and V2ClientTestCase. Each class instantiates its specific keystoneclient version via os-client-config either based on a clouds.yaml config file or from the environment variables. [1] https://mitakadesignsummit.sched.org/event/edd78ade4c7c92581a7cabc26019a85a [2] https://etherpad.openstack.org/p/mitaka-crossproject-themes Change-Id: Ia73d72d5f87051fb46d733782275b548874a1def
29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
# 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.
|
|
|
|
import keystoneclient
|
|
from keystoneclient.tests.functional import base
|
|
|
|
|
|
class V3ClientVersionTestCase(base.V3ClientTestCase):
|
|
|
|
def test_version(self):
|
|
self.assertIsInstance(self.client,
|
|
keystoneclient.v3.client.Client)
|
|
|
|
|
|
class V2ClientVersionTestCase(base.V2ClientTestCase):
|
|
|
|
def test_version(self):
|
|
self.assertIsInstance(self.client,
|
|
keystoneclient.v2_0.client.Client)
|