Add fetching_user_source config option

Launchpad manages many information related to OpenStack at this
time, but the query takes much time for the processor. In addition,
stackalytics can be useful for OSS which are not managed with the
launchpad. So this patch adds a config option fetching_source so
that users can select fetching source. The default option is
'launchpad', so this patch doesn't affect at all on the default
option.

Change-Id: I4b7db745c36545e8897132cf6ccbb1c3fd6f3c07
This commit is contained in:
Ken'ichi Ohmichi
2017-03-13 13:08:27 -07:00
committed by Ken'ichi Ohmichi
parent 887f2c5814
commit df6753fe66
5 changed files with 27 additions and 7 deletions

View File

@@ -16,15 +16,19 @@
import time
import mock
from oslo_config import cfg
import six
import testtools
from stackalytics.processor import config
from stackalytics.processor import record_processor
from stackalytics.processor import runtime_storage
from stackalytics.processor import user_processor
from stackalytics.processor import utils
CONF = cfg.CONF
RELEASES = [
{
'release_name': 'prehistory',
@@ -67,6 +71,7 @@ class TestRecordProcessor(testtools.TestCase):
self.lp_profile_by_email = (
self.lp_profile_by_email_patch.start())
self.lp_profile_by_email.return_value = None
CONF.register_opts(config.CONNECTION_OPTS + config.PROCESSOR_OPTS)
def tearDown(self):
super(TestRecordProcessor, self).tearDown()