]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
DHCPv4 encoder/decoder xlat tests are no longer valid
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 18 Sep 2020 02:27:33 +0000 (21:27 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 21 Sep 2020 16:17:23 +0000 (11:17 -0500)
the xlats should be removed soon

src/tests/modules/dhcpv4/all.mk [deleted file]
src/tests/modules/dhcpv4/module.conf [deleted file]
src/tests/modules/dhcpv4/xlat_decode.unlang [deleted file]
src/tests/modules/dhcpv4/xlat_encode.unlang [deleted file]

diff --git a/src/tests/modules/dhcpv4/all.mk b/src/tests/modules/dhcpv4/all.mk
deleted file mode 100644 (file)
index 207beb2..0000000
+++ /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 (file)
index a37f207..0000000
+++ /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 (file)
index beda72b..0000000
+++ /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 (file)
index c9794ad..0000000
+++ /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
-}