#!/bin/bash # Test for invalid kind filter validation and NOTICE response # This test verifies that the relay properly responds with a NOTICE message # when a REQ contains an invalid kind value (> 65535 per NIP-01) RELAY_URL="ws://localhost:8888" TEST_NAME="Invalid Kind Filter Test" echo "==========================================" echo "$TEST_NAME" echo "==========================================" echo "" # Test 1: Send REQ with invalid kind (99999 > 65535) echo "Test 1: REQ with invalid kind 99999 (should receive NOTICE)" echo "---" RESPONSE=$(timeout 3 websocat "$RELAY_URL" <