Skip to content

support for event context validation #33

Description

@samstep

Hi, I would like to request a feature to validate the commands in event context- this is something that F5 does on saving of an iRule, however TesTcl misses entirely . for example the following iRUle will fail to save on F5

rule bad_context {
when HTTP_RESPONSE {
log local.0 "URI is: [HTTP::uri]"
}

}

the error message will be "command not valid in the current event context (HTTP_RESPONSE)[HTTP::uri]

This is a must-have feature in my opinion - the above iRule must raise an error in TesTCL (currently it doesn't!).

DevCentral lists which commands are valid in which event context so I hope this isn't a difficult feature to implement

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions