def setUp(self): p.patch_minidom_writexml() self.prepare = {"delete": ["delete_dir_1", "delete_dir_2"], "mkdir": ["mkdir_1"]} self.job_xml = "job_xml.xml" self.configuration = {"conf_param_1": "conf_value_1", "conf_param_2": "conf_value_3"} self.files = ["file1", "file2"] self.archives = ["arch1"]
def setUp(self): p.patch_minidom_writexml() self.prepare = {'delete': ['delete_dir_1', 'delete_dir_2'], 'mkdir': ['mkdir_1']} self.job_xml = 'job_xml.xml' self.configuration = {'conf_param_1': 'conf_value_1', 'conf_param_2': 'conf_value_3'} self.files = ['file1', 'file2'] self.archives = ['arch1']
def setUp(self): p.patch_minidom_writexml() self.job_tracker = 'job-tracker-host:8021' self.name_node = 'hdfs://name-node-host:8020' self.prepare = {'delete': ['delete_dir_1', 'delete_dir_2'], 'mkdir': ['mkdir_1']} self.job_xml = 'job_xml.xml' self.configuration = {'conf_param_1': 'conf_value_1', 'conf_param_2': 'conf_value_3'} self.files = ['file1', 'file2'] self.archives = ['arch1']
def setUp(self): p.patch_minidom_writexml() self.prepare = { 'delete': ['delete_dir_1', 'delete_dir_2'], 'mkdir': ['mkdir_1'] } self.job_xml = 'job_xml.xml' self.configuration = { 'conf_param_1': 'conf_value_1', 'conf_param_2': 'conf_value_3' } self.files = ['file1', 'file2'] self.archives = ['arch1']
def setUp(self): p.patch_minidom_writexml() self.job_tracker = 'job-tracker-host:8021' self.name_node = 'hdfs://name-node-host:8020' self.prepare = { 'delete': ['delete_dir_1', 'delete_dir_2'], 'mkdir': ['mkdir_1'] } self.job_xml = 'job_xml.xml' self.configuration = { 'conf_param_1': 'conf_value_1', 'conf_param_2': 'conf_value_3' } self.files = ['file1', 'file2'] self.archives = ['arch1']
from savanna.service import periodic from savanna.utils import api as api_utils from savanna.utils import patches from savanna.utils import remote LOG = log.getLogger(__name__) eventlet.monkey_patch(os=True, select=True, socket=True, thread=True, time=True) # Patches minidom's writexml to avoid excess whitespaces in generated xml # configuration files that brakes Hadoop. patches.patch_minidom_writexml() opts = [ cfg.StrOpt('os_auth_protocol', default='http', help='Protocol used to access OpenStack Identity service'), cfg.StrOpt('os_auth_host', default='127.0.0.1', help='IP or hostname of machine on which OpenStack Identity ' 'service is located'), cfg.StrOpt('os_auth_port', default='35357', help='Port of OpenStack Identity service'), cfg.StrOpt('os_admin_username', default='admin', help='This OpenStack user is used to verify provided tokens. '
def setUp(self): p.patch_minidom_writexml()
from savanna.middleware import auth_valid from savanna.openstack.common import log from savanna.openstack.common.middleware import debug from savanna.plugins import base as plugins_base from savanna.utils import api as api_utils from savanna.utils import patches from savanna.utils import scheduler LOG = log.getLogger(__name__) eventlet.monkey_patch( os=True, select=True, socket=True, thread=True, time=True) # Patches minidom's writexml to avoid excess whitespaces in generated xml # configuration files that brakes Hadoop. patches.patch_minidom_writexml() opts = [ cfg.StrOpt('os_auth_protocol', default='http', help='Protocol used to access OpenStack Identity service'), cfg.StrOpt('os_auth_host', default='127.0.0.1', help='IP or hostname of machine on which OpenStack Identity ' 'service is located'), cfg.StrOpt('os_auth_port', default='35357', help='Port of OpenStack Identity service'), cfg.StrOpt('os_admin_username', default='admin', help='This OpenStack user is used to verify provided tokens. '
def setUp(self): r.Resource._is_passthrough_type = _resource_passthrough p.patch_minidom_writexml() super(TestJobManager, self).setUp()
def setUp(self): patches.patch_minidom_writexml()
def setUp(self): super(TestJobManager, self).setUp() p.patch_minidom_writexml()