File tree 2 files changed +6
-3
lines changed
main/resources/org/opensearch/alerting/alerts
test/kotlin/org/opensearch/alerting/alerts
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"dynamic" : " strict" ,
3
3
"_meta" : {
4
- "schema_version" : 3
4
+ "schema_version" : 4
5
5
},
6
6
"properties" : {
7
7
"schema_version" : {
46
46
"type" : " keyword"
47
47
}
48
48
}
49
+ },
50
+ "fields" : {
51
+ "type" : " text"
49
52
}
50
53
}
51
54
},
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class AlertIndicesIT : AlertingRestTestCase() {
75
75
76
76
putFindingMappings(
77
77
AlertIndices .findingMapping().trimStart(' {' ).trimEnd(' }' )
78
- .replace(" \" schema_version\" : 3 " , " \" schema_version\" : 0" )
78
+ .replace(" \" schema_version\" : 4 " , " \" schema_version\" : 0" )
79
79
)
80
80
assertIndexExists(AlertIndices .FINDING_HISTORY_WRITE_INDEX )
81
81
verifyIndexSchemaVersion(AlertIndices .FINDING_HISTORY_WRITE_INDEX , 0 )
@@ -89,7 +89,7 @@ class AlertIndicesIT : AlertingRestTestCase() {
89
89
executeMonitor(trueMonitor.id)
90
90
assertIndexExists(AlertIndices .FINDING_HISTORY_WRITE_INDEX )
91
91
verifyIndexSchemaVersion(ScheduledJob .SCHEDULED_JOBS_INDEX , 8 )
92
- verifyIndexSchemaVersion(AlertIndices .FINDING_HISTORY_WRITE_INDEX , 3 )
92
+ verifyIndexSchemaVersion(AlertIndices .FINDING_HISTORY_WRITE_INDEX , 4 )
93
93
}
94
94
95
95
fun `test alert index gets recreated automatically if deleted` () {
You can’t perform that action at this time.
0 commit comments