--- /dev/null
+update request {
+ &User-Name := 'bob'
+}
+
+subrequest Access-Request &request &reply.Tmp-Group-0 {
+ subrequest Access-Request &request &reply.Tmp-Group-0 {
+ if (!&User-Name) {
+ test_fail
+ }
+
+ if (&User-Name != 'bob') {
+ test_fail
+ }
+
+ update reply {
+ &Tmp-String-0 := 'hello from subrequest'
+ }
+ }
+}
+
+if (!&reply.Tmp-Group-0.Tmp-Group-0) {
+ test_fail
+}
+
+if (!&reply.Tmp-Group-0.Tmp-Group-0.Tmp-String-0) {
+ test_fail
+}
+
+if (&reply.Tmp-Group-0.Tmp-Group-0.Tmp-String-0 != 'hello from subrequest') {
+ test_fail
+}
+
+success
+