Skip to content

Commit d069b14

Browse files
committed
Added test resource files
1 parent adb4e35 commit d069b14

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

src/test/java/io/confluent/kafka/connect/datagen/DatagenTaskTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public void shouldFailToGenerateComplexRegexWithStackOverflow() throws Exception
257257
expectedException.expectMessage("Unable to generate random record");
258258
generateRecords();
259259
}
260-
260+
261261
private void generateAndValidateRecordsFor(DatagenTask.Quickstart quickstart) throws Exception {
262262
createTaskWith(quickstart);
263263
generateRecords();
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"type": "record",
3+
"name": "regex_record",
4+
"fields":
5+
[
6+
{
7+
"name": "regex_key",
8+
"type":
9+
{
10+
"type": "string",
11+
"arg.properties": {
12+
"regex": "\\S+_a+/",
13+
"length": 100
14+
}
15+
}
16+
}
17+
]
18+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"type": "record",
3+
"name": "regex_record",
4+
"fields":
5+
[
6+
{
7+
"name": "regex_key",
8+
"type":
9+
{
10+
"type": "string",
11+
"arg.properties": {
12+
"regex": "(.{1,6})( *, *(.{1,6})){0,12}"
13+
}
14+
}
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)