Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Initial integ tests #2

Merged
merged 7 commits into from
Feb 13, 2024
Merged

Initial integ tests #2

merged 7 commits into from
Feb 13, 2024

Conversation

HenryL27
Copy link
Collaborator

@HenryL27 HenryL27 commented Feb 9, 2024

This PR should make it easy to write integration tests for processors. Simply

# swap out "debug" for whatever configured processor/pipeline you want to test
@pytest.mark.processor_name("debug")
def test_debug(opensearch_client, upload_jsonl_index, singleton_pipeline):
    # Test code goes here
    # opensearch_client is an opensearchpy OpenSearch object pointing to the OS container
    # upload_jsonl_index is the name of the loaded index
    # singleton_pipeline is the name of the search pipeline

Signed-off-by: HenryL27 <hmlindeman@yahoo.com>
Signed-off-by: HenryL27 <hmlindeman@yahoo.com>
Signed-off-by: HenryL27 <hmlindeman@yahoo.com>
Signed-off-by: HenryL27 <hmlindeman@yahoo.com>
Signed-off-by: HenryL27 <hmlindeman@yahoo.com>
Signed-off-by: HenryL27 <hmlindeman@yahoo.com>
Signed-off-by: HenryL27 <hmlindeman@yahoo.com>
@@ -12,22 +12,30 @@ packages = [
]

[tool.poetry.dependencies]
python = "^3.11"
python = "^3.9"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blast from the past!

Copy link
Collaborator

@alexaryn alexaryn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just gonna trust you...

@HenryL27 HenryL27 merged commit b068a2c into main Feb 13, 2024
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants