MCPcopy Create free account
hub / github.com/apache/mesos / __init__

Method __init__

src/python/cli_new/lib/cli/tests/base.py:321–341  ·  view source on GitHub ↗
(self, flags=None)

Source from the content-addressed store, hash-verified

319 count = 0
320
321 def __init__(self, flags=None):
322 super(Task, self).__init__()
323
324 if flags is None:
325 flags = {}
326
327 if "master" not in flags:
328 flags["master"] = "{ip}:{port}".format(
329 ip=TEST_MASTER_IP,
330 port=TEST_MASTER_PORT)
331 if "name" not in flags:
332 flags["name"] = "task-{id}".format(id=Task.count)
333 if "command" not in flags:
334 raise CLIException("No command supplied when creating task")
335
336 self.flags = flags
337 self.name = flags["name"]
338 self.executable = os.path.join(
339 CLITestCase.MESOS_BUILD_DIR,
340 "src",
341 "mesos-execute")
342
343 def __wait_for_containers(self, condition, timeout=TIMEOUT):
344 """

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 2

CLIExceptionClass · 0.90
joinMethod · 0.65

Tested by

no test coverage detected