The designateclient.functionaltests.client
Module¶
Copyright 2015 Rackspace
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
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.
-
class
designateclient.functionaltests.client.
BlacklistCommands
[source]¶ Bases:
object
-
class
designateclient.functionaltests.client.
DesignateCLI
(*args, **kwargs)[source]¶ Bases:
tempest.lib.cli.base.CLIClient
,designateclient.functionaltests.client.ZoneCommands
,designateclient.functionaltests.client.ZoneTransferCommands
,designateclient.functionaltests.client.ZoneExportCommands
,designateclient.functionaltests.client.ZoneImportCommands
,designateclient.functionaltests.client.RecordsetCommands
,designateclient.functionaltests.client.TLDCommands
,designateclient.functionaltests.client.BlacklistCommands
-
using_auth_override
¶
-
-
class
designateclient.functionaltests.client.
RecordsetCommands
[source]¶ Bases:
object
-
recordset_create
(zone_id, name, records=None, type=None, description=None, ttl=None, *args, **kwargs)[source]¶
-
-
class
designateclient.functionaltests.client.
ZoneCommands
[source]¶ Bases:
object
This is a mixin that provides zone commands to DesignateCLI
-
zone_create
(name, email=None, ttl=None, description=None, type=None, masters=None, *args, **kwargs)[source]¶
-
-
class
designateclient.functionaltests.client.
ZoneExportCommands
[source]¶ Bases:
object
A mixin for DesignateCLI to add zone export commands
-
class
designateclient.functionaltests.client.
ZoneImportCommands
[source]¶ Bases:
object
A mixin for DesignateCLI to add zone import commands
-
class
designateclient.functionaltests.client.
ZoneTransferCommands
[source]¶ Bases:
object
A mixin for DesignateCLI to add zone transfer commands
-
designateclient.functionaltests.client.
build_flags_string
(flags)[source]¶ Format a string of value-less flags.
Pass in a dictionary mapping flags to booleans. Those flags set to true are included in the returned string.
- Usage:
- build_flags_string({
- ‘–no-ttl’: True, ‘–no-name’: False, ‘–verbose’: True,
})
- Returns:
- ‘–no-ttl –verbose’
-
designateclient.functionaltests.client.
build_option_string
(options)[source]¶ Format a string of option flags (–key ‘value’).
This will quote the values, in case spaces are included. Any values that are None are excluded entirely.
- Usage:
- build_option_string({
- “–email”: “me@example.com”, “–name”: “example.com.” “–ttl”: None,
})
- Returns:
- “–email 'me@example.com‘ –name ‘example.com.’