blob: 5bdd0c7efcb73c7b80be820b29592fde01411727 [file] [log] [blame]
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +01001# Copyright 2016 Hewlett Packard Enterprise Development Company, L.P.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14from tempest import test
15
16from designate_tempest_plugin import clients
17
18
19class BaseDnsTest(test.BaseTestCase):
Kiall Mac Innes560c89b2016-04-13 11:21:56 +010020 """Base class for DNS tests."""
Kiall Mac Innes25fb29e2016-04-07 08:07:04 +010021
22 # Use the Designate Client Manager
23 client_manager = clients.Manager
24
25 # NOTE(andreaf) credentials holds a list of the credentials to be allocated
26 # at class setup time. Credential types can be 'primary', 'alt', 'admin' or
27 # a list of roles - the first element of the list being a label, and the
28 # rest the actual roles.
29 # NOTE(kiall) primary will result in a manager @ cls.os, alt will have
30 # cls.os_alt, and admin will have cls.os_adm.
Kiall Mac Innes560c89b2016-04-13 11:21:56 +010031 # NOTE(kiall) We should default to only primary, and request additional
32 # credentials in the tests that require them.
33 credentials = ['primary']