-
Notifications
You must be signed in to change notification settings - Fork 13
Add index tags #169
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
Add index tags #169
Changes from 4 commits
2225d61
ea7ed9a
54f9890
5bde9dd
d45381b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,6 @@ | |
|
|
||
| import static org.junit.jupiter.api.Assertions.*; | ||
|
|
||
|
|
||
| public class ListEndpointTest { | ||
| private static final TestResourcesManager indexManager = TestResourcesManager.getInstance(); | ||
| private static Index indexConnection; | ||
|
|
@@ -70,13 +69,6 @@ public void testSyncListEndpoint() throws InterruptedException { | |
| listResponseWithPaginationNoPrefix1.getPagination().getNext() | ||
| ); | ||
| assertEquals(listResponseWithPaginationNoPrefix2.getVectorsList().size(), 2); | ||
| ListResponse listResponseWithPaginationNoPrefix3 = indexConnection.list( | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove extra checks that are failing consistently in integration tests
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are they failing?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The total number of vectors in the custom namespace ("example-namespace") is 4. When |
||
| customNamespace, | ||
| 2, | ||
| listResponseWithPaginationNoPrefix2.getPagination().getNext() | ||
| ); | ||
| assertEquals(listResponseWithPaginationNoPrefix3.getVectorsList().size(), 0); | ||
| assertEquals(listResponseWithPaginationNoPrefix3.getPagination().getNext(), ""); | ||
| } | ||
|
|
||
| @Test | ||
|
|
@@ -122,14 +114,5 @@ public void testAsyncListEndpoint() throws InterruptedException { | |
| ); | ||
| ListResponse asyncListResponseWithPaginationNoPrefix2 = Futures.getUnchecked(futureResponseWithPaginationNoPrefix2); | ||
| assertEquals(asyncListResponseWithPaginationNoPrefix2.getVectorsList().size(), 2); | ||
| ListenableFuture<ListResponse> futureResponseWithPaginationNoPrefix3 = asyncIndexConnection.list( | ||
| customNamespace, | ||
| 2, | ||
| asyncListResponseWithPaginationNoPrefix2.getPagination().getNext() | ||
| ); | ||
| ListResponse asyncListResponseWithPaginationNoPrefix3 = Futures.getUnchecked(futureResponseWithPaginationNoPrefix3); | ||
| assertEquals(asyncListResponseWithPaginationNoPrefix3.getVectorsList().size(), 0); | ||
| assertEquals(asyncListResponseWithPaginationNoPrefix3.getPagination().getNext(), ""); | ||
| } | ||
|
|
||
| } | ||
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.
You may want to add an assertion for the tags that are applied to the index since we're doing that for
DeletionProtection.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.
Good point, added the additional assertions