mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-29 06:01:05 -05:00
* Use poetry for openapi tests * Use poetry for consensus tests * Use poetry for gen_storage_compat_data/populate_db.py * Make consensus_tests scripts executable * Use poetry for test-consensus-compose * Cleanup * Don't call poetry run in scripts
20 lines
530 B
Python
Executable File
20 lines
530 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import requests
|
|
import sys
|
|
|
|
from assertions import assert_http_ok
|
|
|
|
# Check that 'search' returns the same results on all peers
|
|
for i in range(2, len(sys.argv)):
|
|
r = requests.post(
|
|
f"http://127.0.0.1:{sys.argv[i]}/collections/{sys.argv[1]}/points/search", json={
|
|
"vector": [0.2, 0.1, 0.9, 0.7],
|
|
"top": 3,
|
|
}
|
|
)
|
|
assert_http_ok(r)
|
|
assert r.json()["result"][0]["id"] == 4
|
|
assert r.json()["result"][1]["id"] == 1
|
|
assert r.json()["result"][2]["id"] == 3
|