Connector Framework Server 25.2
Connector Framework Server Help

# Enable or Disable Lua Scripts During Testing

Lua scripts run by CFS can read a global Lua variable, `is_test`.

- When a script runs as part of an `Ingest` action, this variable is `false`.
- When a script runs as part of an `IngestTest` action, this variable is `true`.

You can use the `is_test` variable to enable or disable parts of a script. For example:

    if is_test then
       -- The part of the script to enable for IngestTest
       -- (or disable for Ingest)
    end

    if not is_test then
       -- The part of the script to disable for IngestTest
       -- (or enable for Ingest)
    end

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Connector Framework Server 25.2

Topic Title: Enable or Disable Lua Scripts During Testing