mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Test: just create json based alerts
Original commit: elastic/x-pack-elasticsearch@6aa88ac5a1
This commit is contained in:
parent
b4a465496a
commit
c0c5b3cf6b
@ -114,16 +114,7 @@ public abstract class AbstractAlertingTests extends ElasticsearchIntegrationTest
|
||||
}
|
||||
|
||||
protected BytesReference createAlertSource(String cron, SearchRequest conditionRequest, String conditionScript, Map<String,Object> metadata) throws IOException {
|
||||
XContentBuilder builder;
|
||||
if (randomBoolean()) {
|
||||
builder = jsonBuilder();
|
||||
} else if (randomBoolean()) {
|
||||
builder = yamlBuilder();
|
||||
} else if (randomBoolean()) {
|
||||
builder = cborBuilder();
|
||||
} else {
|
||||
builder = smileBuilder();
|
||||
}
|
||||
XContentBuilder builder = jsonBuilder();
|
||||
builder.startObject();
|
||||
|
||||
builder.startObject("schedule")
|
||||
|
Loading…
x
Reference in New Issue
Block a user