]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use user1, not user2
authorAlan T. DeKok <aland@freeradius.org>
Fri, 19 Jun 2015 20:41:40 +0000 (16:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 19 Jun 2015 20:41:40 +0000 (16:41 -0400)
src/tests/modules/sql/acct_1_update.attrs
src/tests/modules/sql/acct_1_update.unlang

index 0c20e4d60bc872d0ccba9e05914a28c416ae00da..28db958ca0e251c42fb9d760bc5cd5d0d9ac4204 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  Input packet
 #
-User-Name = 'user2@example.org'
+User-Name = 'user1@example.org'
 NAS-Port = 17826193
 NAS-IP-Address = 192.0.2.10
 Framed-IP-Address = 198.51.100.59
@@ -10,8 +10,8 @@ Acct-Status-Type = Interim-Update
 Acct-Delay-Time = 1
 Acct-Input-Octets = 10
 Acct-Output-Octets = 10
-Acct-Session-Id = '00000000'
-Acct-Unique-Session-Id = '00000000'
+Acct-Session-Id = '00000001'
+Acct-Unique-Session-Id = '00000001'
 Acct-Authentic = RADIUS
 Acct-Session-Time = 30
 Acct-Input-Packets = 10
index a2fa8e434d5ac97562f28f14032a571d30338e36..e566a4ac5f171f6d1c1b8c6a3cd0700212b295b9 100644 (file)
@@ -10,7 +10,7 @@ else {
 }
 
 update {
-       Tmp-Integer-0 := "%{sql:SELECT count(*) FROM radacct WHERE AcctSessionId = '00000000'}"
+       Tmp-Integer-0 := "%{sql:SELECT count(*) FROM radacct WHERE AcctSessionId = '00000001'}"
 }
 if (!&Tmp-Integer-0 || (&Tmp-Integer-0 != 1)) {
        test_fail
@@ -20,7 +20,7 @@ else {
 }
 
 update {
-       Tmp-Integer-0 := "%{sql:SELECT acctsessiontime FROM radacct WHERE AcctSessionId = '00000000'}"
+       Tmp-Integer-0 := "%{sql:SELECT acctsessiontime FROM radacct WHERE AcctSessionId = '00000001'}"
 }
 if (!&Tmp-Integer-0 || (&Tmp-Integer-0 != 30)) {
        test_fail