2020-03-24 18:45:13 -04:00
|
|
|
apply plugin: 'elasticsearch.testclusters'
|
|
|
|
apply plugin: 'elasticsearch.standalone-rest-test'
|
|
|
|
apply plugin: 'elasticsearch.rest-test'
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'default')
|
|
|
|
testCompile project(path: xpackModule('identity-provider'), configuration: 'default')
|
|
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
|
|
}
|
|
|
|
|
|
|
|
testClusters.integTest {
|
|
|
|
testDistribution = 'DEFAULT'
|
|
|
|
|
|
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
|
|
|
|
|
|
setting 'xpack.idp.enabled', 'true'
|
|
|
|
setting 'xpack.idp.entity_id', 'https://idp.test.es.elasticsearch.org/'
|
|
|
|
setting 'xpack.idp.sso_endpoint.redirect', 'http://idp.test.es.elasticsearch.org/test/saml/redirect'
|
|
|
|
setting 'xpack.idp.signing.certificate', 'idp-sign.crt'
|
|
|
|
setting 'xpack.idp.signing.key', 'idp-sign.key'
|
|
|
|
setting 'xpack.idp.privileges.application', 'elastic-cloud'
|
|
|
|
|
|
|
|
setting 'xpack.security.enabled', 'true'
|
|
|
|
setting 'xpack.security.authc.token.enabled', 'true'
|
|
|
|
setting 'xpack.security.authc.api_key.enabled', 'true'
|
|
|
|
|
|
|
|
extraConfigFile 'roles.yml', file('src/test/resources/roles.yml')
|
|
|
|
extraConfigFile 'idp-sign.crt', file('src/test/resources/idp-sign.crt')
|
|
|
|
extraConfigFile 'idp-sign.key', file('src/test/resources/idp-sign.key')
|
2020-03-31 01:53:13 -04:00
|
|
|
extraConfigFile 'wildcard_services.json', file('src/test/resources/wildcard_services.json')
|
2020-03-24 18:45:13 -04:00
|
|
|
|
|
|
|
user username: "admin_user", password: "admin-password"
|
|
|
|
user username: "idp_user", password: "idp-password", role: "idp_role"
|
|
|
|
}
|