~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/tests/test_search.py

  • Committer: Reed O'Brien
  • Date: 2014-05-14 15:49:14 UTC
  • mto: This revision was merged to the branch mainline in revision 509.
  • Revision ID: reed@reedobrien.com-20140514154914-h5irdx6yeh8vvphc
skip test rather than comment out.

fixes #1314239 
temporarilty fixes #1317567

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
from textwrap import dedent
9
9
from time import sleep
10
10
 
 
11
import unittest
 
12
 
11
13
from pyelasticsearch import ElasticSearch
12
14
from pyelasticsearch.exceptions import (
13
15
    ElasticHttpError,
1285
1287
            'not_analyzed',
1286
1288
            mapping['properties']['name']['fields']['name']['index'])
1287
1289
 
1288
 
    # def test_reindexed_no_client_charms(self):
1289
 
    #     """ XXX: This test is commented to prevent it deleting all ES data"""
1290
 
    #     client = ElasticSearchClient.from_settings(get_ini())
1291
 
    #     # This should not raise an exception, even though the index does not
1292
 
    #     # exist.
1293
 
    #     new_client = reindex(client, charms=[])
1294
 
    #     new_client.delete_index()
 
1290
    @unittest.skip("XXX: Bug #1317567 - http://bit.ly/1lsXCfv")
 
1291
    def test_reindexed_no_client_charms(self):
 
1292
        client = ElasticSearchClient.from_settings(get_ini())
 
1293
        # This should not raise an exception, even though the index does not
 
1294
        # exist.
 
1295
        new_client = reindex(client, charms=[])
 
1296
        new_client.delete_index()
1295
1297
 
1296
1298
 
1297
1299
class TestDoctypeExtraction(TestCase):