github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/acceptancetests/jujupy/__init__.py (about) 1 # This file is part of JujuPy, a library for driving the Juju CLI. 2 # Copyright 2013-2017 Canonical Ltd. 3 # 4 # This program is free software: you can redistribute it and/or modify it 5 # under the terms of the Lesser GNU General Public License version 3, as 6 # published by the Free Software Foundation. 7 # 8 # This program is distributed in the hope that it will be useful, but WITHOUT 9 # ANY WARRANTY; without even the implied warranties of MERCHANTABILITY, 10 # SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the Lesser GNU General Public License 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 16 from jujupy.exceptions import ( 17 AgentsNotStarted, 18 AuthNotAccepted, 19 InvalidEndpoint, 20 NameNotAccepted, 21 NoProvider, 22 SoftDeadlineExceeded, 23 TypeNotAccepted, 24 ) 25 from jujupy.backend import ( 26 JUJU_DEV_FEATURE_FLAGS, 27 JujuBackend, 28 ) 29 from jujupy.client import ( 30 client_from_config, 31 client_for_existing, 32 get_cache_path, 33 get_machine_dns_name, 34 juju_home_path, 35 JujuData, 36 KILL_CONTROLLER, 37 KVM_MACHINE, 38 LXC_MACHINE, 39 LXD_MACHINE, 40 Machine, 41 ModelClient, 42 CaasClient, 43 IaasClient, 44 parse_new_state_server_from_error, 45 temp_bootstrap_env, 46 ) 47 from jujupy.configuration import ( 48 get_juju_data, 49 get_juju_home, 50 NoSuchEnvironment, 51 ) 52 from jujupy.fake import ( 53 FakeBackend, 54 FakeControllerState, 55 fake_juju_client, 56 ) 57 from jujupy.status import ( 58 Status, 59 ) 60 from jujupy.controller import ( 61 Controllers, 62 ) 63 from jujupy.utility import ( 64 get_timeout_prefix, 65 ) 66 from jujupy.wait_condition import ( 67 ConditionList, 68 ) 69 70 __all__ = [ 71 'AgentsNotStarted', 72 'AuthNotAccepted', 73 'client_from_config', 74 'client_for_existing', 75 'ConditionList', 76 'FakeBackend', 77 'FakeControllerState', 78 'fake_juju_client', 79 'get_cache_path', 80 'get_juju_data', 81 'get_juju_home', 82 'get_machine_dns_name', 83 'get_timeout_prefix', 84 'InvalidEndpoint', 85 'juju_home_path', 86 'JujuData', 87 'JUJU_DEV_FEATURE_FLAGS', 88 'JujuBackend', 89 'KILL_CONTROLLER', 90 'KVM_MACHINE', 91 'LXC_MACHINE', 92 'LXD_MACHINE', 93 'Machine', 94 'ModelClient', 95 'CaasClient', 96 'IaasClient', 97 'NameNotAccepted', 98 'NoProvider', 99 'NoSuchEnvironment', 100 'parse_new_state_server_from_error', 101 'SoftDeadlineExceeded', 102 'Status', 103 'temp_bootstrap_env', 104 'TypeNotAccepted', 105 ]