From 666105217fd83158f91d7a6c6d775d554127fed8 Mon Sep 17 00:00:00 2001 From: Alan Greer Date: Fri, 20 Dec 2024 14:40:43 +0000 Subject: [PATCH] Updated odin server test responses with commands --- tests/input/one_node_fp_response.json | 79 ++++++++++++++++- tests/input/two_node_fp_response.json | 120 ++++++++++++++++++++++++-- 2 files changed, 188 insertions(+), 11 deletions(-) diff --git a/tests/input/one_node_fp_response.json b/tests/input/one_node_fp_response.json index 53f61ce..116f61b 100644 --- a/tests/input/one_node_fp_response.json +++ b/tests/input/one_node_fp_response.json @@ -5,7 +5,7 @@ "type": "float" }, "module": { - "value": "OdinDataAdapter", + "value": "FrameProcessorAdapter", "writeable": false, "type": "str" }, @@ -97,7 +97,7 @@ "mean_process": 0 } }, - "timestamp": "2024-05-14T15:32:44.370875", + "timestamp": "2024-12-20T14:33:12.082339", "error": [], "connected": true }, @@ -156,10 +156,14 @@ "blosc_compressor": 0, "blosc_level": 0, "blosc_shuffle": 0, + "dims": [ + 256, + 512 + ], "chunks": [ 1, - 512, - 256 + 256, + 512 ] }, "uid": { @@ -185,6 +189,73 @@ } } } + }, + "command": { + "dummy": { + "allowed": { + "value": [ + "print" + ], + "writeable": false, + "type": "list" + }, + "execute": { + "value": "", + "writeable": true, + "type": "str" + } + }, + "hdf": { + "allowed": { + "value": [ + "start_writing", + "stop_writing" + ], + "writeable": false, + "type": "list" + }, + "execute": { + "value": "", + "writeable": true, + "type": "str" + } + } + } + }, + "config": { + "hdf": { + "acquisition_id": { + "value": "", + "writeable": true, + "type": "str" + }, + "frames": { + "value": 0, + "writeable": true, + "type": "int" + }, + "file": { + "path": { + "value": "", + "writeable": true, + "type": "str" + }, + "prefix": { + "value": "", + "writeable": true, + "type": "str" + }, + "extension": { + "value": "h5", + "writeable": true, + "type": "str" + } + }, + "write": { + "value": false, + "writeable": true, + "type": "bool" + } } } } diff --git a/tests/input/two_node_fp_response.json b/tests/input/two_node_fp_response.json index d706890..9543da5 100644 --- a/tests/input/two_node_fp_response.json +++ b/tests/input/two_node_fp_response.json @@ -5,7 +5,7 @@ "type": "float" }, "module": { - "value": "OdinDataAdapter", + "value": "FrameProcessorAdapter", "writeable": false, "type": "str" }, @@ -109,7 +109,7 @@ "mean_process": 0 } }, - "timestamp": "2024-06-14T14:53:35.343227", + "timestamp": "2024-12-20T14:36:34.391594", "error": [], "connected": true }, @@ -168,10 +168,14 @@ "blosc_compressor": 0, "blosc_level": 0, "blosc_shuffle": 0, + "dims": [ + 256, + 512 + ], "chunks": [ 1, - 512, - 256 + 256, + 512 ] }, "uid": { @@ -197,6 +201,37 @@ } } } + }, + "command": { + "dummy": { + "allowed": { + "value": [ + "print" + ], + "writeable": false, + "type": "list" + }, + "execute": { + "value": "", + "writeable": true, + "type": "str" + } + }, + "hdf": { + "allowed": { + "value": [ + "start_writing", + "stop_writing" + ], + "writeable": false, + "type": "list" + }, + "execute": { + "value": "", + "writeable": true, + "type": "str" + } + } } }, "1": { @@ -263,7 +298,7 @@ "mean_process": 0 } }, - "timestamp": "2024-06-14T14:53:35.363616", + "timestamp": "2024-12-20T14:36:34.422569", "error": [], "connected": true }, @@ -322,10 +357,14 @@ "blosc_compressor": 0, "blosc_level": 0, "blosc_shuffle": 0, + "dims": [ + 256, + 512 + ], "chunks": [ 1, - 512, - 256 + 256, + 512 ] }, "uid": { @@ -351,6 +390,73 @@ } } } + }, + "command": { + "dummy": { + "allowed": { + "value": [ + "print" + ], + "writeable": false, + "type": "list" + }, + "execute": { + "value": "", + "writeable": true, + "type": "str" + } + }, + "hdf": { + "allowed": { + "value": [ + "start_writing", + "stop_writing" + ], + "writeable": false, + "type": "list" + }, + "execute": { + "value": "", + "writeable": true, + "type": "str" + } + } + } + }, + "config": { + "hdf": { + "acquisition_id": { + "value": "", + "writeable": true, + "type": "str" + }, + "frames": { + "value": 0, + "writeable": true, + "type": "int" + }, + "file": { + "path": { + "value": "", + "writeable": true, + "type": "str" + }, + "prefix": { + "value": "", + "writeable": true, + "type": "str" + }, + "extension": { + "value": "h5", + "writeable": true, + "type": "str" + } + }, + "write": { + "value": false, + "writeable": true, + "type": "bool" + } } } }