Skip to content

Commit

Permalink
Moved validation integration test into 10_basic suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
adhulipa committed Jun 8, 2018
1 parent 610c0d6 commit e4d2613
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,16 @@
}
}
- match: { _id: "my_watch" }

---
"Test empty body is rejected by put watch":
- do:
cluster.health:
wait_for_status: yellow

- do:
catch: bad_request
xpack.watcher.put_watch:
id: "my_watch"
- match: { error.root_cause.0.type: "action_request_validation_exception" }
- match: { error.root_cause.0.reason: "Validation Failed: 1: request body is missing;" }

This file was deleted.

0 comments on commit e4d2613

Please sign in to comment.