summaryrefslogtreecommitdiffstats
path: root/src/tests/modules/sql/acct_1_update.unlang
blob: e566a4ac5f171f6d1c1b8c6a3cd0700212b295b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
#  PRE: acct_0_start
#
sql.accounting
if (ok) {
	test_pass
}
else {
	test_fail
}

update {
	Tmp-Integer-0 := "%{sql:SELECT count(*) FROM radacct WHERE AcctSessionId = '00000001'}"
}
if (!&Tmp-Integer-0 || (&Tmp-Integer-0 != 1)) {
	test_fail
}
else {
	test_pass
}

update {
	Tmp-Integer-0 := "%{sql:SELECT acctsessiontime FROM radacct WHERE AcctSessionId = '00000001'}"
}
if (!&Tmp-Integer-0 || (&Tmp-Integer-0 != 30)) {
	test_fail
}
else {
	test_pass
}