Files
deb-python-dcos/cli/tests/fixtures/node.py
2017-04-06 11:48:00 -07:00

50 lines
1.4 KiB
Python

def slave_fixture():
""" Slave node fixture.
:rtype: dict
"""
return {
"TASK_ERROR": 0,
"TASK_FAILED": 0,
"TASK_FINISHED": 0,
"TASK_KILLED": 0,
"TASK_LOST": 0,
"TASK_RUNNING": 0,
"TASK_STAGING": 0,
"TASK_STARTING": 0,
"active": True,
"type": "agent",
"attributes": {},
"framework_ids": [],
"hostname": "dcos-01",
"id": "20150630-004309-1695027628-5050-1649-S0",
"offered_resources": {
"cpus": 0.0,
"disk": 0.0,
"mem": 0.0,
"ports": ("[1025-2180, 2182-3887, 3889-5049, 5052-8079, " +
"8082-8180, 8182-65535]")
},
"pid": "slave(1)@172.17.8.101:5051",
"registered_time": 1435625024.42234,
"reregistered_time": 1435625024.42234,
"resources": {
"cpus": 4.0,
"disk": 10823.0,
"mem": 2933.0,
"ports": ("[1025-2180, 2182-3887, 3889-5049, 5052-8079, " +
"8082-8180, 8182-65535]")
},
"reserved_resources": {},
"unreserved_resources": {},
"used_resources": {
"cpus": 0.0,
"disk": 0.0,
"mem": 0.0,
"ports": ("[1025-2180, 2182-3887, 3889-5049, 5052-8079, " +
"8082-8180, 8182-65535]")
},
"version": "0.0.0"
}