Skip to content

Commit

Permalink
test(connector): add es-sink compatible test (#14522)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuefengze authored and Little-Wallace committed Jan 20, 2024
1 parent 7c33962 commit a856a2e
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 2 deletions.
22 changes: 22 additions & 0 deletions integration_tests/elasticsearch-sink/create_sink.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,25 @@ FROM
username = 'elastic',
password = 'risingwave'
);

CREATE SINK es7_types_sink
FROM
es_types WITH (
connector = 'elasticsearch',
index = 'test_types',
primary_key = 'types_id',
url = 'http://elasticsearch7:9200',
username = 'elastic',
password = 'risingwave'
);

CREATE SINK es8_types_sink
FROM
es_types WITH (
connector = 'elasticsearch',
index = 'test_types',
primary_key = 'types_id',
url = 'http://elasticsearch8:9200',
username = 'elastic',
password = 'risingwave'
);
44 changes: 43 additions & 1 deletion integration_tests/elasticsearch-sink/create_source.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion integration_tests/elasticsearch-sink/sink_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import subprocess
import sys

relations = ['test']
relations = ['test', 'test_types']

failed_cases = []
versions = ['7', '8']
Expand Down

0 comments on commit a856a2e

Please sign in to comment.