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
- Host: GitHub
- URL: https://github.com/redis-field-engineering/redis-connect-integration-test
- Owner: redis-field-engineering
- Created: 2021-03-17T01:53:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-25T02:48:57.000Z (over 1 year ago)
- Last Synced: 2025-01-25T12:09:04.435Z (4 months ago)
- Language: Java
- Homepage:
- Size: 161 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
````