本文整理汇总了Python中socorro.unittest.cron.setup_configman.get_config_manager_for_crontabber函数的典型用法代码示例。如果您正苦于以下问题:Python get_config_manager_for_crontabber函数的具体用法?Python get_config_manager_for_crontabber怎么用?Python get_config_manager_for_crontabber使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_config_manager_for_crontabber函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: _setup_config_manager
def _setup_config_manager(self):
return get_config_manager_for_crontabber(
jobs='socorro.cron.jobs.ftpscraper.FTPScraperCronApp|1d',
overrides={
'crontabber.class-FTPScraperCronApp.products': 'mobile',
}
)
开发者ID:FrostburnStudios,项目名称:socorro,代码行数:7,代码来源:test_ftpscraper.py
示例2: _setup_config_manager
def _setup_config_manager(self):
return get_config_manager_for_crontabber(
jobs=(
'socorro.cron.jobs.fetch_adi_from_hive'
'.FAKEFetchADIFromHiveCronApp|1d'
),
)
开发者ID:4thAce,项目名称:socorro,代码行数:7,代码来源:test_fetch_adi_from_hive.py
示例3: _setup_simple_config
def _setup_simple_config(
self,
common_email_domains=None,
restrict_products=['WaterWolf'],
email_template='socorro_dev_test'
):
required_config = automatic_emails.AutomaticEmailsCronApp \
.get_required_config()
overrides = {
'delay_between_emails': 7,
'exacttarget_user': '',
'exacttarget_password': '',
'restrict_products': restrict_products,
'email_template': email_template,
'elasticsearch.elasticsearch_index': 'socorro_integration_test',
'elasticsearch.elasticsearch_emails_index':
'socorro_integration_test_emails',
'elasticsearch_timeout': 5,
'backoff_delays': [1],
}
if common_email_domains:
overrides['common_email_domains'] = common_email_domains
return get_config_manager_for_crontabber(
more_definitions=required_config,
overrides=overrides
)
开发者ID:Earth4,项目名称:socorro,代码行数:28,代码来源:test_automatic_emails.py
示例4: _setup_config_manager
def _setup_config_manager(
self,
product='WaterWolf',
output_path=None,
public_output_path=None,
**kwargs
#version=None,
#private_user='ted',
#private_server='secure.mozilla.org',
#private_location='/var/logs/',
#public_user='bill',
#public_server='ftp.mozilla.org',
#public_location='/tmp/%Y%m%d/',
):
if output_path is None:
output_path = self.tempdir
if public_output_path is None:
public_output_path = self.tempdir
extra_value_source = {
'crontabber.class-DailyURLCronApp.output_path':
output_path,
'crontabber.class-DailyURLCronApp.public_output_path':
public_output_path,
'crontabber.class-DailyURLCronApp.product':
product,
}
for key, value in kwargs.items():
extra_value_source['crontabber.class-DailyURLCronApp.%s' %
key] = value
return get_config_manager_for_crontabber(
jobs='socorro.cron.jobs.daily_url.DailyURLCronApp|1d',
overrides=extra_value_source)
开发者ID:snorp,项目名称:socorro,代码行数:33,代码来源:test_daily_url.py
示例5: _setup_config_manager
def _setup_config_manager(self, days_into_past):
return get_config_manager_for_crontabber(
jobs='socorro.cron.jobs.bugzilla.BugzillaCronApp|1d',
overrides={
'crontabber.class-BugzillaCronApp.days_into_past': days_into_past,
}
)
开发者ID:adngdb,项目名称:socorro,代码行数:7,代码来源:test_bugzilla.py
示例6: _setup_config_manager
def _setup_config_manager(
self,
delay_between_emails=7,
exacttarget_user='',
exacttarget_password='',
restrict_products=['WaterWolf'],
email_template='socorro_dev_test'
):
overrides = {
'crontabber.class-AutomaticEmailsCronApp.delay_between_emails':
delay_between_emails,
'crontabber.class-AutomaticEmailsCronApp.exacttarget_user':
exacttarget_user,
'crontabber.class-AutomaticEmailsCronApp.exacttarget_password':
exacttarget_password,
'crontabber.class-AutomaticEmailsCronApp.restrict_products':
restrict_products,
'crontabber.class-AutomaticEmailsCronApp.email_template':
email_template,
'crontabber.class-AutomaticEmailsCronApp.elasticsearch.'
'elasticsearch_index':
'socorro_integration_test',
'crontabber.class-AutomaticEmailsCronApp.elasticsearch.'
'elasticsearch_emails_index':
'socorro_integration_test_emails',
'crontabber.class-AutomaticEmailsCronApp.elasticsearch.'
'elasticsearch_timeout': 5,
'backoff_delays': [1],
}
return get_config_manager_for_crontabber(
jobs='socorro.cron.jobs.automatic_emails'
'.AutomaticEmailsCronApp|1h',
overrides=overrides
)
开发者ID:Earth4,项目名称:socorro,代码行数:34,代码来源:test_automatic_emails.py
示例7: _setup_config_manager
def _setup_config_manager(self):
super(TestWeeklyReportsPartitions, self)._setup_config_manager
return get_config_manager_for_crontabber(
jobs=(
'socorro.cron.jobs.weekly_reports_partitions.'
'WeeklyReportsPartitionsCronApp|1d'
),
)
开发者ID:Krispy2009,项目名称:socorro,代码行数:8,代码来源:test_weekly_reports_partitions.py
示例8: _setup_config_manager
def _setup_config_manager(self, overrides=None):
return get_config_manager_for_crontabber(
jobs=(
'socorro.cron.jobs.fetch_adi_from_hive'
'.FetchADIFromHiveCronApp|1d'
),
overrides=overrides,
)
开发者ID:snorp,项目名称:socorro,代码行数:8,代码来源:test_fetch_adi_from_hive.py
示例9: _setup_config_manager
def _setup_config_manager(self):
self.rabbit_queue_mocked = Mock()
return get_config_manager_for_crontabber(
jobs='socorro.cron.jobs.reprocessingjobs.ReprocessingJobsApp|5m',
overrides={
'crontabber.class-ReprocessingJobsApp.queuing.queuing_class':
self.rabbit_queue_mocked
}
)
开发者ID:FrostburnStudios,项目名称:socorro,代码行数:10,代码来源:test_reprocessingjobs.py
示例10: _setup_config_manager
def _setup_config_manager(self):
overrides = {
'crontabber.class-ModulelistCronApp.pig_classpath': '/some/place',
'crontabber.class-ModulelistCronApp.output_file':
'/some/other/place/%(date)s-modulelist.txt'
}
return get_config_manager_for_crontabber(
jobs='socorro.cron.jobs.modulelist.ModulelistCronApp|1d',
overrides=overrides
)
开发者ID:4thAce,项目名称:socorro,代码行数:10,代码来源:test_modulelist.py
示例11: _setup_config_manager_firefox
def _setup_config_manager_firefox(self):
# Set a completely bogus looking base_url so it can never
# accidentally work if the network request mocking leaks
base_url = 'https://archive.muzilla.hej/pub/'
return get_config_manager_for_crontabber(
jobs='socorro.cron.jobs.ftpscraper.FTPScraperCronApp|1d',
overrides={
'crontabber.class-FTPScraperCronApp.products': 'firefox',
'crontabber.class-FTPScraperCronApp.base_url': base_url,
}
)
开发者ID:Krispy2009,项目名称:socorro,代码行数:11,代码来源:test_ftpscraper.py
示例12: _setup_config_manager
def _setup_config_manager(self, api_endpoint_url='https://whatever.urg'):
return get_config_manager_for_crontabber(
jobs=(
'socorro.cron.jobs.featured_versions_sync'
'.FeaturedVersionsSyncCronApp|1d'
),
overrides={
'crontabber.class-FeaturedVersionsSyncCronApp'
'.api_endpoint_url': api_endpoint_url,
}
)
开发者ID:snorp,项目名称:socorro,代码行数:11,代码来源:test_featured_versions_sync.py
示例13: _setup_config_manager
def _setup_config_manager(self):
_super = super(TestSymbolsUnpack, self)._setup_config_manager
return get_config_manager_for_crontabber(
jobs='socorro.cron.jobs.symbolsunpack.SymbolsUnpackCronApp|1h',
overrides={
'crontabber.class-SymbolsUnpackCronApp.source_directory':
self.temp_source_directory,
'crontabber.class-SymbolsUnpackCronApp.destination_directory':
self.temp_destination_directory
}
)
开发者ID:Earth4,项目名称:socorro,代码行数:11,代码来源:test_symbolsunpack.py
示例14: _setup_config_manager
def _setup_config_manager(self, days_to_keep=None):
super(TestMissingSymbolsCronApp, self)._setup_config_manager
return get_config_manager_for_crontabber(
jobs=(
'socorro.cron.jobs.missingsymbols.MissingSymbolsCronApp|1d'
),
overrides={
'crontabber.class-MissingSymbolsCronApp'
'.boto_class': self.mock_boto_class
},
)
开发者ID:4thAce,项目名称:socorro,代码行数:11,代码来源:test_missingsymbols.py
示例15: _setup_config_manager
def _setup_config_manager(self, days_to_keep=None):
super(TestCleanMissingSymbolsCronApp, self)._setup_config_manager
return get_config_manager_for_crontabber(
jobs=(
'socorro.cron.jobs.clean_missing_symbols.'
'CleanMissingSymbolsCronApp|1d'
),
overrides={
'crontabber.class-CleanMissingSymbolsCronApp'
'.days_to_keep': days_to_keep
},
)
开发者ID:4thAce,项目名称:socorro,代码行数:12,代码来源:test_clean_missing_symbols.py
示例16: get_standard_config
def get_standard_config(self):
"""this method overrides the crontabber version of the same name.
It is not used by Socorro clients directly, but the base crontabber
class uses this method during setup. By overriding the implementation
here, we get a default Socorro configuration file with many of the
standard Socorro defaults already in place: logging, executors, etc.
This allows the bootstraping of the integration tests to participate
fully with the environment variables, commandline arguments, and
configurations files that the Socorro installation/test system of
Makefiles and shell scripts offers"""
config = get_config_manager_for_crontabber().get_config()
return config
开发者ID:4thAce,项目名称:socorro,代码行数:12,代码来源:base.py
示例17: _setup_config_manager
def _setup_config_manager(self, days_to_keep=None):
super(TestCleanRawADICronApp, self)._setup_config_manager
return get_config_manager_for_crontabber(
jobs=(
'socorro.cron.jobs.clean_raw_adi.'
'CleanRawADICronApp|1d'
),
overrides={
'crontabber.class-CleanRawADICronApp'
'.days_to_keep': days_to_keep
},
)
开发者ID:Krispy2009,项目名称:socorro,代码行数:12,代码来源:test_clean_raw_adi.py
示例18: _setup_config_manager
def _setup_config_manager(self):
return get_config_manager_for_crontabber(
jobs=(
'socorro.cron.jobs.featured_versions_automatic'
'.FeaturedVersionsAutomaticCronApp|1d'
),
overrides={
'crontabber.class-FeaturedVersionsAutomaticCronApp'
'.api_endpoint_url': (
'https://example.com/{product}_versions.json'
),
}
)
开发者ID:adngdb,项目名称:socorro,代码行数:13,代码来源:test_featured_versions_automatic.py
示例19: _setup_config_manager
def _setup_config_manager(self):
queue_mock = Mock()
queue_mock.return_value.return_value = MagicMock()
queue_mock.return_value.return_value.queue_status_standard \
.method.message_count = 1
return get_config_manager_for_crontabber(
jobs='socorro.cron.jobs.serverstatus.ServerStatusCronApp|5m',
overrides={
'crontabber.class-ServerStatusCronApp.queuing.queuing_class':
queue_mock
}
)
开发者ID:FrostburnStudios,项目名称:socorro,代码行数:13,代码来源:test_serverstatus.py
示例20: _setup_storage_config
def _setup_storage_config(self):
required_config = ElasticSearchCrashStorage.get_required_config()
overrides = {
'elasticsearch_index': 'socorro_integration_test',
'elasticsearch_emails_index': 'socorro_integration_test_emails',
'elasticsearch_timeout': 5,
'backoff_delays': [1],
}
return get_config_manager_for_crontabber(
more_definitions=required_config,
overrides=overrides
)
开发者ID:Earth4,项目名称:socorro,代码行数:14,代码来源:test_automatic_emails.py
注:本文中的socorro.unittest.cron.setup_configman.get_config_manager_for_crontabber函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论