def test_get_data():
        """
        Requests for the meta data associated to a TS
        """
        ntdm = NonTemporalDataMgr()

        # Fake answer definition
        httpretty.register_uri(
            httpretty.GET,
            'http://%s:%s/TemporalDataManagerWebApp/webapi/processdata/exec4' %
            (TEST_HOST, TEST_PORT),
            body=
            '[{"id":1,"processId":"exec4","dataType":"CSV","name":"distance_matrix.csv"}]',
            status=200,
            content_type='text/json')

        ntdm.get_data("exec4")
Example #2
0
    def list(process_id):
        """
        Reads the ProcessData resource list matching the process_id.

        :param process_id: processId of the filtered resources. It can be the ID of an executable algorithm,
          or any other data producer identifier.
        :type process_id: int or str

        :return: the data without BLOB content: list of resources matching the process_id.
           Each resource is a dict mapping the ProcessData json from RestFul API: dict with entries:
             - id
             - processId
             - name
             - dataType

        :rtype: list
        """
        ntdm = NonTemporalDataMgr()
        return ntdm.get_data(process_id=process_id)