Граф коммитов

11 Коммитов

Автор SHA1 Сообщение Дата
Will Kahn-Greene 038d91bd21 ES_LIVE_INDEXING should default to False in tests 2013-02-28 15:06:26 -05:00
Ricky Rosario 635bf5de42 [bug 825617] Remove the rest of webtrends. 2013-02-07 19:26:26 -05:00
Will Kahn-Greene 0025b4ca62 [bug #809449] Fix index name used in tests
This actually does a bunch of things.

1. Fixes the two lines that were hardcoding the index name used to
   "sumo-test" to use the ES_INDEX_PREFIX as well. This allows us
   to put the build number in the ES_INDEX_PREFIX and thus jenkins
   won't use the same index for multiple tests running at the same
   time.

2. Changes a bunch of the test infrastructure to use override_settings
   rather than settings_test.py and mocks.

3. Fixes some users app tests that were interesting.
2013-01-29 17:53:04 -05:00
Mike Cooper be30b82209 Make settings test respect ES_INDEX_PREFIX. 2012-11-30 13:41:20 -08:00
Ricky Rosario 4a9aacc024 [bug 727086] Add unique visitors chart to KPI dashboard.
* Created a webtrends API helper.
* Refactored existing API calls in dashboards app to use it for getting
  wiki reports.
* Cron job to call webtrends API and save the data to the metrics model.
* API call to get this data.
* UI to display the chart.
2012-02-27 11:19:50 -05:00
Will Kahn-Greene d98a5cac4f Celery should always be EAGER for tests 2012-02-21 15:15:51 -05:00
Ricky Rosario 2faae1501d [bug 724849] Implement read/write index separation
* Splits searching and indexing so they use different index
  settings.
* Rename eswhazzup to esstatus and make it more useful.
* Make search admin more useful so it's easier to spot problems.
* Updates eswhazzup to be more useful and nixes the cluster status
* Add x per 1000 documents calculations to reindexing output.
* Fixes wiki document indexing so that when doing a reindexing, we're
  not calling unindex for things.
* Add esdelete command.
* Cleans up some code to make it more obvious and less errory.
* Update documentation.
* Update default settings.
2012-02-14 17:03:21 -05:00
Will Kahn-Greene 19888f85d5 Fix flag in settings_test
This makes the flag in settings_test.py match settings.py.
2011-12-13 18:05:20 -05:00
Will Kahn-Greene f8a40eec92 [bug 710279] Fix test_creator_nums_redis test
KarmaManager() gets created before we stomp on the REDIS_BACKENDS settings
with REDIS_TEST_BACKENDS.  This switches all that testy stuff around to use
settings_test.py which stomps on everything before modules get imported.
2011-12-13 15:23:46 -05:00
Will Kahn-Greene 5311c32e10 Add USE_ELASTIC
By default when running tests USE_ELASTIC is False.  It gets switched to
True in ElasticTestMixin.  This adds checks for USE_ELASTIC to the
models post_save and pre_delete signal handlers.
2011-12-02 14:46:45 -05:00
Will Kahn-Greene e5e775963a Use settings_test rather than depend on env var
Instead of using DJANGO_ENVIRONMENT environment variable, we put the
settings for indexes for Elastic in settings_test.py.
2011-11-30 19:37:09 -05:00