Skip to content

Commit

Permalink
Add a new "contains" feature (#34738)
Browse files Browse the repository at this point in the history
The contains syntax was added in #30874 but the skips were not properly
put in place.
The java runner has the feature so the tests will run as part of the
build, but language clients will be able to support it at their own
pace.
  • Loading branch information
alpar-t committed Oct 25, 2018
1 parent 153157e commit 5953696
Show file tree
Hide file tree
Showing 27 changed files with 84 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for Matrix Aggs Plugin
#
"Matrix stats aggs loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"Module loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"Ingest common installed":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for Expression scripts
#
"Expression loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for Mustache scripts
#
"Mustache loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for Painless Plugin
#
"Painless plugin loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ teardown:

---
"Module repository-url is loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for Netty transport
#
"Netty loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for Azure Classic Discovery component
#
"Discovery Azure Classic loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for Discovery EC2 component
#
"Discovery EC2 loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for Discovery GCE components
#
"Discovery GCE loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# tests that the custom suggester plugin is installed
---
"plugin loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for the painless whitelist example plugin
#
"Plugin loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for the expert scoring script example plugin
#
"Plugin loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for the expert scoring script example plugin
#
"Plugin loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"Ingest attachment plugin installed":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"Ingest plugin installed":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"ingest-user-agent plugin installed":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for repository-azure
#
"Plugin repository-azure is loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for repository-gcs
#
"Plugin repository-gcs is loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Check plugin is installed
#
"Plugin loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Check plugin is installed
#
"Plugin loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for repository-s3
#
"Plugin repository-s3 is loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for SMB Store component
#
"SMB Store loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ public final class Features {
"stash_in_path",
"stash_path_replace",
"warnings",
"yaml"));
"yaml",
"contains"
));

private Features() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ teardown:
---

"Test get_user_privileges for single role":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
headers: { Authorization: "Basic dGVzdC0xOjEyMzQ1Njc4" } # test-1
xpack.security.get_user_privileges: {}
Expand Down Expand Up @@ -261,6 +264,9 @@ teardown:
---

"Test get_user_privileges for merged roles":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
headers: { Authorization: "Basic dGVzdC0zOjEyMzQ1Njc4" } # test-3
xpack.security.get_user_privileges: {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Integration tests for monitoring
#
"X-Pack loaded":
- skip:
reason: "contains is a newly added assertion"
features: contains
- do:
cluster.state: {}

Expand Down

0 comments on commit 5953696

Please sign in to comment.