Пример #1
0
 def compose_sub():
     resource("ska_low/tm_subarray_node/1").assert_attribute(
         "State").equals("ON")
     resource("ska_low/tm_subarray_node/1").assert_attribute(
         "obsState").equals("EMPTY")
     assign_resources_file = (
         "resources/test_data/TMC_integration/mccs_assign_resources.json"
     )
     assign_resources_str = load_config_from_file(assign_resources_file)
     CentralNode = DeviceProxy("ska_low/tm_central/central_node")
     CentralNode.AssignResources(assign_resources_str)
     LOGGER.info("Invoked AssignResources on CentralNode")
Пример #2
0
def compose_sub():
    resource("ska_low/tm_subarray_node/1").assert_attribute("State").equals("ON")
    resource("ska_low/tm_subarray_node/1").assert_attribute("obsState").equals("EMPTY")
    assign_resources_file = download_test_data(
        "low_assign_resources_v1.json",
        "skampi-test-data/tmc-integration/assign-resources",
    )
    config = load_config_from_file(assign_resources_file)
    os.remove(assign_resources_file)
    CentralNodeLow = DeviceProxy("ska_low/tm_central/central_node")
    CentralNodeLow.AssignResources(config)
    the_waiter = waiter()
    the_waiter.wait()
    LOGGER.info("Invoked AssignResources on CentralNodeLow")
Пример #3
0
def compose_sub():
    resource("ska_mid/tm_subarray_node/1").assert_attribute("State").equals(
        "ON")
    resource("ska_mid/tm_subarray_node/1").assert_attribute("obsState").equals(
        "EMPTY")
    assign_resources_file = "resources/test_data/TMC_integration/assign_resources1.json"
    sdp_block = update_resource_config_file(assign_resources_file)
    LOGGER.info("_______sdp_block________" + str(sdp_block))
    config = load_config_from_file(assign_resources_file)
    CentralNode = DeviceProxy("ska_mid/tm_central/central_node")
    CentralNode.AssignResources(config)
    the_waiter = waiter()
    the_waiter.wait()
    LOGGER.info("Invoked AssignResources on CentralNode")
    return sdp_block
Пример #4
0
def compose_sub():
    resource('ska_mid/tm_subarray_node/1').assert_attribute('State').equals(
        'ON')
    resource('ska_mid/tm_subarray_node/1').assert_attribute('obsState').equals(
        'EMPTY')
    assign_resources_file = download_test_data(
        "mid_assign_resources_v1.json",
        "skampi-test-data/tmc-integration/assign-resources")
    sdp_block = update_resource_config_file(assign_resources_file)
    LOGGER.info("_______sdp_block________" + str(sdp_block))
    config = load_config_from_file(assign_resources_file)
    os.remove(assign_resources_file)
    CentralNode = DeviceProxy('ska_mid/tm_central/central_node')
    CentralNode.AssignResources(config)
    the_waiter = waiter()
    the_waiter.wait()
    LOGGER.info('Invoked AssignResources on CentralNode')
    return sdp_block