diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-19 23:18:09 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-19 23:18:09 +0000 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /spec/helpers/projects/google_cloud/cloudsql_helper_spec.rb | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) | |
download | gitlab-ce-6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde.tar.gz |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/helpers/projects/google_cloud/cloudsql_helper_spec.rb')
-rw-r--r-- | spec/helpers/projects/google_cloud/cloudsql_helper_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/helpers/projects/google_cloud/cloudsql_helper_spec.rb b/spec/helpers/projects/google_cloud/cloudsql_helper_spec.rb new file mode 100644 index 00000000000..6b82518592f --- /dev/null +++ b/spec/helpers/projects/google_cloud/cloudsql_helper_spec.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Projects::GoogleCloud::CloudsqlHelper do + describe '#TIERS' do + it 'is an array' do + expect(described_class::TIERS).to be_an_instance_of(Array) + end + end + + describe '#VERSIONS' do + it 'returns versions for :postgres' do + expect(described_class::VERSIONS[:postgres]).to be_an_instance_of(Array) + end + + it 'returns versions for :mysql' do + expect(described_class::VERSIONS[:mysql]).to be_an_instance_of(Array) + end + + it 'returns versions for :sqlserver' do + expect(described_class::VERSIONS[:sqlserver]).to be_an_instance_of(Array) + end + end +end |