File: service.py

package info (click to toggle)
python-dcos 0.2.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,440 kB
  • sloc: python: 8,196; sh: 194; makefile: 36
file content (48 lines) | stat: -rw-r--r-- 1,263 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from dcos.mesos import Framework


def framework_fixture():
    """ Framework fixture

    :rtype: Framework
    """

    return Framework({
        "active": True,
        "capabilities": [],
        "checkpoint": True,
        "completed_tasks": [],
        "executors": [],
        "failover_timeout": 604800,
        "hostname": "mesos.vm",
        "id": "20150502-231327-16842879-5050-3889-0000",
        "name": "marathon",
        "offered_resources": {
            "cpus": 0.0,
            "disk": 0.0,
            "mem": 0.0,
            "ports": "[1379-1379, 10000-10000]"
        },
        "offers": [],
        "pid":
        "scheduler-a58cd5ba-f566-42e0-a283-b5f39cb66e88@172.17.8.101:55130",
        "registered_time": 1431543498.31955,
        "reregistered_time": 1431543498.31959,
        "resources": {
            "cpus": 0.2,
            "disk": 0,
            "mem": 32,
            "ports": "[1379-1379, 10000-10000]"
        },
        "role": "*",
        "tasks": [],
        "unregistered_time": 0,
        "used_resources": {
            "cpus": 0.2,
            "disk": 0,
            "mem": 32,
            "ports": "[1379-1379, 10000-10000]"
        },
        "user": "root",
        "webui_url": "http://mesos:8080"
    }, None)