-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overwriting Fields in iRule #49
Comments
Why would you try to mock out the uri when your're actually hardcoding it? That doesn't make any sense to me. Could you please elaborate on the use case for this? |
One use-case that I have is that if a certain |
@landro hope that this can help elaborate on why it would be a useful feature 🙂 irule.tcl
test.tcl
|
Thanks for providing this example @ernst-at-tv2 ! |
figured out that I can actually test this if I do I'm a bit puzzled as to what the difference between doing it like this is? I've hit another snag where I'm testing It might be a separate issue, just wanted to mention it. |
I am trying to verify that a URI rewrite is occuring -- Is it expected that you are unable to overwrite a field that you already set in the test with an iRule? For example:
iRule:
Test:
in the debug, it looks like the value is getting set
debug HTTP::uri set: /foobar
However, when the verify executes it goes back to what was set in the on
info Returning value '/foo' for procedure call 'HTTP::uri'
error Verification 'URI is rewritten to' failed - expression: {/foobar} eq {/foo}
I know there is an issue trying to overwrite when using before statements, but wasn't sure if it was possible in the actual iRule. Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: