Should not call test_pass in auth test SQL test
authorPhilippe Wooding <philippe.wooding@networkradius.com>
Sun, 17 May 2015 15:08:49 +0000 (17:08 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 2 Jun 2015 18:35:58 +0000 (14:35 -0400)
src/tests/modules/sql/auth.unlang

index 0cb9aed..141e194 100644 (file)
@@ -7,9 +7,6 @@ update {
 if (!&Tmp-String-0) {
        test_fail
 }
-else {
-       test_pass
-}
 
 update {
        Tmp-String-0 := "%{sql:INSERT INTO radcheck (username, attribute, op, value) VALUES ('foo', 'NAS-IP-Address', '==', '1.2.3.4')}"
@@ -17,9 +14,6 @@ update {
 if (!&Tmp-String-0) {
        test_fail
 }
-else {
-       test_pass
-}
 
 update {
        Tmp-String-0 := "%{sql:INSERT INTO radcheck (username, attribute, op, value) VALUES ('foo', 'Cleartext-Password', ':=', 'password')}"
@@ -27,9 +21,6 @@ update {
 if (!&Tmp-String-0) {
        test_fail
 }
-else {
-       test_pass
-}
 
 update {
        Tmp-String-0 := "%{sql:DELETE FROM radreply WHERE username = 'foo'}"
@@ -37,9 +28,6 @@ update {
 if (!&Tmp-String-0) {
        test_fail
 }
-else {
-       test_pass
-}
 
 update {
        Tmp-String-0 := "%{sql:INSERT INTO radreply (username, attribute, op, value) VALUES ('foo', 'Idle-Timeout', ':=', '3600')}"
@@ -47,8 +35,5 @@ update {
 if (!&Tmp-String-0) {
        test_fail
 }
-else {
-       test_pass
-}
 
 sql