コード例 #1
0
ファイル: test_host.py プロジェクト: ziruizhuang/compass-core
 def test_del_host_config(self):
     host.del_host_config(
         self.host_ids[0],
         user=self.user_object,
     )
     os_configs = host.get_host_config(
         self.host_ids[0],
         user=self.user_object,
     )
     self.assertEqual(os_configs['os_config'], {})
コード例 #2
0
ファイル: test_host.py プロジェクト: naniid/compass-core
 def test_update_host_config(self):
     host.update_host_config(
         self.user_object,
         self.host_ids[0],
         os_config=self.os_configs
     )
     os_configs = host.get_host_config(
         self.user_object,
         self.host_ids[0]
     )
     self.assertItemsEqual(self.os_configs, os_configs['os_config'])
コード例 #3
0
ファイル: test_host.py プロジェクト: ziruizhuang/compass-core
 def test_patch_host_config(self):
     host.patch_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'])
コード例 #4
0
ファイル: test_host.py プロジェクト: naniid/compass-core
 def test_get_host_config(self):
     os_configs = host.get_host_config(
         self.user_object,
         self.host_ids[0]
     )
     self.assertItemsEqual(self.os_configs, os_configs['os_config'])