we don't need to do "if" checks for parent, we can just use
the "=" operator, and let that fail-safe.
We also revert the "subrequest" test to the previous version.
The next step is to figure out why changing the xlat expansions
broke the "success" policy. But we can check that tomorrow,
once the CI tests pass again.
# Set the test to successful, but only if there are no failures.
#
success {
- if (!&reply.Result-Status) {
- &reply += {
- &Result-Status = "success"
- }
- }
-
- if (&parent.request && !&parent.reply.Result-Status) {
- &parent.reply += {
- &Result-Status = "success"
- }
- }
+ &parent.reply.Result-Status = "success"
+ &reply.Result-Status = "success"
ok
}
subrequest Access-Request {
&parent.control.User-Name := 'bob'
+ success
}
if (!&control.User-Name) {
if (!(&control.User-Name == 'bob')) {
test_fail
}
-
-success