Skip to content

Commit e4d2613

Browse files
committed
Moved validation integration test into 10_basic suite.
1 parent 610c0d6 commit e4d2613

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

x-pack/plugin/src/test/resources/rest-api-spec/test/watcher/put_watch/10_basic.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,16 @@
3636
}
3737
}
3838
- match: { _id: "my_watch" }
39+
40+
---
41+
"Test empty body is rejected by put watch":
42+
- do:
43+
cluster.health:
44+
wait_for_status: yellow
45+
46+
- do:
47+
catch: bad_request
48+
xpack.watcher.put_watch:
49+
id: "my_watch"
50+
- match: { error.root_cause.0.type: "action_request_validation_exception" }
51+
- match: { error.root_cause.0.reason: "Validation Failed: 1: request body is missing;" }

x-pack/plugin/src/test/resources/rest-api-spec/test/watcher/put_watch/90_put_watch_content_validation.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)