﻿============================= test session starts =============================
platform win32 -- Python 3.11.9, pytest-9.0.1, pluggy-1.6.0
rootdir: C:\Users\rahul\.gemini\antigravity\playground\vector-meteoroid\qwed_new
configfile: pytest.ini (WARNING: ignoring pytest config in pyproject.toml!)
plugins: anyio-4.11.0, locust-2.42.6, asyncio-1.3.0, cov-7.0.0, timeout-2.4.0, xdist-3.8.0
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 4 items

tests\test_api_phase17_endpoints.py FFFF                                 [100%]

================================== FAILURES ===================================
________________________ test_verify_process_endpoint _________________________
tests\test_api_phase17_endpoints.py:21: in test_verify_process_endpoint
    assert response.status_code == 200
E   assert 422 == 200
E    +  where 422 = <Response [422 Unprocessable Entity]>.status_code
---------------------------- Captured stdout setup ----------------------------
DEBUG: DATABASE_URL=sqlite:///./qwed.db
DEBUG: CWD=C:\Users\rahul\.gemini\antigravity\playground\vector-meteoroid\qwed_new
DEBUG: Absolute DB Path=C:\Users\rahul\.gemini\antigravity\playground\vector-meteoroid\qwed_new\qwed.db
----------------------------- Captured log setup ------------------------------
WARNING  qwed_new.core.redis_config:redis_config.py:64 Redis connection failed: Error 10061 connecting to localhost:6379. No connection could be made because the target machine actively refused it.. Falling back to in-memory cache.
__________________________ test_verify_rag_endpoint ___________________________
tests\test_api_phase17_endpoints.py:36: in test_verify_rag_endpoint
    assert response.status_code == 200
E   assert 422 == 200
E    +  where 422 = <Response [422 Unprocessable Entity]>.status_code
_________________ test_verify_rag_endpoint_exception_no_leak __________________
tests\test_api_phase17_endpoints.py:53: in test_verify_rag_endpoint_exception_no_leak
    assert response.status_code == 200
E   assert 422 == 200
E    +  where 422 = <Response [422 Unprocessable Entity]>.status_code
______________________ test_agent_verify_security_checks ______________________
tests\test_api_phase17_endpoints.py:89: in test_agent_verify_security_checks
    assert "MCP Poisoning" in response2.json()["detail"]
E   AssertionError: assert 'MCP Poisoning' in 'Potential MCP Model Context Poisoning detected'
=========================== short test summary info ===========================
FAILED tests/test_api_phase17_endpoints.py::test_verify_process_endpoint - as...
FAILED tests/test_api_phase17_endpoints.py::test_verify_rag_endpoint - assert...
FAILED tests/test_api_phase17_endpoints.py::test_verify_rag_endpoint_exception_no_leak
FAILED tests/test_api_phase17_endpoints.py::test_agent_verify_security_checks
============================== 4 failed in 9.02s ==============================
