Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Commit 57d34b1

Browse files
committed
Improve regression tests with configurable endpoint and new test cases
- Make new_endpoint configurable via NEW_SERVER environment variable - Update Makefile to pass NEW_SERVER_PORT to regression tests - Add thor BTC OP RETURN conversion test case
1 parent cbfb06b commit 57d34b1

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ test-reset-cassandra-image:
2222
docker rmi graphsense/cassandra-test:4.1.4
2323

2424
test-regression:
25-
@export SKIP_REST_CONTAINER_SETUP=True && uv run pytest -m "regression" -s
25+
@export SKIP_REST_CONTAINER_SETUP=True && \
26+
export NEW_SERVER=http://localhost:$(NEW_SERVER_PORT) && \
27+
uv run pytest -m "regression" -s
2628

2729
# Loki-based migration test generation
2830
generate-migration-tests:

tests/test_regression.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
logger = logging.getLogger(__name__)
1212

1313

14-
new_endpoint = "http://localhost:9000"
14+
new_endpoint = os.environ.get("NEW_SERVER", "http://localhost:9000")
1515
current_endpoint = "https://api.test.ikna.io"
1616
current_key = os.environ.get("GS_API_KEY_TEST")
1717

@@ -143,12 +143,16 @@ def test_conversions():
143143

144144
# thor 2nd endpoint
145145
call_5 = "eth/txs/ce09a43f14088aa5ab1e2366609678c03f4b1023b5e372c6a208201601a9270f/conversions"
146-
147146
call_6 = "eth/txs/250bb9fd01c35f36b96eeac039de3841013c9ac63a74788976900a713ccd2695/conversions" # swap that has trace0 trace_address == None
148147

148+
149+
# thor BTC OP RETURN
150+
call_7 = "eth/txs/0xC0915244DC52B5EFC4F602A7C68874D689AB6F8B71D151D39244617030DB89E0/conversions"
151+
#call_7_2 = "btc/txs/0B7B76EF969D20D3015CA92726F4BA0E2070D6920DDCAC2E61ABB07C72FD1878/conversions"
152+
149153
calls = [
150154
call_1, call_2, call_3_send, call_3_receive, call_3_refund, call_4_eth_to_token,
151-
call_4_eth_to_btc_thorchain, call_5, call_6
155+
call_4_eth_to_btc_thorchain, call_5, call_6, call_7#, call_7_2
152156
]
153157
for call in calls:
154158
logger.info(f"Testing call: {call}")

0 commit comments

Comments
 (0)