fix: remove http delete-kinds regression
This commit is contained in:
@@ -253,6 +253,12 @@ def test_http_delete_generation_legacy_404_fails_closed_without_body_leak(monkey
|
||||
assert "secret" not in str(error.value)
|
||||
|
||||
|
||||
def test_http_rest_client_does_not_advertise_nonexistent_delete_kinds_rpc():
|
||||
client = VectorRestClient(RestConfig(base_url="https://vectors.test", api_key="writer"))
|
||||
|
||||
assert hasattr(client, "delete_kinds") is False
|
||||
|
||||
|
||||
def test_http_list_evidence_generations_exact_rpc_and_legacy_fail_closed(monkeypatch):
|
||||
calls = []
|
||||
monkeypatch.setattr(
|
||||
|
||||
@@ -161,4 +161,5 @@ def test_memory_clear_accepts_qdrant_only_runtime_config(tmp_path, monkeypatch):
|
||||
res = CliRunner().invoke(app, ["memory", "clear", "--yes", "-c", str(cfg)])
|
||||
|
||||
assert res.exit_code == 0, res.output
|
||||
assert store.deleted == [("memory", ["memory"])]
|
||||
assert not registry.exists()
|
||||
|
||||
@@ -35,6 +35,7 @@ def test_http_store_supports_writer_without_reader():
|
||||
assert store.capabilities.search is False
|
||||
assert store.capabilities.existing_hashes is True
|
||||
assert store.capabilities.upsert is True
|
||||
assert hasattr(store, "delete_kinds") is False
|
||||
with pytest.raises(VectorReadUnavailable):
|
||||
store.search(["memory"], [0.1], limit=1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user