fix: update server_name to server_id in predictions batch test
This commit is contained in:
@@ -76,7 +76,7 @@ async def test_load_opc_slots_no_decode(slot_manager):
|
|||||||
@mark.asyncio
|
@mark.asyncio
|
||||||
async def test_load_active_ingestors(slot_manager):
|
async def test_load_active_ingestors(slot_manager):
|
||||||
slot_manager.redis_client.keys.return_value = [
|
slot_manager.redis_client.keys.return_value = [
|
||||||
b"heartbeat:ingestor:1", b"heartbeat:ingestor:2", b"heartbeat:ingestor:3"]
|
b"heartbeat:ingestor:1", b"heartbeat:ingestor:2", "heartbeat:ingestor:3"]
|
||||||
|
|
||||||
response = await slot_manager.load_active_ingestors()
|
response = await slot_manager.load_active_ingestors()
|
||||||
|
|
||||||
|
|||||||
@@ -139,12 +139,12 @@ def test_predictions_batch(mock_process_path_priority,
|
|||||||
"query": "test_query",
|
"query": "test_query",
|
||||||
"write_tags": [
|
"write_tags": [
|
||||||
{
|
{
|
||||||
"server_name": "test_server_name",
|
"server_id": "test_server_id",
|
||||||
"type": "prediction",
|
"type": "prediction",
|
||||||
"addr": "test_addr"
|
"addr": "test_addr"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"server_name": "test_server_name",
|
"server_id": "test_server_id",
|
||||||
"type": "confidence",
|
"type": "confidence",
|
||||||
"addr": "test_addr"
|
"addr": "test_addr"
|
||||||
}
|
}
|
||||||
@@ -210,7 +210,7 @@ def test_predictions_batch(mock_process_path_priority,
|
|||||||
"table_name": "predictions",
|
"table_name": "predictions",
|
||||||
"retention_time": 60 * 60,
|
"retention_time": 60 * 60,
|
||||||
"opc_output_config": {
|
"opc_output_config": {
|
||||||
"test_server_name": {
|
"test_server_id": {
|
||||||
"prediction_tags": {
|
"prediction_tags": {
|
||||||
"test_addr": {
|
"test_addr": {
|
||||||
"data_type": "float"
|
"data_type": "float"
|
||||||
|
|||||||
Reference in New Issue
Block a user