def __init__(self, *args, **kwargs): """Initialize a new client for the Heat v1 API.""" self.http_client = http._construct_http_client(*args, **kwargs) self.stacks = stacks.StackManager(self.http_client) self.resources = resources.ResourceManager(self.http_client) self.resource_types = resource_types.ResourceTypeManager( self.http_client) self.events = events.EventManager(self.http_client) self.actions = actions.ActionManager(self.http_client) self.build_info = build_info.BuildInfoManager(self.http_client) self.software_deployments = \ software_deployments.SoftwareDeploymentManager( self.http_client) self.software_configs = software_configs.SoftwareConfigManager( self.http_client)
def setUp(self): super(SoftwareConfigManagerTest, self).setUp() self.manager = software_configs.SoftwareConfigManager(mock.MagicMock())