]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove "debug attribute lists" from tests
authorAlan T. DeKok <aland@freeradius.org>
Sun, 20 Nov 2022 13:02:12 +0000 (08:02 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 21 Nov 2022 15:51:11 +0000 (10:51 -0500)
if the tests fail, a developer can add those manually

src/tests/keywords/base64
src/tests/keywords/edit-abort.ignore
src/tests/keywords/edit-intersection
src/tests/keywords/edit-leaf-octets
src/tests/keywords/edit-merge
src/tests/keywords/edit-merge-lhs
src/tests/keywords/edit-union
src/tests/keywords/ipaddr.raw
src/tests/keywords/update-filter
src/tests/keywords/update-remove-index
src/tests/keywords/xlat-list

index 920f15c13297e0dc8428735ddadbfb4f384a650f..696c26d31ac66da895503a39a8b5cb77be09e54c 100644 (file)
@@ -29,8 +29,6 @@ ok
        &Tmp-String-9           = "%{base64:%{Tmp-Cast-Byte}}"
 }
 
-%(debug_attr:request[*])
-
 # String - bin 0x39383730
 if (&Tmp-String-0[0] != 'OTg3MA==') {
        test_fail
index 1a4f4d825110dd75c874ca6fb1ca0bdea9c99566..8ef8a09b1c62420f46f68c209347c85c378de909 100644 (file)
@@ -13,9 +13,6 @@ update request {
 &Tmp-Integer-0 += 5
 &Tmp-Integer-1 -= 16   # Run-time underflow!
 
-# try to see what's up
-%(debug_attr:request[*])
-
 #
 #  The various edits above should have been reverted.
 #
index 9efc6c55ba712e799aa0d982c01d90f44a96e8c8..c64a2028b73fc1d68146cf52fbaf6e48c37f23ce 100644 (file)
@@ -9,13 +9,11 @@
 
 #  must exist
 if (!&reply.Tmp-String-0) {
-       %(debug_attr:reply[*])
        test_fail
 }
 
 # and have the correct value
 if (&reply.Tmp-String-0 != "foo") {
-       %(debug_attr:reply[*])
        test_fail
 }
 
@@ -31,7 +29,6 @@ if (&reply.Tmp-String-0 != "foo") {
 
 #  must NOT exist
 if (&reply.Tmp-String-0) {
-       %(debug_attr:reply[*])
        test_fail
 }
 
index eb9e20b2be11514ac8b28537ed26f4476b34f91d..deb4ae06720f93c8d26c76192f93178271b0b9e8 100644 (file)
@@ -5,12 +5,10 @@
 &Framed-IP-Address := 0x7f000001
 
 if (!&Framed-IP-Address) {
-       %(debug_attr:request[*])
        test_fail
 }
 
 if (&Framed-IP-Address != 127.0.0.1) {
-       %(debug_attr:request[*])
        test_fail
 }
 
index 3ae0d27cc842344e01253ce46fef72cf3628e34b..6279252f1f3eb7e5722aeab21704e9eddb33fd5b 100644 (file)
@@ -20,13 +20,11 @@ if (!&Tmp-String-0) {
 
 # The original value should be unchanged
 if (!(&Tmp-String-0 == "foo")) {
-       %(debug_attr:request[*])
        test_fail
 }
 
 #  and the new value should not be there
 if (&Tmp-String-0 == "bar") {
-       %(debug_attr:request[*])
        test_fail
 }
 
index 57662ed62343d57ee22d60f9f54a4a127d14dfef..f65c71ac866508584f967dff204f0ccfc5ce03f9 100644 (file)
@@ -20,13 +20,11 @@ if (!&Tmp-String-0) {
 
 # we want the *control* version
 if (!(&Tmp-String-0 == "bar")) {
-       %(debug_attr:request[*])
        test_fail
 }
 
 #  and the original value should not be there
 if (&Tmp-String-0 == "foo") {
-       %(debug_attr:request[*])
        test_fail
 }
 
index a486f1410522b9a68a98e7439ee21ff1037a6883..e2fc655c864cbe1dbd60c4d25226845f519f9d3c 100644 (file)
@@ -20,13 +20,11 @@ if (!&Tmp-String-0) {
 
 # The original value should be unchanged
 if (&Tmp-String-0[0] != "foo") {
-       %(debug_attr:request[*])
        test_fail
 }
 
 #  and the new value should be there, too
 if (&Tmp-String-0[1] != "bar") {
-       %(debug_attr:request[*])
        test_fail
 }
 
index ae519a9452d4955332df6e5eead32bdc58767522..b732bdbe2b47d80b7883ccab91c4be3f14aeb396 100644 (file)
@@ -7,8 +7,6 @@
 #
 &raw.4 = 0x010203
 
-debug_request
-
 if (!&raw.4) {
        test_fail
 }
index 2012910e29c961f377a78fbfc2a035450dc5124b..fdc11494f6cc1668e5489f2c41e76fab28e78034 100644 (file)
@@ -18,8 +18,6 @@ update control {
 #  @fixme - EDIT - all kinds of other things are broken, and no time currently to debug them.
 #
 
-debug_request
-
 #
 #  Integer ==
 #
@@ -39,8 +37,6 @@ if ("%{Tmp-String-0[#]}" != 3) {
        test_fail
 }
 
-debug_request
-
 # Reset the request list
 &request := &control
 
@@ -59,8 +55,6 @@ if ("%{Tmp-String-0[#]}" != 1) {
        test_fail
 }
 
-debug_request
-
 # Reset the request list
 &request := &control
 
@@ -220,8 +214,6 @@ if ("%{Tmp-String-0[#]}" != 1) {
        test_fail
 }
 
-debug_request
-
 update control {
        &Auth-Type := Accept
 }
index cb0386f8feaa8b6ef10c5b9cb4166ecea81e18cb..3794602118b95b08a37b230784a8a5b60a8bd593 100644 (file)
@@ -12,8 +12,6 @@ update {
        &Tmp-IP-Address-0 += 192.0.2.4
 }
 
-debug_request
-
 #
 #  @fixme - EDIT - we should not be allowed to remove by both
 #  index AND value.  Or, we should... and the edit code needs
@@ -23,8 +21,6 @@ update request {
        &Tmp-IP-Address-0[3] -= 192.0.2.2
 }
 
-debug_request
-
 # Only the 1st, 2nd, 3rd and 5th Tmp-IP-Address attributes should still be in the list
 if (("%{Tmp-IP-Address-0[0]}" != '192.0.2.1') ||
        ("%{Tmp-IP-Address-0[1]}" != '192.0.2.2') ||
index e683a72757d7f6ef9e724911c1c48ccecf52074c..94d8613a22076dc199d93c6c10732632de4e6fe6 100644 (file)
@@ -7,8 +7,6 @@ if ("%{control[#]}" != 2) {
        test_fail
 }
 
-debug_control
-
 if ("%{control[0]}" != 192.0.2.1) {
        test_fail
 }