Define a set of common SQL tests that all driver specific directories links to.
[freeradius.git] / src / tests / modules / sql_sqlite / acct_start_conflict.unlang
deleted file mode 100644 (file)
index 81b3f84e6eda49b94a3ec09758f182d9d05fb743..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,78 +0,0 @@
-#
-#  PRE: acct_2_stop
-#
-#  Check that conflicting unique IDs triggers failover to alternative query
-#
-
-#
-#  Clear out old data
-#
-update {
-       Tmp-String-0 := "%{sql:DELETE FROM radacct WHERE AcctSessionId = '00000001'}"
-}
-if (!&Tmp-String-0) {
-       test_fail
-}
-else {
-       test_pass
-}
-
-#
-#  Insert the Accounting-Request start
-#
-sql.accounting
-if (ok) {
-       test_pass
-}
-else {
-       test_fail
-}
-
-#
-#  Check the database has at least one row
-#
-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
-}
-
-#
-#  Check acctsessiontime matches the value in the request
-#
-update {
-       Tmp-Integer-0 := "%{sql:SELECT acctsessiontime FROM radacct WHERE AcctSessionId = '00000001'}"
-}
-if (!&Tmp-Integer-0 || (&Tmp-Integer-0 != 0)) {
-       test_fail
-}
-else {
-       test_pass
-}
-
-#
-#  Change acctsessiontime and verify it's updated
-#
-update request {
-       Connect-Info = 'updated'
-}
-sql.accounting
-if (ok) {
-       test_pass
-}
-else {
-       test_pass
-}
-update {
-       Tmp-String-0 := "%{sql:SELECT connectinfo_start FROM radacct WHERE AcctSessionId = '00000001'}"
-}
-if (!&Tmp-Integer-0 || (&Tmp-String-0 != 'updated')) {
-       test_fail
-}
-else {
-       test_pass
-}
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..da357987801874fb0b98cacbc85fa8737ad856f7
--- /dev/null
@@ -0,0 +1 @@
+../sql/acct_start_conflict.unlang
\ No newline at end of file