Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.94 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.94 KB

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 or OracleJRE) installed prior to running redis-connect-integration-test.

Download

Download the latest release 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: redis-connect-integration-test/bin$ ./start.sh
Windows OS: redis-connect-integration-test\bin> start.bat

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

📝
Post-Processor usage: Use eventTranslatorConfig instead of eventTranslator in the JobConfig.yml under pipelineConfig to generate raw events from the source.
pipelineConfig:
  eventTranslatorConfig:
    translator: "${sourceValueTranslator}"
    postprocessor: PRINT_RAW_CE