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

zone_blacklist_create(pattern, description=None, *args, **kwargs)[source]
zone_blacklist_delete(id, *args, **kwargs)[source]
zone_blacklist_list(*args, **kwargs)[source]
zone_blacklist_set(id, pattern=None, description=None, no_description=False, *args, **kwargs)[source]
zone_blacklist_show(id, *args, **kwargs)[source]
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

classmethod as_user(user)[source]
classmethod get_clients()[source]
parsed_cmd(cmd, model=None, *args, **kwargs)[source]
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]
recordset_delete(zone_id, id, *args, **kwargs)[source]
recordset_list(zone_id, *args, **kwargs)[source]
recordset_set(zone_id, id, records=None, type=None, description=None, ttl=None, no_description=False, no_ttl=False, *args, **kwargs)[source]
recordset_show(zone_id, id, *args, **kwargs)[source]
class designateclient.functionaltests.client.TLDCommands[source]

Bases: object

tld_create(name, description=None, *args, **kwargs)[source]
tld_delete(id, *args, **kwargs)[source]
tld_list(*args, **kwargs)[source]
tld_set(id, name=None, description=None, no_description=False, *args, **kwargs)[source]
tld_show(id, *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]
zone_delete(id, *args, **kwargs)[source]
zone_list(*args, **kwargs)[source]
zone_set(id, email=None, ttl=None, description=None, type=None, masters=None, *args, **kwargs)[source]
zone_show(id, *args, **kwargs)[source]
class designateclient.functionaltests.client.ZoneExportCommands[source]

Bases: object

A mixin for DesignateCLI to add zone export commands

zone_export_create(zone_id, *args, **kwargs)[source]
zone_export_delete(zone_export_id, *args, **kwargs)[source]
zone_export_list(*args, **kwargs)[source]
zone_export_show(zone_export_id, *args, **kwargs)[source]
zone_export_showfile(zone_export_id, *args, **kwargs)[source]
class designateclient.functionaltests.client.ZoneImportCommands[source]

Bases: object

A mixin for DesignateCLI to add zone import commands

zone_import_create(zone_file_path, *args, **kwargs)[source]
zone_import_delete(zone_import_id, *args, **kwargs)[source]
zone_import_list(*args, **kwargs)[source]
zone_import_show(zone_import_id, *args, **kwargs)[source]
class designateclient.functionaltests.client.ZoneTransferCommands[source]

Bases: object

A mixin for DesignateCLI to add zone transfer commands

zone_transfer_accept_request(id, key, *args, **kwargs)[source]
zone_transfer_accept_show(id, *args, **kwargs)[source]
zone_transfer_request_create(zone_id, target_project_id=None, description=None, *args, **kwargs)[source]
zone_transfer_request_delete(id, *args, **kwargs)[source]
zone_transfer_request_list(*args, **kwargs)[source]
zone_transfer_request_set(id, description=None, *args, **kwargs)[source]
zone_transfer_request_show(id, *args, **kwargs)[source]
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.’