Add tests for SSL and and trial versions

This commit is contained in:
pemontto 2019-10-18 17:56:55 +01:00
parent 3707af1488
commit ab70e6f11d
No known key found for this signature in database
GPG key ID: EDCB93C3DA1B5DA9
11 changed files with 257 additions and 9 deletions

View file

@ -1,5 +1,5 @@
---
- name: Elasticsearch Xpack tests initial
- name: Elasticsearch Xpack HTTP different keystore and truststore with password
hosts: localhost
post_tasks:
- include: elasticsearch/test/integration/debug.yml
@ -27,6 +27,13 @@
- alerting
es_api_basic_auth_username: elastic
es_api_basic_auth_password: changeme
es_enable_http_ssl: false
es_enable_transport_ssl: true
es_ssl_keystore: "files/certs/keystore-password.p12"
es_ssl_truststore: "files/certs/truststore-password.p12"
es_ssl_keystore_password: password1
es_ssl_truststore_password: password2
es_validate_certs: no
es_role_mapping:
power_user:
- "cn=admins,dc=example,dc=com"
@ -107,7 +114,7 @@
- create_index
#modifies the installation. Changes es_admin password and upgrades ES. Tests confirm the correct version is installed.
- name: Elasticsearch Xpack modify
- name: Elasticsearch Xpack HTTP SSL and shared keystore without password
hosts: localhost
post_tasks:
- include: elasticsearch/test/integration/debug.yml
@ -133,6 +140,13 @@
- alerting
es_api_basic_auth_username: elastic
es_api_basic_auth_password: elasticChanged
es_enable_http_ssl: true
es_enable_transport_ssl: true
es_ssl_keystore: "files/certs/shared-store-no-password.p12"
es_ssl_truststore: "files/certs/shared-store-no-password.p12"
es_ssl_keystore_password: ""
es_ssl_truststore_password: ""
es_validate_certs: no
es_role_mapping:
power_user:
- "cn=admins,dc=example,dc=com"