Skip to content
Snippets Groups Projects
Commit 2b779db8 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-781: add basic integration-test

parent ff36576f
No related branches found
No related tags found
1 merge request!328Resolve L2SS-781-add-observation-device-to-archiver
......@@ -11,6 +11,7 @@ from tangostationcontrol.integration_test.base import BaseIntegrationTestCase
from tangostationcontrol.toolkit.archiver import Archiver
from tangostationcontrol.toolkit.retriever import RetrieverTimescale
from tangostationcontrol.toolkit.archiver_util import attribute_fqdn
from tangostationcontrol.toolkit.archiver_configurator import get_multimember_devices
from tangostationcontrol.integration_test.device_proxy import TestDeviceProxy
import time
......@@ -214,3 +215,13 @@ class TestArchiver(BaseIntegrationTestCase):
records = self.retriever.get_lofar_attribute(attr_fullname)
wait+=1
return records
def test_get_multimember_devices(self):
"""Test if multimember devices are correctly identified"""
config_dict = self.archiver.get_configuration()
self.assertIsNotNone(config_dict)
env_dict = config_dict['devices']
matched_devices_dict = get_multimember_devices(env_dict)
self.assertIsNotNone(matched_devices_dict)
# TODO add assertions when multi-member devices will be added to TangoDB
......@@ -89,7 +89,6 @@ def get_multimember_devices(env_dict:dict):
# Get a Tango DB reference
tangodb = Database()
# Scan configuration dictionary for possible multi-member devices
#matched_devices = []
matched_devices_dict = {}
for device in env_dict:
# Search for asterisk in device names
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment