@scope_monitoring
@scope_res
@deblike_minion
@skip_if_github_validation
Feature: 0126 - Monitor MLM environment with Prometheus on a Debian-like Salt minion
Description: In order to monitor Uyuni server
As an authorized user
I want to enable Prometheus exporters
File name: min_deblike_monitoring.feature
Relative path: secondary/min_deblike_monitoring.feature
@scope_monitoring
@scope_res
@deblike_minion
Scenario: Apply Prometheus exporter formulas on the Debian-like minion
Given
I am on the Systems overview page of this "deblike_minion"
00:00:00.940
+ Show Error
+ Screenshot
No system found for hostname: uyuni-master-deblike-minion (RuntimeError) ./features/support/commonlib.rb:444:in `get_system_id' ./features/step_definitions/navigation_steps.rb:502:in `/^I am on the Systems overview page of this "([^"]*)"$/' features/secondary/min_deblike_monitoring.feature:22:in `I am on the Systems overview page of this "deblike_minion"'
When
I follow "Formulas" in the content area
0s
Then
I should see a "Choose formulas:" text
0s
And
I should see a "Monitoring" text
0s
When
I check the "prometheus-exporters" formula
0s
And
I click on "Save"
0s
And
I wait until I see "Formula saved" text
0s
@scope_monitoring
@scope_res
@deblike_minion
Scenario: Configure Prometheus exporter formula on the Debian-like minion
Unable to find link "Formulas" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[3]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:171:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_deblike_monitoring.feature:31:in `I follow "Formulas" in the content area'
And
I follow "Prometheus Exporters" in the content area
0s
And
I click on "Expand All Sections"
0s
Then
I should see a "Enable and configure Prometheus exporters for managed systems." text
0s
When
I check "node" exporter
0s
And
I check "apache" exporter
0s
And
I check "postgres" exporter
0s
And
I click on "Save"
0s
Then
I should see a "Formula saved" text
0s
@scope_monitoring
@scope_res
@deblike_minion
@skip_if_github_validation
Scenario: Apply highstate for Prometheus exporters on the Debian-like minion
Unable to find link "States" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[3]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:171:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_deblike_monitoring.feature:43:in `I follow "States" in the content area'
And
I click on "Apply Highstate"
0s
Then
I should see a "Applying the highstate has been scheduled." text
0s
And
I wait until event "Apply highstate scheduled" is completed
0s
@scope_monitoring
@scope_res
@deblike_minion
@skip_if_github_validation
Scenario: Wait for services
When
I wait until "node" exporter service is active on "deblike_minion"
00:04:10.000
+ Show Error
+ Screenshot
execution expired (Timeout::Error) ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/support/remote_node.rb:189:in `run_until_ok' ./features/step_definitions/command_steps.rb:328:in `/^I wait until "([^"]*)" exporter service is active on "([^"]*)"$/' features/secondary/min_deblike_monitoring.feature:50:in `I wait until "node" exporter service is active on "deblike_minion"'
And
I wait until "apache" exporter service is active on "deblike_minion"
0s
And
I wait until "postgres" exporter service is active on "deblike_minion"
0s
@scope_monitoring
@scope_res
@deblike_minion
Scenario: Visit monitoring endpoints on the Debian-like minion
And
I visit "Prometheus node exporter" endpoint of this "deblike_minion"
00:04:10.000
+ Show Error
+ Screenshot
execution expired (Timeout::Error) ./features/support/commonlib.rb:89:in `repeat_until_timeout' ./features/support/remote_node.rb:189:in `run_until_ok' ./features/step_definitions/navigation_steps.rb:1206:in `/^I visit "([^"]*)" endpoint of this "([^"]*)"$/' features/secondary/min_deblike_monitoring.feature:55:in `I visit "Prometheus node exporter" endpoint of this "deblike_minion"'
And
I visit "Prometheus apache exporter" endpoint of this "deblike_minion"
0s
And
I visit "Prometheus postgres exporter" endpoint of this "deblike_minion"
0s
@scope_monitoring
@scope_res
@deblike_minion
Scenario: Cleanup: undo Prometheus exporter formulas on the Debian-like minion
Unable to find link "Formulas" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[3]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:171:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_deblike_monitoring.feature:60:in `I follow "Formulas" in the content area'
And
I uncheck the "prometheus-exporters" formula
0s
And
I click on "Save"
0s
Then
I wait until I see "Formula saved" text
0s
@scope_monitoring
@scope_res
@deblike_minion
@skip_if_github_validation
Scenario: Cleanup: apply highstate after test monitoring on the Debian-like minion
Unable to find link "States" within #(Capybara::Node::Element tag="section" path="/HTML/BODY[1]/DIV[3]/DIV[1]/DIV[1]/SECTION[1]") (Capybara::ElementNotFound) ./features/support/commonlib.rb:171:in `click_link_and_wait' ./features/step_definitions/navigation_steps.rb:366:in `/^I follow "([^"]*)"$/' ./features/step_definitions/navigation_steps.rb:388:in `block (2 levels) in (top (required))' ./features/step_definitions/navigation_steps.rb:387:in `/^I follow "([^"]*)" in the (.+)$/' features/secondary/min_deblike_monitoring.feature:67:in `I follow "States" in the content area'
And
I click on "Apply Highstate"
0s
Then
I should see a "Applying the highstate has been scheduled." text
0s
And
I wait until event "Apply highstate scheduled" is completed
0s