~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/migrations/versions/tests/test_migrations.py

  • Committer: Tarmac
  • Author(s): Reed O'Brien
  • Date: 2014-05-21 16:38:57 UTC
  • mfrom: (514.1.1 027test-fails)
  • Revision ID: tarmac-20140521163857-dgt0onkdb3begqkj
Call wait_for_green_status() which will hopefully allow the test to pass on slower HW.

Approved by Juju Gui Bot, Reed O'Brien.

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
        self.index_client.delete_index()
162
162
        # Create an empty index.
163
163
        self.index_client._client.create_index(self.index_client.index_name)
 
164
        self.index_client.wait_for_green_status()
164
165
        # Put up the old mappings.
165
166
        for type_ in ('charm', 'bundle'):
166
167
            self.index_client._client.put_mapping(
183
184
        self.assertEquals(self.data_store.current_version, self.version)
184
185
        self.assertTrue(self.exists_in_index(charm['_id']))
185
186
 
186
 
    # XXX: BradCrittenden 2014-05-20: On Jenkins this test is failing, likely
187
 
    # due to an ill-configured ElasticSearch on the freshly minted
188
 
    # environment.  Skipping.
189
187
    def test_exception_raised(self):
190
188
        """Putting new mapping without creating the filter and analyzer
191
189
        raises the expected exception.
192
190
        """
193
 
        self.skipTest("Fails on Jenkins.  See kanban card.")
194
191
        self.versions.ensure_initialized(self.data_store, True)
195
192
        ## Pretend upgrades through 26 are complete.
196
193
        self.data_store.update_version(26)