From 48dc0b2e96208df768affb20598106952bc37ac9 Mon Sep 17 00:00:00 2001 From: Teal Bauer Date: Mon, 14 Apr 2025 09:50:54 +0200 Subject: [PATCH] fix: Update HTTP test to properly test xrefs --- test_http_api.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test_http_api.py b/test_http_api.py index cdda8c9..6f9fe63 100644 --- a/test_http_api.py +++ b/test_http_api.py @@ -661,18 +661,17 @@ def test_all_read_endpoints(): "/", # Root endpoint "/info", # Server info "/plugin-version", # Plugin version - "/projects", # All projects + "/project", # Current project "/instances", # All instances "/program", # Current program - "/functions", # All functions "/functions?limit=3", # Functions with pagination "/functions?name_contains=main", # Functions with name filter "/variables?limit=3", # Variables "/symbols?limit=3", # Symbols "/data?limit=3", # Data "/segments?limit=3", # Memory segments - "/memory?address=0x00100000&length=16", # Memory access - "/xrefs?limit=3", # Cross references + "/memory?address=08000000&length=16", # Memory access + "/xrefs?to_addr=08000200&limit=3", # Cross references "/analysis", # Analysis status "/address", # Current address "/function", # Current function