From: Arran Cudbard-Bell Date: Fri, 18 Sep 2020 02:27:33 +0000 (-0500) Subject: DHCPv4 encoder/decoder xlat tests are no longer valid X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f67be0daa05adad7bde2ec586a647875d5ce1435;p=thirdparty%2Ffreeradius-server.git DHCPv4 encoder/decoder xlat tests are no longer valid the xlats should be removed soon --- diff --git a/src/tests/modules/dhcpv4/all.mk b/src/tests/modules/dhcpv4/all.mk deleted file mode 100644 index 207beb259c7..00000000000 --- a/src/tests/modules/dhcpv4/all.mk +++ /dev/null @@ -1,3 +0,0 @@ -# -# Test the "dhcpv4" module -# diff --git a/src/tests/modules/dhcpv4/module.conf b/src/tests/modules/dhcpv4/module.conf deleted file mode 100644 index a37f207cc02..00000000000 --- a/src/tests/modules/dhcpv4/module.conf +++ /dev/null @@ -1,2 +0,0 @@ -dhcpv4 { -} diff --git a/src/tests/modules/dhcpv4/xlat_decode.unlang b/src/tests/modules/dhcpv4/xlat_decode.unlang deleted file mode 100644 index beda72b14a8..00000000000 --- a/src/tests/modules/dhcpv4/xlat_decode.unlang +++ /dev/null @@ -1,24 +0,0 @@ -update request { - &Tmp-Octets-0 := 0x520d0103abcdef0206010203040506 -} - -if ("%{dhcpv4_decode:%{Tmp-Octets-0}}" != 2) { - test_fail -} -else { - test_pass -} - -if (&DHCP-Relay-Circuit-Id != 0xabcdef) { - test_fail -} -else { - test_pass -} - -if (&DHCP-Relay-Remote-Id != 0x010203040506) { - test_fail -} -else { - test_pass -} diff --git a/src/tests/modules/dhcpv4/xlat_encode.unlang b/src/tests/modules/dhcpv4/xlat_encode.unlang deleted file mode 100644 index c9794adaee5..00000000000 --- a/src/tests/modules/dhcpv4/xlat_encode.unlang +++ /dev/null @@ -1,14 +0,0 @@ -update request { - &DHCP-Relay-Circuit-Id := 0xabcdef - &DHCP-Relay-Remote-Id := 0x010203040506 -} - -update request { - &Tmp-Octets-0 := "%{dhcpv4_encode:&request:[*]}" -} - -if (&Tmp-Octets-0 != 0x520d0103abcdef0206010203040506) { - test_fail -} else { - test_pass -}