]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
tacacs: Move regression tests into their own file
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 18 Mar 2023 04:45:25 +0000 (00:45 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 27 Mar 2023 22:59:42 +0000 (16:59 -0600)
src/tests/unit/protocols/tacacs/base.txt
src/tests/unit/protocols/tacacs/regression.txt [new file with mode: 0644]

index bd7ac0f8d8fe559815d66a345c9bf9abba1a8f93..4742189e3e546dae43829fe25e69d0b746e89455 100644 (file)
@@ -49,16 +49,6 @@ match Packet.Version-Major = Plus, Packet.Version-Minor = 0, Packet.Packet-Type
 encode-proto -
 match c0 02 02 00 e1 66 78 e6 00 00 00 13 02 59 f9 90 38 81 e1 bb 9d a6 13 93 fc 86 7e 4a 14 1c 24
 
-#
-#  Authorization - Response: (Client <- Server)
-#
-#  Flags = Single-Connect
-#
-#  Regression test - Flags VP not respected
-#
-encode-proto Packet.Version-Major = Plus, Packet.Version-Minor = 0, Packet.Packet-Type = Authorization, Packet.Sequence-Number = 2, Packet.Flags = Single-Connect, Packet.Session-Id = 3781589222, Packet.Length = 19, Packet-Body-Type = Response, Authorization-Status = Pass-Add, Server-Message = "", Data = 0x, Argument-List = "addr=1.2.3.4"
-match c0 02 02 04 e1 66 78 e6 00 00 00 13 02 59 f9 90 38 81 e1 bb 9d a6 13 93 fc 86 7e 4a 14 1c 24
-
 #
 #  Accounting - Request: (Client -> Server)
 #
diff --git a/src/tests/unit/protocols/tacacs/regression.txt b/src/tests/unit/protocols/tacacs/regression.txt
new file mode 100644 (file)
index 0000000..a538a99
--- /dev/null
@@ -0,0 +1,17 @@
+#  Test vectors for TACACS attributes
+#
+#  Copyright 2023 Network RADIUS SARL (legal@networkradius.com)
+#
+proto tacacs
+proto-dictionary tacacs
+fuzzer-out tacacs
+
+#
+#  Authorization - Response: (Client <- Server)
+#
+#  Flags = Single-Connect
+#
+#  Regression test - Flags VP not respected
+#
+encode-proto Packet.Version-Major = Plus, Packet.Version-Minor = 0, Packet.Packet-Type = Authorization, Packet.Sequence-Number = 2, Packet.Flags = Single-Connect, Packet.Session-Id = 3781589222, Packet.Length = 19, Packet-Body-Type = Response, Authorization-Status = Pass-Add, Server-Message = "", Data = 0x, Argument-List = "addr=1.2.3.4"
+match c0 02 02 04 e1 66 78 e6 00 00 00 13 02 59 f9 90 38 81 e1 bb 9d a6 13 93 fc 86 7e 4a 14 1c 24