Skip to content

Adding custom namespaces to Tiger #67

@svbergmann

Description

@svbergmann

Inside the user manual, it says that you are able to easily add custom namespaces to Tiger via

TigerJexlExecutor.registerAdditionalNamespace(<namespace-prefix>, <namespace class or object)

This is taken from "Chapter 6.10.3 Adding custom namespaces"

But this does not work how we expect it to work. We would like to add a custom namespace which is able to be called inside the tiger config at the very start of the testsuite to manipulate the headers from requests going through the proxy.

The example code we want to use is as follows:

Proxy:
  type: tigerProxy
  tigerProxyConfiguration:
    modifications:
      - condition: "isRequest"
        targetElement: "$.header['X-Flow-Id']"
        replaceWith: "!{perf:uuid()}"

Other values are omitted for clarity. We have the custom namespace called "perf" which we want to use inside the "replaceWith" block. This does not resolve though because the namespace is not loaded yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions