예제 #1
0
    def test_threshold_from_config(self):
        actor = zone.ZoneActor(
            self.executor, self.context, self.pool, mock.Mock(action='CREATE')
        )

        self.assertEqual(
            cfg.CONF['service:worker'].threshold_percentage,
            actor.threshold
        )
예제 #2
0
 def setUp(self):
     self.context = mock.Mock()
     self.pool = mock.Mock()
     self.executor = mock.Mock()
     self.actor = zone.ZoneActor(
         self.executor,
         self.context,
         self.pool,
         mock.Mock(action='CREATE'),
     )