-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smoke framework support external stream (#300)
- Loading branch information
Showing
6 changed files
with
234 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
tests/stream/test_stream_smoke/0097_external_stream_sample.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"test_suite_name": "external_stream_sample", | ||
"tag": "smoke", | ||
"test_suite_config":{ | ||
"settings_to_run":["redp"], | ||
"tests_2_run": {"ids_2_run": ["all"], "tags_2_run":[], "tags_2_skip":{"default":["todo", "to_support", "change", "bug", "sample"]}} | ||
}, | ||
"comments": | ||
"Test example for external stream case.", | ||
"tests": [ | ||
|
||
{ | ||
"id": 0, | ||
"tags": ["external_stream"], | ||
"name": "json string parse from external stream", | ||
"description": "create external stream external1, and run stream query to parse json field from field raw of external1 and insert data into redpanda topic test and verify result", | ||
"steps":[ | ||
{"statements": [ | ||
{"client":"exec", "query_type":"docker", "query":"docker exec redpanda-1 rpk topic delete external_stream_test"}, | ||
{"client":"exec", "query_type":"docker","wait":2, "query":"docker exec redpanda-1 rpk topic create external_stream_test"}, | ||
{"client":"python", "query_type": "table","wait":1, "query":"drop stream if exists external1"}, | ||
{"client":"python", "query_type": "table","query_id":"9700", "wait":2, "query":"create external stream if not exists external1 (raw string) settings type='kafka', brokers='redpanda-1:9092', topic = 'external_stream_test'"}, | ||
{"client":"python","query_id":"9701", "depends_on_stream":"external1", "wait":1, "terminate":"manual","query_type": "stream", "query":"select raw:process from external1"}, | ||
{"client":"exec", "query_type": "docker", "depends_on": "9701", "wait":3, "query":"docker exec -i redpanda-1 rpk topic produce external_stream_test", "echo":{"process": "powershell.exe","entity_id": "{42FC7E13-CB3E-5C05-0000-0010A0125101}"}}, | ||
{"client":"python","query_type":"table", "query_id":"9702", "wati":3, "query":"kill query where query_id='9701'"} | ||
]} | ||
], | ||
|
||
"expected_results": [ | ||
{"query_id":"9701", "expected_results":[ | ||
["powershell.exe"]]} | ||
] | ||
} | ||
|
||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
PROTON_VERSION=testing-address-x64-620285ccce69d669f813d9701df583950a2e663b | ||
PROTON_VERSION= |
Oops, something went wrong.