コード例 #1
0
ファイル: rpc_interface.py プロジェクト: song-buaa/autotest
def get_host_queue_entries(**filter_data):
    """
    :return: A sequence of nested dictionaries of host and job information.
    """
    return rpc_utils.prepare_rows_as_nested_dicts(
        models.HostQueueEntry.query_objects(filter_data),
        ('host', 'atomic_group', 'job'))
コード例 #2
0
ファイル: rpc_interface.py プロジェクト: Rakshithkn/autotest
def get_host_queue_entries(**filter_data):
    """
    :return: A sequence of nested dictionaries of host and job information.
    """
    return rpc_utils.prepare_rows_as_nested_dicts(
        models.HostQueueEntry.query_objects(filter_data),
        ('host', 'atomic_group', 'job'))
コード例 #3
0
ファイル: rpc_interface.py プロジェクト: dvhart/autotest
def get_labels(**filter_data):
    """
    :return: A sequence of nested dictionaries of label information.
    """
    return rpc_utils.prepare_rows_as_nested_dicts(
        models.Label.query_objects(filter_data),
        ('atomic_group',))
コード例 #4
0
ファイル: rpc_interface.py プロジェクト: vincentInsz/autotest
def get_labels(**filter_data):
    """\
    @returns A sequence of nested dictionaries of label information.
    """
    return rpc_utils.prepare_rows_as_nested_dicts(
            models.Label.query_objects(filter_data),
            ('atomic_group',))
コード例 #5
0
ファイル: rpc_interface.py プロジェクト: song-buaa/autotest
def get_recurring(**filter_data):
    """
    Return recurring jobs.

    :param filter_data: Filters out which recurring jobs to get.
    :return: Sequence of recurring jobs.
    """
    return rpc_utils.prepare_rows_as_nested_dicts(
        models.RecurringRun.query_objects(filter_data), ('job', 'owner'))
コード例 #6
0
ファイル: rpc_interface.py プロジェクト: song-buaa/autotest
def get_labels(**filter_data):
    """
    Get labels.

    :param filter_data: Filters out which labels to get.
    :return: A sequence of nested dictionaries of label information.
    """
    return rpc_utils.prepare_rows_as_nested_dicts(
        models.Label.query_objects(filter_data), ('atomic_group', ))
コード例 #7
0
ファイル: rpc_interface.py プロジェクト: Rakshithkn/autotest
def get_recurring(**filter_data):
    """
    Return recurring jobs.

    :param filter_data: Filters out which recurring jobs to get.
    :return: Sequence of recurring jobs.
    """
    return rpc_utils.prepare_rows_as_nested_dicts(
        models.RecurringRun.query_objects(filter_data),
        ('job', 'owner'))
コード例 #8
0
ファイル: rpc_interface.py プロジェクト: Rakshithkn/autotest
def get_special_tasks(**filter_data):
    return rpc_utils.prepare_rows_as_nested_dicts(
        models.SpecialTask.query_objects(filter_data),
        ('host', 'queue_entry'))
コード例 #9
0
ファイル: rpc_interface.py プロジェクト: spiceqa/autotest
def get_recurring(**filter_data):
    return rpc_utils.prepare_rows_as_nested_dicts(models.RecurringRun.query_objects(filter_data), ("job", "owner"))
コード例 #10
0
ファイル: rpc_interface.py プロジェクト: song-buaa/autotest
def get_special_tasks(**filter_data):
    return rpc_utils.prepare_rows_as_nested_dicts(
        models.SpecialTask.query_objects(filter_data), ('host', 'queue_entry'))
コード例 #11
0
ファイル: rpc_interface.py プロジェクト: vi-patel/autotest
def get_recurring(**filter_data):
    return rpc_utils.prepare_rows_as_nested_dicts(
        models.RecurringRun.query_objects(filter_data), ('job', 'owner'))