From: Alan T. DeKok Date: Sun, 11 Aug 2024 21:08:46 +0000 (-0400) Subject: ignore Message-Authenticator in replies X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6fdd69dcaf7e3137afc75d915cae173e0c8d604;p=thirdparty%2Ffreeradius-server.git ignore Message-Authenticator in replies --- diff --git a/src/tests/radclient/all.mk b/src/tests/radclient/all.mk index 3bec606566b..5d935cbb970 100644 --- a/src/tests/radclient/all.mk +++ b/src/tests/radclient/all.mk @@ -87,7 +87,9 @@ $(OUTPUT)/%: $(DIR)/% $(BUILD_DIR)/bin/local/$(RADCLIENT) $(BUILD_DIR)/lib/local # or # 2. call the script src/test/radclient/$test.cmd to validate the build/test/radclient/$test.out # - ${Q}if [ -e "$(EXPECTED)" ] && ! diff -I 'Sent' -I 'Received' $(EXPECTED) $(FOUND); then \ + ${Q}grep -v 'Message-Authenticator' $(FOUND) > $(FOUND).out + ${Q}mv $(FOUND).out $(FOUND) + ${Q}if [ -e "$(EXPECTED)" ] && ! diff -I 'Sent' -I 'Received' $(EXPECTED) $(FOUND); then \ echo "RADCLIENT FAILED $@"; \ echo "RADIUSD: $(RADIUSD_RUN)"; \ echo "RADCLIENT: $(TEST_BIN)/$(RADCLIENT) $(ARGV) -C $(RADCLIENT_CLIENT_PORT) -f $< -d src/tests/radclient/config -D share/dictionary 127.0.0.1:$(radclient_port) $(TYPE) $(SECRET)"; \ diff --git a/src/tests/radclient/auth_1.out b/src/tests/radclient/auth_1.out index 970ed35712c..89e62dbefae 100644 --- a/src/tests/radclient/auth_1.out +++ b/src/tests/radclient/auth_1.out @@ -2,5 +2,5 @@ Sent Access-Request Id 123 from 0.0.0.0:1234 to 127.0.0.1:12340 length 43 User-Name = "bob" User-Password = "hello" Password.Cleartext = "hello" -Received Access-Accept Id 123 from 127.0.0.1:12340 to 0.0.0.0:1234 via lo length 20 +Received Access-Accept Id 123 from 127.0.0.1:12340 to 0.0.0.0:1234 via lo length 38 (0) src/tests/radclient/auth_1.txt response code 2