Home | History | Annotate | Download | only in scheduler

Lines Matching full:drone

43     def send_file_to(self, drone, source_path, destination_path,
46 (drone, source_path, destination_path))
64 def was_file_sent(self, drone, source_path, destination_path):
66 (drone, source_path,
71 _DRONE_INSTALL_DIR = '/drone/install/dir'
124 drone = self._test_choose_drone_for_execution_helper([(1, 2), (0, 2)],
126 self.assertEquals(drone.name, 1)
130 drone = self._test_choose_drone_for_execution_helper([(0, 1), (1, 3)],
132 self.assertEquals(drone.name, 1)
136 drone = self._test_choose_drone_for_execution_helper([(2, 1), (3, 2)],
138 self.assertEquals(drone.name, 1)
142 drone = self._test_choose_drone_for_execution_helper([(5, 3), (10, 6)],
144 self.assertEquals(drone.name, 1)
148 drone = self._test_choose_drone_for_execution_helper(
150 self.assertEquals(drone.name, 0)
155 drone = self._test_choose_drone_for_execution_helper(
157 self.assertEquals(drone.name, 1)
161 # this drone is restricted to a different user
164 # this drone is allowed but has lower capacity
171 drone = self.manager._choose_drone_for_execution(
173 self.assertEquals(drone.name, 2)
177 # this drone is restricted to a different user
180 # this drone is allowed but is full
188 drone = self.manager._choose_drone_for_execution(
190 self.assertEquals(drone.name, 2)
207 drone = self.manager._choose_drone_for_execution(
209 self.assertEqual(drone.name, 1)
218 drone = self.manager._choose_drone_for_execution(
222 self.assertEqual(drone.name, 2)
231 drone = self.manager._choose_drone_for_execution(
234 self.assertEqual(drone.name, 2)
243 drone = self.manager._choose_drone_for_execution(
246 self.assertEqual(drone, None)
345 # write to a drone
364 _DRONE_INSTALL_DIR = '/drone/install/dir'
372 """Create and initialize a Remote Drone.
374 @return: A remote drone instance.
407 self.drone_utility_path = 'mock-drone-utility-path'
416 """Test drone manager trigger refresh."""
423 # executed on each drone host, with the same pidfile paths. Then
424 # check that each drone gets a key in the returned results dictionary.
433 for drone in self.manager.get_drones():
434 drone._host.run.expect_call(
439 expected_results[drone] = self.mock_return['results']
447 """Test drone manager sync refresh."""
467 # Our manager instance isn't the drone manager singletone that the
502 """Create and initialize a Remote Drone.
504 @return: A remote drone instance.