Skip to content

Commit 902cfcd

Browse files
committed
iter
1 parent 202ed2c commit 902cfcd

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

test/framework/src/main/java/org/elasticsearch/logsdb/datageneration/matchers/source/FieldSpecificMatcher.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,23 @@ Object convert(Object value, Object nullValue) {
334334
}
335335
}
336336

337+
// TODO basic implementation only right now
338+
class DateMatcher extends GenericMappingAwareMatcher {
339+
DateMatcher(
340+
XContentBuilder actualMappings,
341+
Settings.Builder actualSettings,
342+
XContentBuilder expectedMappings,
343+
Settings.Builder expectedSettings
344+
) {
345+
super("date", actualMappings, actualSettings, expectedMappings, expectedSettings);
346+
}
347+
348+
@Override
349+
Object convert(Object value, Object nullValue) {
350+
return value;
351+
}
352+
}
353+
337354
/**
338355
* Generic matcher that supports common matching logic like null values.
339356
*/

test/framework/src/main/java/org/elasticsearch/logsdb/datageneration/matchers/source/SourceMatcher.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public SourceMatcher(
5353
this.fieldSpecificMatchers = new HashMap<>() {
5454
{
5555
put("keyword", new FieldSpecificMatcher.KeywordMatcher(actualMappings, actualSettings, expectedMappings, expectedSettings));
56+
put("date", new FieldSpecificMatcher.DateMatcher(actualMappings, actualSettings, expectedMappings, expectedSettings));
5657
put(
5758
"long",
5859
new FieldSpecificMatcher.NumberMatcher("long", actualMappings, actualSettings, expectedMappings, expectedSettings)

0 commit comments

Comments
 (0)