MCPcopy Create free account
hub / github.com/ceph/ceph / _write_cfg_file

Method _write_cfg_file

qa/tasks/s3tests_java.py:255–263  ·  view source on GitHub ↗

Write s3 tests java config file on the remote node.

(self, cfg_dict, client)

Source from the content-addressed store, hash-verified

253 sect=section, user=user))
254
255 def _write_cfg_file(self, cfg_dict, client):
256 """
257 Write s3 tests java config file on the remote node.
258 """
259 testdir = teuthology.get_testdir(self.ctx)
260 (remote,) = self.ctx.cluster.only(client).remotes.keys()
261 data = yaml.safe_dump(cfg_dict, default_flow_style=False)
262 path = testdir + '/archive/s3-tests-java.' + client + '.conf'
263 remote.write_file(path, data)
264
265 def _set_cfg_entry(self, cfg_dict, key, value):
266 if not (key in cfg_dict):

Callers 1

create_usersMethod · 0.95

Calls 3

onlyMethod · 0.80
keysMethod · 0.45
write_fileMethod · 0.45

Tested by

no test coverage detected