~dan-prince/nova/cleanup_test_libvirt_inst_path

« back to all changes in this revision

Viewing changes to nova/tests/integrated/integrated_helpers.py

  • Committer: Tarmac
  • Author(s): termie, Chris Behrens, Vishvananda Ishaya
  • Date: 2011-05-27 01:11:00 UTC
  • mfrom: (1113.2.25 rpc_multicall)
  • Revision ID: tarmac-20110527011100-4mj0uak4k6j2j1v2
Adds the ability to make a call that returns multiple times (a call returning a generator). This is also based on the work in rpc-improvements + a bunch of fixes Vish and I worked through to get all the tests to pass so the code is a bit all over the place.

The functionality is being added to support Vish's work on removing worker access to the database, this allows us to write multi-phase actions that yield state updates as they progress, letting the frontend update the db.

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
        # set up services
155
155
        self.start_service('compute')
156
156
        self.start_service('volume')
157
 
        # NOTE(justinsb): There's a bug here which is eluding me...
158
 
        # If we start the network_service, all is good, but then subsequent
159
 
        # tests fail: CloudTestCase.test_ajax_console in particular.
160
 
        #self.start_service('network')
 
157
        self.start_service('network')
161
158
        self.start_service('scheduler')
162
159
 
163
160
        self._start_api_service()