def setUp(self):
     super(TestDelHostConfig, self).setUp()
     host.update_host_config(
         self.host_ids[0],
         user=self.user_object,
         os_config=self.os_configs
     )
 def setUp(self):
     super(TestUpdateHostDeployedConfig, self).setUp()
     host.update_host_config(
         self.host_ids[0],
         user=self.user_object,
         os_config=self.os_configs
     )
     cluster.update_cluster_config(
         self.cluster_id,
         user=self.user_object,
         os_config=self.os_configs,
         package_config=self.package_configs
     )
     cluster.update_cluster_host(
         self.cluster_id,
         self.host_ids[0],
         user=self.user_object,
         roles=['allinone-compute']
     )
     cluster.review_cluster(
         self.cluster_id,
         user=self.user_object,
         review={
             'hosts': [self.host_ids[0]]
         }
     )
 def test_update_host_config(self):
     host.update_host_config(
         self.host_ids[0],
         user=self.user_object,
         os_config=self.os_configs
     )
     os_configs = host.get_host_config(
         self.host_ids[0],
         user=self.user_object,
     )
     self.assertItemsEqual(self.os_configs, os_configs['os_config'])