-
Notifications
You must be signed in to change notification settings - Fork 45
added tests for testing full ingestion cycle metadata handling #402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: fulltext
Are you sure you want to change the base?
Conversation
Signed-off-by: Nivesh Tuwani <tuwanivu@amazon.com>
I, Nivesh Tuwani <tuwanivu@amazon.com>, hereby add my Signed-off-by to this commit: 8efa09f Signed-off-by: Nivesh Tuwani <tuwanivu@amazon.com> Signed-off-by: Nivesh Tuwani <tuwanivu@amazon.com>
Signed-off-by: Nivesh Tuwani <tuwanivu@amazon.com>
Signed-off-by: Nivesh Tuwani <tuwanivu@amazon.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just took a quick peek for now. Let's rebase this on top of the other code once it's merged to clean up the diff.
# Comprehensive test: Create index with multiple field types for both tokenization and metadata validation | ||
comprehensive_index = "comprehensive_test_idx" | ||
|
||
# Create index with multiple field types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"with multiple text fields"
"SCHEMA", "title", "TEXT", "content", "TEXT", "score", "NUMERIC" | ||
) == b"OK" | ||
|
||
# Insert test data that covers both tokenization and metadata validation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the data relevant to metadata validation in any way?
|
||
# Validate index is removed from list | ||
import time | ||
time.sleep(0.5) # Brief wait for cleanup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should wait for a condition rather than sleep
"Index with name 'index123' not found", | ||
) | ||
|
||
def test_error_handling_metadata_validation(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't we talk about removing this?
These tests are for testing metadata handling in full ingestion cylce accross a cluster