]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More tests for switch
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 12 May 2024 16:56:21 +0000 (10:56 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 12 May 2024 17:15:08 +0000 (11:15 -0600)
src/tests/keywords/switch

index 28009f4c2626355a4e67482ffeccfb316b8137ce..b95853fff0f92553198c28bd37a6bb94dfc7bf62 100644 (file)
@@ -5,9 +5,27 @@ switch &User-Name {
 
        case "doug" {
                &Filter-Id := "doug"
+               test_fail
        }
 
        default {
                &Filter-Id := "default"
+               test_fail
+       }
+}
+
+switch "%{User-Name}" {
+       case 'bob' {
+               success
+       }
+
+       case 'doug' {
+               &Filter-Id := "doug"
+               test_fail
+       }
+
+       default {
+               &Filter-Id := "default"
+               test_fail
        }
 }