SIENTIAPDE-1478

Enhance API class to format timestamps correctly and improve logging. Update test cases to include 'end_time' parameter for better data retrieval flexibility.
This commit is contained in:
vitor-aignosi
2026-01-23 10:40:30 -03:00
parent fb4bef317d
commit cf367f2319
2 changed files with 8 additions and 5 deletions

View File

@@ -139,6 +139,7 @@ async def test_get_tag_values_success(api_activity):
'tag3': {'webid': 'webid3', 'aggr_function': 'avg', 'data_range': [0, 100]},
},
start_time='*-1d',
end_time='*',
max_count=10,
metadata=metadata['metadata'],
request_timeout=30,
@@ -193,6 +194,7 @@ async def test_get_tag_values_with_default_max_count(api_activity):
endpoint='/streamsets/recorded',
web_ids={'tag1': {'webid': 'webid1', 'aggr_function': 'avg', 'data_range': [0, 100]}},
start_time='*-1h',
end_time='*',
max_count=1,
metadata=metadata['metadata'],
request_timeout=15,