Commit graph

4 commits

Author SHA1 Message Date
Court Ewing
5e9df5240e Configurable shield credentials for tests
While there are still hardcoded defaults, this change allows people to
specify custom credentials via environment variables for each shield
role in our tests.

Fixes #5967
2016-01-21 19:47:00 +00:00
Court Ewing
cf314f9577 Inline documentation for kbn_server test utility 2016-01-15 18:09:22 -05:00
Court Ewing
5462788eb6 Basic support for running server tests with shield
These changes will make sure the kibana server in tests is using shield
credentials, as are any requests made through the kbn_server test
helper.

The current credentials are hardcoded based on our internal best
practices, but they should be made configurable in the future.

This will pass credentials to ES regardless of whether shield is
actually enabled, but that will have no negative effect if shield
happens to be disabled.
2016-01-15 18:09:13 -05:00
Court Ewing
f0f2c631eb Abstract kbn server setup in tests
The new kbn_server test utility allows us to setup KbnServer instances
with consistent defaults and make requests through a common test-only
interface. These abstractions allow us to configure global behaviors
such as shield authorization for all of our tests rather than
re-implementing it in every test.
2016-01-15 18:09:03 -05:00