Skip to content

Commit

Permalink
Added call support to jtcl
Browse files Browse the repository at this point in the history
  • Loading branch information
landro committed Apr 29, 2016
1 parent ee68e22 commit 43d44da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example_irule_call.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ it "should redirect to the same url but using https" {
on HTTP::uri return "/bar"
on HTTP::host return "www.foo.com"
endstate HTTP::redirect https://www.foo.com/bar
run irules/call_irule.tcl Simple
run irules/call_irule.tcl call
}

stats
4 changes: 4 additions & 0 deletions src/onirule.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,7 @@ proc ::testcl::run {irule rulename} {
}
testcl::assertStringEquals "rule $rulename" $result
}

proc ::testcl::call args {
return [eval $args]
}

0 comments on commit 43d44da

Please sign in to comment.