本文整理汇总了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函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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',
}
)
示例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'
),
)
示例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
)
示例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)
示例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,
}
)
示例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
)
示例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'
),
)
示例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,
)
示例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
}
)
示例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
)
示例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,
}
)
示例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,
}
)
示例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
}
)
示例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
},
)
示例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
},
)