diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-01 06:10:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-01 06:10:42 +0300 |
commit | 24ed1c84da7fb6df910f06552bc9e2e7fe5bcb59 (patch) | |
tree | 2e648cbac693d1fe3dd2720c9f608470998d6b03 /spec/support/shared_examples/database_health_status_indicators/prometheus_alert_based_shared_examples.rb | |
parent | 533fed8bd825f93b4b43bd41d41caa38cfc6ae55 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/shared_examples/database_health_status_indicators/prometheus_alert_based_shared_examples.rb')
-rw-r--r-- | spec/support/shared_examples/database_health_status_indicators/prometheus_alert_based_shared_examples.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_examples/database_health_status_indicators/prometheus_alert_based_shared_examples.rb b/spec/support/shared_examples/database_health_status_indicators/prometheus_alert_based_shared_examples.rb index 109a349a652..ddc438cb652 100644 --- a/spec/support/shared_examples/database_health_status_indicators/prometheus_alert_based_shared_examples.rb +++ b/spec/support/shared_examples/database_health_status_indicators/prometheus_alert_based_shared_examples.rb @@ -2,7 +2,7 @@ RSpec.shared_examples 'Prometheus Alert based health indicator' do let(:schema) { :main } - let(:connection) { Gitlab::Database.database_base_models[schema].connection } + let(:connection) { Gitlab::Database.database_base_models_with_gitlab_shared[schema].connection } around do |example| Gitlab::Database::SharedModel.using_connection(connection) do @@ -124,7 +124,7 @@ RSpec.shared_examples 'Prometheus Alert based health indicator' do end end - Gitlab::Database.database_base_models.each do |database_base_model, connection| + Gitlab::Database.database_base_models_with_gitlab_shared.each do |database_base_model, connection| next unless connection.present? it_behaves_like 'Patroni Apdex Evaluator', database_base_model.to_sym |