def setUp(self):
super(HookJsonFileConfigTest, self).setUp()
self.hook_path = self.relative_path(
__file__,
'..',
'heat-config-json-file/install.d/hook-json-file.py')
conf_dir = self.useFixture(fixtures.TempDir()).join()
self.conf = tempfile.NamedTemporaryFile(
mode='w', dir=conf_dir, delete=False).name
os.unlink(self.conf)
self.env = os.environ.copy()
self.data = {
'id': 'test_json_file',
'name': 'fake_resource_name',
'group': 'json-file',
'config': {
self.conf: {
'command': 'foo'
}
}
}
评论列表
文章目录