]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Set dependencies correctly for return keyword tests
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Sep 2019 14:26:47 +0000 (09:26 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 10 Sep 2019 14:30:05 +0000 (09:30 -0500)
src/tests/keywords/return-break-mix
src/tests/keywords/return-group
src/tests/keywords/return-section
src/tests/keywords/return-within-condition-dynamic
src/tests/keywords/return-within-condition-static
src/tests/keywords/return-within-foreach
src/tests/keywords/return-within-policy

index 077999ebd5d998b0a77b30365c119cad6a5e286e..cfb47168c8c13e5e5fedb85b371bb762ed6648a3 100644 (file)
@@ -1,3 +1,6 @@
+#
+#  PRE: update if return foreach
+#
 update control {
        &Tmp-Integer-0 += 0
        &Tmp-Integer-0 += 1
index e65c49db9a68dd22a144abb34ef3002d1499843a..541eb62abb2185c0d31976b8f04d6cca8632d5a3 100644 (file)
@@ -1,4 +1,5 @@
-# PRE: return
+#
+#  PRE: update if return
 #
 update {
        &control:Auth-Type = 'Accept'
index 4b3ef0b8db7cb6a93ec13839da08c2e7735584e2..5a9b0d3407045d6572280a76d6c700c171f216ce 100644 (file)
@@ -1,5 +1,5 @@
 #
-#  PRE: update if
+#  PRE: update if return
 #
 update control {
        &Cleartext-Password := 'hello'
index bf89755485f531891b3ed48d4117408b3ab9d923..eda067742ff5a20c0711325ead4ae9ce7b6e6128 100644 (file)
@@ -1,3 +1,6 @@
+#
+#  PRE: update if
+#
 if (&User-Name == 'bob') {
        success
        return
index ea7b583eb60eff5fcb833be7c2fbaf08c45e2bfe..3cbf90303b3755ad497b6e6147fbcf853af3fce5 100644 (file)
@@ -1,3 +1,6 @@
+#
+#  PRE: update if return
+#
 if ("no" == no) {
        success
        return
index c7129089f1891bffc8f5928508ba1699eac2f8bf..dae399c66956dab7a21307643f7a7805028eb629 100644 (file)
@@ -1,3 +1,6 @@
+#
+#  PRE: update if return foreach
+#
 update control {
        &Tmp-Integer-0 += 0
        &Tmp-Integer-0 += 1
index 60254cd18fc0fe176a955d66460376a473426c25..d3d04cffc5ec1bce2f6e8162f5f5bfd77b31f712 100644 (file)
@@ -1,3 +1,6 @@
+#
+#  PRE: update if return
+#
 group {
        # Return must stop after the policy, otherwise we don't setup the test for success
        policy_return