This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support running kibana with different configs (#1644)
* chore: match elastic-package's kibana config * chore: bring back kibana's configuration file This will enable having multiple config files per test suite, using the profile abstraction: one dir per config with the profile name * chore: rename configurations to default It will represent the default profile * chore: make kibana profile configurable Default profile will be 'default' * feat: support bootstrapping the stack with a new kibana config The bootstrap method is called before the test suite (only once) AND before each test scenario, as it has been defined as a Background clause. If an scenario wants to configure a new config file for Kibana, a new profile file with the new kibana config must be created at the compose level, using the ProfileName as directory name. * feat: create an on-the-fly elastic-package's profile from compose * chore: override default kibana config for elastic-package * fix: remove unused code * docs: document kibana config and profiles * chore: add a profile for preconfgured-policies * elas * chore: add placeholder for preconfigured policies * chore: support passing custom kibana ref to elastic-package * fix: honour current env Instead of replacing it, we want to append! * chore: unit test that we are not overriding the env (cherry picked from commit a207500)
- Loading branch information
1 parent
f69ef5b
commit a6163e3
Showing
14 changed files
with
252 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
cli/config/compose/profiles/fleet/preconfigured-policies/kibana.config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
server.name: kibana | ||
server.host: "0.0.0.0" | ||
|
||
telemetry.enabled: false | ||
|
||
elasticsearch.hosts: [ "http://elasticsearch:9200" ] | ||
elasticsearch.username: elastic | ||
elasticsearch.password: changeme | ||
xpack.monitoring.ui.container.elasticsearch.enabled: true | ||
|
||
xpack.fleet.enabled: true | ||
xpack.fleet.registryUrl: https://epr-staging.elastic.co | ||
xpack.fleet.agents.enabled: true | ||
xpack.fleet.agents.elasticsearch.host: http://elasticsearch:9200 | ||
xpack.fleet.agents.fleet_server.hosts: | ||
["http://fleet-server:8220"] | ||
|
||
xpack.encryptedSavedObjects.encryptionKey: "12345678901234567890123456789012" | ||
xpack.fleet.agents.tlsCheckDisabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@policies | ||
Feature: Preconfigured Policies | ||
Scenarios for Preconfigured Policies | ||
|
||
Scenario Outline: Example using Kibana with custom policy | ||
Given kibana uses "preconfigured-policies" profile | ||
And a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the "elastic-agent" process is in the "started" state on the host | ||
Then the agent is listed in Fleet as "online" | ||
And system package dashboards are listed in Fleet | ||
|
||
@centos | ||
Examples: Centos | ||
| os | | ||
| centos | | ||
|
||
@debian | ||
Examples: Debian | ||
| os | | ||
| debian | | ||
|
||
Scenario Outline: Example using Kibana with default config | ||
Given kibana uses "default" profile | ||
And a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the "elastic-agent" process is in the "started" state on the host | ||
Then the agent is listed in Fleet as "online" | ||
And system package dashboards are listed in Fleet | ||
|
||
@centos | ||
Examples: Centos | ||
| os | | ||
| centos | | ||
|
||
@debian | ||
Examples: Debian | ||
| os | | ||
| debian | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.