Exemple #1
0
 def test__parse_parameters_non_default_params(self):
     with task_manager.acquire(self.context, self.node.uuid,
                               shared=True) as task:
         task.node.driver_info = {'wol_host': '1.2.3.4', 'wol_port': 7}
         params = wol._parse_parameters(task)
         self.assertEqual('1.2.3.4', params['host'])
         self.assertEqual(7, params['port'])
Exemple #2
0
 def test__parse_parameters_non_default_params(self):
     with task_manager.acquire(
             self.context, self.node.uuid, shared=True) as task:
         task.node.driver_info = {'wol_host': '1.2.3.4',
                                  'wol_port': 7}
         params = wol._parse_parameters(task)
         self.assertEqual('1.2.3.4', params['host'])
         self.assertEqual(7, params['port'])
Exemple #3
0
 def test__parse_parameters(self):
     with task_manager.acquire(self.context, self.node.uuid,
                               shared=True) as task:
         params = wol._parse_parameters(task)
         self.assertEqual('255.255.255.255', params['host'])
         self.assertEqual(9, params['port'])
Exemple #4
0
 def test__parse_parameters(self):
     with task_manager.acquire(
             self.context, self.node.uuid, shared=True) as task:
         params = wol._parse_parameters(task)
         self.assertEqual('255.255.255.255', params['host'])
         self.assertEqual(9, params['port'])