Skip to content

Commit

Permalink
Add to built in privs test
Browse files Browse the repository at this point in the history
  • Loading branch information
n1v0lg committed Aug 29, 2023
1 parent 553f75c commit 1121138
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
14 changes: 0 additions & 14 deletions x-pack/docs/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.elasticsearch.gradle.internal.info.BuildParams

apply plugin: 'elasticsearch.docs-test'
apply plugin: 'elasticsearch.rest-resources'

Expand Down Expand Up @@ -29,18 +27,6 @@ restResources {
}
}

// TODO: Remove the following when the following features are released. These tests include new privileges only available under feature flags
// which require snapshot builds:
// * Data Stream Lifecycle. manage_data_stream_lifecycle privilege is only available with dlm_feature_flag_enabled set
// We disable these tests for snapshot builds to maintain release build coverage.
tasks.named("yamlRestTest").configure {
if (BuildParams.isSnapshotBuild()) {
systemProperty 'tests.rest.blacklist', '*/get-builtin-privileges/*'
} else {
systemProperty 'tests.rest.blacklist', ['*/create-cross-cluster-api-key/*', '*/update-cross-cluster-api-key/*'].join(',')
}
}

testClusters.matching { it.name == "yamlRestTest" }.configureEach {
extraConfigFile 'op-jwks.json', project(':x-pack:test:idp-fixture').file("oidc/op-jwks.json")
extraConfigFile 'idp-docs-metadata.xml', project(':x-pack:test:idp-fixture').file("idp/shibboleth-idp/metadata/idp-docs-metadata.xml")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ A successful call returns an object with "cluster" and "index" fields.
"index",
"maintenance",
"manage",
"manage_data_stream_lifecycle",
"manage_follow_index",
"manage_ilm",
"manage_leader_index",
Expand Down

0 comments on commit 1121138

Please sign in to comment.