Added some simple tests, so that we won't forget to test the server
authoraland <aland>
Fri, 28 Mar 2003 16:56:07 +0000 (16:56 +0000)
committeraland <aland>
Fri, 28 Mar 2003 16:56:07 +0000 (16:56 +0000)
src/tests/README [new file with mode: 0644]
src/tests/mschapv1 [new file with mode: 0644]
src/tests/user_password [new file with mode: 0644]

diff --git a/src/tests/README b/src/tests/README
new file mode 100644 (file)
index 0000000..2ae05e1
--- /dev/null
@@ -0,0 +1,9 @@
+  This is a preliminary test repository, to ensure that we have
+a collection of tests which work, and which may be used to debug/verify
+the functionality of the server.
+
+  There is no test harness yet, but the tests should be of the format:
+
+#U  -- entry to go in 'users' file'
+attributes...
+#R  -- data received in the 'reply'
diff --git a/src/tests/mschapv1 b/src/tests/mschapv1
new file mode 100644 (file)
index 0000000..2aa935c
--- /dev/null
@@ -0,0 +1,9 @@
+#U
+#Ubob  User-Password == "bob"
+#U
+User-Name = "bob", MS-CHAP-Challenge = 0xb9634adc358b2ab3, MS-CHAP-Response = 0xb9010000000000000000000000000000000000000000000000007a42408782f745ef90a86fd21b0d9294132750f4af66a419
+#R
+#Rrad_recv: Access-Accept packet
+#R     MS-CHAP-MPPE-Keys = 0x4318b176c3d8e3de9a936faf344359a0f1e3c9b5585b9f1f0000000000000000
+#R     MS-MPPE-Encryption-Policy = 0x00000001
+#R     MS-MPPE-Encryption-Types = 0x00000006
diff --git a/src/tests/user_password b/src/tests/user_password
new file mode 100644 (file)
index 0000000..ad5a733
--- /dev/null
@@ -0,0 +1,6 @@
+#U
+#Ubob  User-Password == "bob"
+#U
+User-Name = "bob", User-Password = "bob"
+#R
+#Rrad_recv: Access-Accept packet