| [ |
| { |
| "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."} |
| } |
| |
| ] |