Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/gitlab/database/reflection_spec.rb')
-rw-r--r--spec/lib/gitlab/database/reflection_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/database/reflection_spec.rb b/spec/lib/gitlab/database/reflection_spec.rb
index efc5bd1c1e1..389e93364c8 100644
--- a/spec/lib/gitlab/database/reflection_spec.rb
+++ b/spec/lib/gitlab/database/reflection_spec.rb
@@ -314,6 +314,12 @@ RSpec.describe Gitlab::Database::Reflection do
expect(database.flavor).to eq('Azure Database for PostgreSQL - Single Server')
end
+ it 'recognizes AlloyDB for PostgreSQL' do
+ stub_statements("SELECT name FROM pg_settings WHERE name LIKE 'alloydb%'")
+
+ expect(database.flavor).to eq('AlloyDB for PostgreSQL')
+ end
+
it 'returns nil if can not recognize the flavor' do
expect(database.flavor).to be_nil
end