~bac/charmworld/tag-constraints

« back to all changes in this revision

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

  • Committer: Reed O'Brien
  • Date: 2014-05-21 15:51:13 UTC
  • mto: This revision was merged to the branch mainline in revision 515.
  • Revision ID: reed@reedobrien.com-20140521155113-xrb2m1biqo6cu9pt
wait_for_green_status to hopefully pass on slower HW

See: 
https://canonical.leankit.com/Boards/View/102529849/109946658

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)