haystack/rest_api/test/samples/test.haystack-pipeline.yml
Massimiliano Pippi 82df677ebf
API tests (#2738)
* clean up tests and run earlier

* use change detection

* better naming, skip ES

* more cleanup

* fix job name

* dummy commit to trigger the CI

* mock away the PDF converter

* make the test compatible with 3.7

* removed leftover

* always run the api tests, use a matrix for the OS

* refactor all the tests

* remove outdated dependency

* pylint

* new abstract method

* adjust for older python versions

* rename pipeline file

* address PR comments
2022-07-14 15:36:28 +02:00

37 lines
805 B
YAML

version: 'unstable'
components:
- name: TestReader
type: MockReader
- name: TestRetriever
type: MockRetriever
params:
document_store: TestDocumentStore
- name: TestDocumentStore
type: MockDocumentStore
- name: TestPreprocessor
type: PreProcessor
params:
clean_whitespace: true
- name: TestPDFConverter
type: MockPDFToTextConverter
params:
remove_numeric_tables: false
pipelines:
- name: test-query
nodes:
- name: TestRetriever
inputs: [Query]
- name: TestReader
inputs: [TestRetriever]
- name: test-indexing
nodes:
- name: TestPDFConverter
inputs: [File]
- name: TestPreprocessor
inputs: [TestPDFConverter]
- name: TestDocumentStore
inputs: [TestPreprocessor]