Connector Framework Server 12.11

# Ingest Data for Testing

To ingest data for testing purposes, use the `IngestTest` action. You can use this action to view the output of the ingestion process for a small amount of data, without the data being indexed into IDOL.

TIP: CFS includes an XSL template to help you send `IngestTest` actions. Open a web browser and navigate to `http://host:7000/action=IngestTest&Template=IngestTest` (where `host` is the machine where CFS is running and `7000` is the CFS ACI port).

Micro Focus does not support the XSL template, it is provided only as an example of a template that you could build.

The `IngestTest` action has the following parameters:

    /action=IngestTest
                 &config=[base64_encoded_config]
                 &adds=[URL_encoded_adds_xml]

`IngestTest` is similar to the `Ingest` action, but has the following differences which make it suitable for testing:

- `IngestTest` is a synchronous action, and the document data is returned in the ACI response.
- Indexing, whether as a result of ingestion or as a result of an import task, is disabled.
- Update and Delete commands are disabled (you cannot use the `updates` and `removes` action parameters like you can with the `Ingest` action).
- Any writer tasks that have been configured (`IdxWriter`, `XmlWriter`, `JsonWriter`, `CsvWriter`, `SqlWriter`) are disabled.
- Logging to the import log stream is disabled. The log messages are redirected to the action response.
- The global Lua variable `is_test` is set to `true`. You can use this variable in your Lua scripts to prevent certain parts of your scripts from running when you use the `IngestTest` action.

For more information about the `IngestTest` action and its parameters, refer to the Connector Framework Server Reference.

© Copyright 2022 Micro Focus or one of its affiliates
Version 12.11 | Last updated February 2022

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Connector Framework Server 12.11

Topic Title: Ingest Data for Testing