Skip to content

Commit 376740a

Browse files
thomas-manginclaude
andcommitted
Fix fuzz tests for Wave 7 INET refactoring and include in test runner
The fuzz tests in test_update_message_integration.py were using the old INET constructor pattern (INET(AFI, SAFI, Action)) which broke after Wave 7 refactored INET to use packed-bytes-first pattern. Changes: - Add create_inet_nlri() helper using INET.from_cidr() factory method - Update all 18 failing tests to use the new helper - Update qa/bin/test_everything to run fuzz tests alongside unit tests (matching CI behavior: pytest ./tests/unit/ ./tests/fuzz/) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6346284 commit 376740a

File tree

2 files changed

+82
-159
lines changed

2 files changed

+82
-159
lines changed

qa/bin/test_everything

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def run_command(cmd: str, env: dict | None = None, shell: bool = True) -> tuple[
140140
TEST_COMMANDS: dict[str, str | list[str]] = {
141141
'ruff-format': 'uv run ruff format src tests',
142142
'ruff-check': 'uv run ruff check src qa tests',
143-
'unit': 'env exabgp_log_enable=false uv run pytest ./tests/unit/ -q',
143+
'unit': 'env exabgp_log_enable=false uv run pytest ./tests/unit/ ./tests/fuzz/ -q',
144144
'config': './sbin/exabgp configuration validate -nrv ./etc/exabgp/conf-ipself6.conf',
145145
'no-neighbor': './qa/scripts/test_no_neighbor.py',
146146
'encode-decode': './qa/scripts/test_encode_decode.py',

0 commit comments

Comments
 (0)