An open API service indexing awesome lists of open source software.

https://github.com/redis-field-engineering/redis-connect-integration-test

Integration (black-box) testing for redis-connect
https://github.com/redis-field-engineering/redis-connect-integration-test

Last synced: 2 months ago
JSON representation

Integration (black-box) testing for redis-connect

Awesome Lists containing this project

README

        

# redis-connect-integration-test

## Prerequisites


• Redis Connect connector (e.g. SQL Server connector) is setup and running with the same source database, schema and table(s) as redis-connect-integration-test.

• Please have Java Runtime Environment ([OpenJRE](https://openjdk.java.net/install/) or OracleJRE) installed prior to running redis-connect-integration-test.

## Download

Download the [latest release](https://github.com/redis-field-engineering/redis-connect-integration-test/releases) and un-tar (e.g. tar -xvf redis-connect-integration-test-1.0.1.tar.gz) the archive.

All the contents would be extracted under redis-connect-integration-test directory

Contents of redis-connect-integration-test

• bin – contains script files

• lib – contains java libraries

• config – contains sample config and data files for integration tests

## Launch


[*nix OS](https://en.wikipedia.org/wiki/Unix-like):
`redis-connect-integration-test/bin$ ./start.sh`

Windows OS:
`redis-connect-integration-test\bin> start.bat`

```bash
Usage: redis-connect-integration-test [OPTIONS] [COMMAND]
Integration test framework for redis-connect.
-h, --help Show this help message and exit.
Commands:
compare Compares Source and Target raw events in the same sequence as it occurs.
loadsqldata Load data into source table using sql insert statements.
loadsqlandcompare Load source table with sql inserts and compare them with target JSON objects.
loadcsvdata Load CSV data to source table.
loadcsvandcompare Load CSV data to source and print live comparisons.
```
## Print Raw Events

| :memo: |
|---------------|
Post-Processor usage: Use `eventTranslatorConfig` instead of `eventTranslator` in the JobConfig.yml under `pipelineConfig` to generate raw events from the source.

````yaml
pipelineConfig:
eventTranslatorConfig:
translator: "${sourceValueTranslator}"
postprocessor: PRINT_RAW_CE
````