blob: fd1bb03eb969655b75705b47b4ef9050f21e3d32 [file] [log] [blame]
[
{
"method": "GetVersion",
"input": ".*",
"output": {
"version": "3.2.6",
"pythonVersion": "2.7.16 (default, May 6 2019, 19:35:26)",
"gitCommit": "b0df1bf6ed1698285eda6a6725c5da0c80aa4aee",
"buildTime": "2019-05-20T17:04:14Z",
"os": "linux",
"arch": "x86_64"
}
},
{
"method": "GetSlice",
"input": {"id": 1},
"output": {
"id": 1,
"name": "mockslice1",
"site_id": 1,
"updated": 1234.0,
"enacted": 1234.0
}
},
{
"method": "GetSlice",
"input": {"id": 2},
"output": {
"id": 2,
"name": "mockslice2",
"site_id": 1,
"updated": 1234.0,
"enacted": 900.0
}
},
{
"method": "GetSlice",
"input": {"id": 77},
"error": { "code": 2, "message": "Slice matching query does not exist."}
},
{
"method": "ListSlice",
"input": ".*",
"output": {
"items": [{
"id": 1,
"name": "mockslice1",
"site_id": 1,
"updated": 1234.0,
"enacted": 1234.0
},
{
"id": 2,
"name": "mockslice2",
"site_id": 1,
"updated": 1234.0,
"enacted": 900.0
}]
}
},
{
"method": "FilterSlice",
"input": {"elements": [{"operator": 0, "name": "id", "iValue": 1}]},
"output": {
"items": [{
"id": 1,
"name": "mockslice1",
"site_id": 1
}]
}
},
{
"method": "FilterSlice",
"input": {"elements": [{"operator": 0, "name": "name", "sValue": "mockslice2"}]},
"output": {
"items": [{
"id": 2,
"name": "mockslice2",
"site_id": 1
}]
}
},
{
"method": "FilterSlice",
"input": {"elements": [{"operator": 0, "name": "id", "iValue": 77}]},
"output": {
"items": []
}
},
{
"method": "UpdateSlice",
"input": {"id": 1, "name": "mockslice1_newname"},
"output": {
"id": 1,
"name": "mockslice1_newname",
"site_id": 1
}
},
{
"method": "UpdateSlice",
"input": { "id": 77, "name": "mockslice1_newname"},
"error": { "code": 2, "message": "Slice matching query does not exist."}
},
{
"method": "CreateSlice",
"input": {"name": "mockslice3", "site_id": 1},
"output": {
"id": 3,
"name": "mockslice3",
"site_id": 1
}
},
{
"method": "DeleteSlice",
"input": {"id": 1},
"output": {}
},
{
"method": "DeleteSlice",
"input": {"id": 77},
"error": { "code": 2, "message": "Slice matching query does not exist."}
},
{
"method": "GetLoadStatus",
"input": ".*",
"output": {"services": [
{"name": "onos",
"version": "2.1.1-dev",
"state": "present"},
{"name": "kubernetes",
"version": "1.2.1",
"state": "present"}]}
},
{
"method": "Download",
"input": ".*",
"streamType": "server",
"stream": [
{"output": { "chunk": "ABC"} },
{"output": { "chunk": "DEF"} }
]
},
{
"method": "Upload",
"input": ".*",
"streamType": "client",
"stream": [
{"input": { "chunk": "ABC", "uri": "file:///tmp/transfer.up"} },
{"input": { "chunk": "DEF", "uri": "file:///tmp/transfer.up"} }
],
"output": { "status": 0,
"checksum": "sha256:e9c0f8b575cbfcb42ab3b78ecc87efa3b011d9a5d10b09fa4e96f240bf6a82f5",
"chunks_received": 2,
"bytes_received": 6 }
},
{
"method": "CreateBackupOperation",
"input": {"operation": "create"},
"output": {
"id": 1,
"uuid": "uuid1"
}
},
{
"method": "GetBackupOperation",
"input": {"id": 1},
"output": {
"id": 1,
"operation": "create",
"status": "created",
"updated": 1234.0,
"enacted": 1234.0,
"file_id": 33
}
},
{
"method": "GetBackupFile",
"input": {"id": 33},
"output": {
"id": 33,
"uri": "file:///transfer.down",
"checksum": "sha256:e9c0f8b575cbfcb42ab3b78ecc87efa3b011d9a5d10b09fa4e96f240bf6a82f5"
}
},
{
"method": "CreateBackupFile",
"input": ".*",
"output": {
"id": 34,
"uuid": "uuid34"
}
},
{
"method": "CreateBackupOperation",
"input": {"operation": "restore"},
"output": {
"id": 3,
"uuid": "uuid3"
}
},
{
"method": "FilterBackupOperation",
"input": {"elements": [{"operator": 0, "name": "uuid", "sValue": "uuid3"}]},
"output": {"items": [{
"id": 3,
"operation": "restore",
"status": "restored",
"updated": 1234.0,
"enacted": 1234.0,
"file_id": 34
}]}
}
]