Exemple #1
0
 def test_update_host(self):
     host.update_host(
         self.host_ids[0],
         user=self.user_object,
         name='update_test_name'
     )
     update_host = host.get_host(
         self.host_ids[0],
         user=self.user_object,
     )
     self.assertEqual(update_host['name'], 'update_test_name')
Exemple #2
0
 def test_duplicate_name(self):
     host.update_host(
         self.host_ids[0],
         user=self.user_object,
         name='update_test_name'
     )
     self.assertRaises(
         exception.DuplicatedRecord,
         host.update_host,
         self.host_ids[1],
         user=self.user_object,
         name='update_test_name'
     )