source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails_spec.rb
Ruby
apache-2.0
225
master
101,646
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do using RSpec::Parameterized::TableSyntax let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(templatesymlink runit_service)).converge('gitlab::default') } let(:redis_instances) { RedisHelper::GitlabRails::REDIS_INSTANCES } let(:redis_cluster_in...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/rails_cache_clear_spec.rb
Ruby
apache-2.0
225
master
1,609
require 'chef_helper' # NOTE: We do not try to verify if we pass proper notifications to # execute['clear the gitlab-rails cache'] resource that's done in other specs # We just test if we use proper command and that we can change default # attribute value with gilab.rb setting. RSpec.describe 'gitlab::rails-cache-cle...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/puma_spec.rb
Ruby
apache-2.0
225
master
14,917
require 'chef_helper' RSpec.describe 'gitlab::puma with Ubuntu 16.04' do let(:chef_run) do runner = ChefSpec::SoloRunner.new( step_into: %w(runit_service puma_config), path: 'spec/chef/fixtures/fauxhai/ubuntu/16.04.json' ) runner.converge('gitlab::default') end before do allow(Gitlab...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/mailroom_spec.rb
Ruby
apache-2.0
225
master
13,671
# # Copyright:: Copyright (c) 2018 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-backup-cli-disable_spec.rb
Ruby
apache-2.0
225
master
1,611
# # Copyright:: Copyright (c) 2024 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/database_reindexing_enable_spec.rb
Ruby
apache-2.0
225
master
1,293
require 'chef_helper' RSpec.describe 'gitlab::database-reindexing' do let(:chef_run) { converge_config('gitlab::database_reindexing_enable') } before do allow(Gitlab).to receive(:[]).and_call_original end context 'with defaults' do before do stub_gitlab_rb(gitlab_rails: { database_reindexing: {...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/registry_disable_backup_restore_credentials_spec.rb
Ruby
apache-2.0
225
master
831
require 'chef_helper' RSpec.describe 'gitlab::registry_disable_backup_restore_credentials' do let(:chef_runner) do ChefSpec::SoloRunner.new(step_into: %w(registry_enable)) end let(:chef_run) do chef_runner.converge('gitlab-ee::default') end before do allow(Gitlab).to receive(:[]).and_call_origi...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/add_trusted_certs_spec.rb
Ruby
apache-2.0
225
master
1,728
require 'chef_helper' RSpec.describe 'add_trusted_certs recipe' do let(:chef_run) { ChefSpec::SoloRunner.converge('gitlab::default') } let(:cert_helper) { CertificateHelper.new('/etc/gitlab/trusted-certs', '/opt/gitlab/embedded/ssl/certs', '/var/opt/gitlab') } before do allow(Gitlab).to receive(:[]).and_cal...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/sidekiq_spec.rb
Ruby
apache-2.0
225
master
2,902
require 'chef_helper' RSpec.describe 'gitlab::sidekiq' do let(:chef_run) do runner = ChefSpec::SoloRunner.new( step_into: %w(sidekiq_service runit_service), path: 'spec/chef/fixtures/fauxhai/ubuntu/16.04.json' ) runner.converge('gitlab::default') end before do allow(Gitlab).to receiv...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/default_spec.rb
Ruby
apache-2.0
225
master
8,421
require 'chef_helper' RSpec.describe 'gitlab::default' do let(:chef_run) { ChefSpec::SoloRunner.converge('gitlab::default') } before do allow(Gitlab).to receive(:[]).and_call_original end it 'creates the user config directory' do expect(chef_run).to create_directory('/etc/gitlab').with( user: '...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/selinux_spec.rb
Ruby
apache-2.0
225
master
3,977
require 'chef_helper' RSpec.describe 'gitlab::gitlab-selinux' do before do allow(Gitlab).to receive(:[]).and_call_original stub_default_should_notify?(true) end context 'when NOT running on selinux' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(templatesymlink storage_directory)).conver...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-shell_spec.rb
Ruby
apache-2.0
225
master
15,327
require 'chef_helper' RSpec.describe 'gitlab::gitlab-shell' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(templatesymlink runit_service)).converge('gitlab::default') } before do allow(Gitlab).to receive(:[]).and_call_original end it 'defaults the auth_file to be within the user\'s home direc...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-backup-cli_spec.rb
Ruby
apache-2.0
225
master
2,174
# # Copyright:: Copyright (c) 2024 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/remote-syslog_spec.rb
Ruby
apache-2.0
225
master
3,976
require 'chef_helper' RSpec.describe 'gitlab::remote-syslog' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(runit_service)).converge('gitlab::default') } before do allow(Gitlab).to receive(:[]).and_call_original end context 'creates service' do before do stub_gitlab_rb( remot...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/storage-check_spec.rb
Ruby
apache-2.0
225
master
2,120
# # Copyright:: Copyright (c) 2017 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/click_house_yml_spec.rb
Ruby
apache-2.0
225
master
2,252
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do describe 'ClickHouse database settings' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: 'templatesymlink').converge('gitlab::default') } let(:clickhouse_yml_template) { chef_run.template('/var/opt/gitlab/gitlab-rails/etc/click_house.yml')...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/session_store_yml_spec.rb
Ruby
apache-2.0
225
master
1,346
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do describe 'Session store settings' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: 'templatesymlink').converge('gitlab::default') } let(:session_store_yml_template) { chef_run.template('/var/opt/gitlab/gitlab-rails/etc/session_store.yml') ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/database_yml_spec.rb
Ruby
apache-2.0
225
master
10,794
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do describe 'Database settings' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: 'templatesymlink').converge('gitlab::default') } let(:database_yml_template) { chef_run.template('/var/opt/gitlab/gitlab-rails/etc/database.yml') } let(:data...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/forti_authenticator_spec.rb
Ruby
apache-2.0
225
master
1,164
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do using RSpec::Parameterized::TableSyntax include_context 'gitlab-rails' describe 'FortiAuthenticator settings' do context 'with default values' do it 'renders gitlab.yml with FortiAuthenticator disabled' do expect(gitlab_yml[:produc...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/object_storage_spec.rb
Ruby
apache-2.0
225
master
2,506
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'object storage settings' do include_context 'object storage config' describe 'consolidated object storage settings' do context 'with default values' do it 'renders gitlab.yml without cons...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/consul_spec.rb
Ruby
apache-2.0
225
master
3,169
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'Consul settings' do context 'with default values' do it 'renders gitlab.yml without Consul settings' do expect(gitlab_yml[:production][:consul]).to eq( api_url: "" ) en...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/mattermost_spec.rb
Ruby
apache-2.0
225
master
1,882
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do using RSpec::Parameterized::TableSyntax include_context 'gitlab-rails' describe 'Mattermost settings' do context 'with default values' do it 'renders gitlab.yml with Mattermost disabled' do expect(gitlab_yml[:production][:mattermos...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/extra_spec.rb
Ruby
apache-2.0
225
master
3,231
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'extra settings' do context 'with default values' do it 'renders gitlab.yml without extra settings' do expect(gitlab_yml[:production][:extra]).to be nil end end context 'with use...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/cron_jobs_spec.rb
Ruby
apache-2.0
225
master
5,143
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'cron settings' do context 'with default values' do it "renders gitlab.yml without any cron settings" do expect(gitlab_yml[:production][:cron_jobs]).to be nil end end context 'wi...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/repositories_storages_spec.rb
Ruby
apache-2.0
225
master
1,544
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do using RSpec::Parameterized::TableSyntax include_context 'gitlab-rails' describe 'repositories storages settings' do context 'with default values' do it 'renders gitlab.yml with default repository storage settings' do expect(gitlab_...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/sentry_spec.rb
Ruby
apache-2.0
225
master
1,243
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'sentry settings' do context 'with default values' do it 'renders gitlab.yml with sentry disabled' do expect(gitlab_yml[:production][:sentry]).to eq( { enabled: false, ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/cell_spec.rb
Ruby
apache-2.0
225
master
1,687
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'GitLab Application Settings' do describe 'Cell configuration' do context 'with default configuration' do it 'does not render cell in gitlab.yml' do expect(gitlab_yml[:production][:gi...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/smartcard_spec.rb
Ruby
apache-2.0
225
master
1,522
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'Smartcard authentication settings' do context 'with default configuration' do it 'renders gitlab.yml with Smartcard authentication disabled' do expect(gitlab_yml[:production][:smartcard]).to e...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/sidekiq_spec.rb
Ruby
apache-2.0
225
master
2,944
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'sidekiq settings' do describe 'log_format' do context 'with default values' do it 'renders gitlab.yml with sidekiq log format set to json' do expect(gitlab_yml[:production][:sidekiq]...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/shutdown_spec.rb
Ruby
apache-2.0
225
master
709
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'shutdown settings' do context 'with default values' do it 'renders gitlab.yml with default value for blackout seconds' do expect(gitlab_yml[:production][:shutdown][:blackout_seconds]).to eq(10...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/ldap_spec.rb
Ruby
apache-2.0
225
master
5,259
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'LDAP server configuration' do context 'with default configuration' do it 'renders gitlab.yml with LDAP disabled' do expect(gitlab_yml[:production][:ldap]).to eq( enabled: false, ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/incoming_email_spec.rb
Ruby
apache-2.0
225
master
2,584
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'incoming email settings' do describe 'delete_after_delivery values' do context 'with default values' do it 'renders gitlab.yml with delete_after_delivery set to true' do expect(gitla...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/monitoring_spec.rb
Ruby
apache-2.0
225
master
4,475
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'Monitoring settings' do context 'with default configuration' do it 'renders gitlab.yml with default values' do expect(gitlab_yml[:production][:monitoring]).to eq( ip_whitelist: %w[12...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/openbao_spec.rb
Ruby
apache-2.0
225
master
2,435
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'OpenBao settings (for GitLab Secret Manager)' do context 'with default values' do it 'does not render in gitlab.yml' do expect(gitlab_yml[:production][:openbao]).to be nil end end ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/gitaly_spec.rb
Ruby
apache-2.0
225
master
1,607
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'Gitaly settings' do context 'with default values' do it 'renders gitlab.yml without Gitaly token set' do expect(gitlab_yml[:production][:gitaly]).to eq( client_max_attempts: 4, ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/unleash_spec.rb
Ruby
apache-2.0
225
master
1,051
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do using RSpec::Parameterized::TableSyntax include_context 'gitlab-rails' describe 'Unleash settings' do context 'with default values' do it 'renders gitlab.yml unleash disabled' do expect(gitlab_yml[:production][:feature_flags][:unle...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/gitlab_shell_spec.rb
Ruby
apache-2.0
225
master
2,366
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'GitLab Shell settings' do context 'with default values' do it 'renders gitlab.yml with default values' do expect(gitlab_yml[:production][:gitlab_shell]).to eq( authorized_keys_file: ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/oidc_provider_spec.rb
Ruby
apache-2.0
225
master
718
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'OIDC provider settings' do context 'with default values' do it 'does not render in gitlab.yml' do expect(gitlab_yml[:production][:oidc_provider]).to be nil end end context 'with...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/forti_token_cloud_spec.rb
Ruby
apache-2.0
225
master
1,008
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do using RSpec::Parameterized::TableSyntax include_context 'gitlab-rails' describe 'FortiToken Cloud settings' do context 'with default values' do it 'renders gitlab.yml with FortiAuthenticator disabled' do expect(gitlab_yml[:producti...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/microsoft_graph_mailer_spec.rb
Ruby
apache-2.0
225
master
1,690
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'Microsoft Graph Mailer settings' do context 'with default configuration' do it 'renders gitlab.yml with Microsoft Graph Mailer disabled' do expect(gitlab_yml[:production][:microsoft_graph_mail...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/geo_spec.rb
Ruby
apache-2.0
225
master
1,058
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'Geo settings' do context 'with default configuration' do it 'renders gitlab.yml with default values' do expect(gitlab_yml[:production][:geo]).to eq( node_name: nil, registr...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/pages_spec.rb
Ruby
apache-2.0
225
master
6,889
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do using RSpec::Parameterized::TableSyntax include_context 'gitlab-rails' include_context 'object storage config' let(:aws_connection_data) { JSON.parse(aws_connection_hash.to_json, symbolize_names: true) } describe 'Pages settings' do context...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/registry_spec.rb
Ruby
apache-2.0
225
master
4,188
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'Registry settings' do context 'with default configuration' do context 'when GitLab is running under http' do it 'renders gitlab.yml without Registry settings' do expect(gitlab_yml[:p...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/backup_spec.rb
Ruby
apache-2.0
225
master
3,311
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' include_context 'object storage config' describe 'Backup settings' do let(:backup_settings) { gitlab_yml[:production][:backup] } context 'with default values' do it 'renders with default backup settings'...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/gitlab_spec.rb
Ruby
apache-2.0
225
master
12,197
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'GitLab Application Settings' do describe 'CDN Host' do context 'with default configuration' do it 'does not render cdn_host in gitlab.yml' do expect(gitlab_yml[:production][:gitlab][...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/service_desk_email_spec.rb
Ruby
apache-2.0
225
master
1,891
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'service desk email settings' do describe 'log file location' do context 'with default values' do it 'renders gitlab.yml with default value for mailroom log file path' do expect(gitla...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/omniauth_spec.rb
Ruby
apache-2.0
225
master
3,624
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do using RSpec::Parameterized::TableSyntax include_context 'gitlab-rails' describe 'omniauth settings' do context 'with default values' do it 'renders gitlab.yml with omniauth allow_single_sign_on set to saml' do expect(gitlab_yml[:pr...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/duo_auth_spec.rb
Ruby
apache-2.0
225
master
1,014
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do using RSpec::Parameterized::TableSyntax include_context 'gitlab-rails' describe 'DuoAuth settings' do context 'with default values' do it 'renders gitlab.yml with duo auth disabled' do expect(gitlab_yml[:production][:duo_auth]).to ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/recipes/gitlab-rails/gitlab_yml/prometheus_spec.rb
Ruby
apache-2.0
225
master
2,941
require 'chef_helper' RSpec.describe 'gitlab::gitlab-rails' do include_context 'gitlab-rails' describe 'Prometheus settings' do context 'with default configuration' do it 'renders gitlab.yml with bundled Prometheus default values' do expect(gitlab_yml[:production][:prometheus]).to eq( ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/gitlab_sshd_spec.rb
Ruby
apache-2.0
225
master
1,501
require 'chef_helper' RSpec.describe GitlabSshd do describe '.parse_variables' do it 'delegates to validate_trusted_user_ca_keys' do expect(described_class).to receive(:validate_trusted_user_ca_keys) described_class.parse_variables end end describe '.validate_trusted_user_ca_keys' do co...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/redis_spec.rb
Ruby
apache-2.0
225
master
9,134
# This spec is to test the Redis helper and whether the values parsed # are the ones we expect require 'chef_helper' RSpec.describe 'Redis' do let(:chef_run) { converge_config(is_ee: true) } let(:node) { chef_run.node } subject { ::Redis } before do allow(Gitlab).to receive(:[]).and_call_original end ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/gitlab_rails_spec.rb
Ruby
apache-2.0
225
master
8,575
require 'chef_helper' RSpec.describe GitlabRails do let(:chef_run) { converge_config } before do allow(Gitlab).to receive(:[]).and_call_original end describe '.registry_connection_variables' do let(:chef_run) { converge_config } before do stub_gitlab_rb( gitlab_rails: { b...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/postgresql_spec.rb
Ruby
apache-2.0
225
master
11,716
require 'chef_helper' RSpec.describe Postgresql do let(:chef_run) { converge_config } before do allow(Gitlab).to receive(:[]).and_call_original end describe '.parse_variables' do context 'when registry database configuration is set' do before do stub_gitlab_rb( registry: { ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/workhorse_spec.rb
Ruby
apache-2.0
225
master
15,317
# This spec is to test the Workhorse library and whether the values parsed # are the ones we expect require 'chef_helper' RSpec.describe 'GitlabWorkhorse' do let(:node) { chef_run.node } let(:user_socket) { '/where/is/my/ten/mm/socket_now' } let(:user_sockets_directory) { '/where/is/my/ten/mm/sockets' } let(:d...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/nginx_spec.rb
Ruby
apache-2.0
225
master
1,783
require 'chef_helper' RSpec.describe Nginx do let(:chef_run) { converge_config } before do allow(Gitlab).to receive(:[]).and_call_original end describe '.parse_oak_network_binding' do context 'when OAK is disabled' do it 'does not modify listen_addresses' do Gitlab[:node] = chef_run.nod...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/pg_version_spec.rb
Ruby
apache-2.0
225
master
2,707
require 'chef_helper' RSpec.describe PGVersion do context '.parse' do it 'returns a PGVersion class when provided a value' do expect(PGVersion.parse('string')).to be_a(described_class) end it 'returns nil when not passed a value' do expect(PGVersion.parse(nil)).to be_nil end end con...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/registry_spec.rb
Ruby
apache-2.0
225
master
4,477
require 'chef_helper' RSpec.describe Registry do before do allow(Gitlab).to receive(:[]).and_call_original end context 'registry is disabled' do before do stub_gitlab_rb( registry: { enabled: false } ) end it 'should return false' do expect(described_...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/rails_migration_helper_spec.rb
Ruby
apache-2.0
225
master
1,549
require 'chef_helper' RSpec.describe RailsMigrationHelper do cached(:chef_run) { ChefSpec::SoloRunner.converge('gitlab::default') } subject(:helper) { described_class.new(chef_run.node) } context '#migrated?' do it 'returns true if status file exists and content is "0"' do allow(helper).to receive(:db...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/mailroom_helper_spec.rb
Ruby
apache-2.0
225
master
1,119
require 'chef_helper' RSpec.describe MailroomHelper do cached(:chef_run) { converge_config } let(:node) { chef_run.node } subject { described_class.new(node) } before do allow(Gitlab).to receive(:[]).and_call_original stub_gitlab_rb( external_url: 'http://localhost/gitlab/' ) end descr...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/helpers/helper_spec.rb
Ruby
apache-2.0
225
master
9,090
require 'chef_helper' RSpec.shared_examples 'Postgres helpers' do |service_name, service_cmd, edition| let(:chef_run) do # Config recipe is available in gitlab-base cookbook edition = "gitlab-base" if edition == "gitlab" ChefSpec::SoloRunner.new do |node| node.normal['gitlab'][service_name]['dir']...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/helpers/pg_status_helper_spec.rb
Ruby
apache-2.0
225
master
4,671
require 'chef_helper' RSpec.describe PgStatusHelper do cached(:chef_run) { converge_config } let!(:node) { chef_run.node } let!(:helper) { PgHelper.new(node) } let(:connection_info) { helper.build_connection_info('dbname', 'dbhost', 'port', 'pguser') } context 'when checking status' do subject { describ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/helpers/base_pg_helper_spec.rb
Ruby
apache-2.0
225
master
12,502
require 'chef_helper' RSpec.describe BasePgHelper do cached(:chef_run) { converge_config } let(:node) { chef_run.node } subject { described_class.new(node) } before do allow(subject).to receive(:service_name) { 'postgresql' } allow(subject).to receive(:service_cmd) { 'gitlab-psql' } end context '...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab/libraries/helpers/gitlab_workhorse_helper_spec.rb
Ruby
apache-2.0
225
master
4,779
require 'chef_helper' RSpec.describe GitlabWorkhorseHelper do let(:node) { chef_run.node } subject { described_class.new(node) } before do allow(Gitlab).to receive(:[]).and_call_original end context 'workhorse is listening on a tcp socket' do cached(:chef_run) { converge_config } let(:tcp_addre...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/spamcheck/recipes/spamcheck_spec.rb
Ruby
apache-2.0
225
master
9,253
require 'chef_helper' require 'toml-rb' RSpec.describe 'spamcheck' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(runit_service)).converge('gitlab-ee::default') } before do allow(Gitlab).to receive(:[]).and_call_original end context 'when spamcheck is disabled (default)' do it 'includes s...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/praefect/recipes/praefect_spec.rb
Ruby
apache-2.0
225
master
16,856
require 'chef_helper' RSpec.describe 'praefect' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(runit_service env_dir)).converge('gitlab::default') } let(:prometheus_grpc_latency_buckets) do [0.001, 0.005, 0.025, 0.1, 0.5, 1.0, 10.0, 30.0, 60.0, 300.0, 1500.0] end before do allow(Gitlab).to...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-pages/recipes/gitlab-pages_spec.rb
Ruby
apache-2.0
225
master
18,770
require 'chef_helper' RSpec.describe 'gitlab::gitlab-pages' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(runit_service env_dir nginx_configuration)).converge('gitlab::default') } before do allow(Gitlab).to receive(:[]).and_call_original allow(Etc).to receive(:getpwnam).with('git').and_return...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/mattermost/recipes/mattermost_spec.rb
Ruby
apache-2.0
225
master
13,228
require 'chef_helper' RSpec.describe 'gitlab::mattermost' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(runit_service nginx_configuration)).converge('gitlab::default') } let(:default_vars) do { 'MM_FILESETTINGS_DIRECTORY' => '/var/opt/gitlab/mattermost/data', 'MM_GITLABSETTINGS_AUTHEND...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/oak/libraries/oak_spec.rb
Ruby
apache-2.0
225
master
1,451
require 'chef_helper' RSpec.describe Oak do before do allow(Gitlab).to receive(:[]).and_call_original end describe '.parse_variables' do context 'when OAK is disabled' do it 'does not raise' do expect { described_class.parse_variables }.not_to raise_error end end context 'wh...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/oak/libraries/openbao_spec.rb
Ruby
apache-2.0
225
master
5,104
require 'chef_helper' RSpec.describe Oak::OpenBao do before do allow(Gitlab).to receive(:[]).and_call_original end describe '.component_enabled?' do context 'when openbao component is not configured' do it 'returns false' do expect(described_class.component_enabled?).to be false end ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/crond/recipes/crond_enable_spec.rb
Ruby
apache-2.0
225
master
2,078
require 'chef_helper' RSpec.describe 'crond::enable' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(runit_service)).converge('gitlab-base::config', 'crond::enable') } before do allow(Gitlab).to receive(:[]).and_call_original end it "should create a cron.d directory" do expect(chef_run).to...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/crond/resources/crond_job_spec.rb
Ruby
apache-2.0
225
master
1,902
require 'chef_helper' RSpec.describe 'crond_job' do context 'crond enabled' do let(:runner) do ChefSpec::SoloRunner.new(step_into: %w(crond_job)) do |node| node.normal['crond']['cron_d'] = "prefix" end end context 'delete' do let(:chef_run) { runner.converge("crond::enable", "t...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-base/recipes/default_spec.rb
Ruby
apache-2.0
225
master
2,914
require 'chef_helper' RSpec.describe 'gitlab-base::default' do let(:chef_run) { ChefSpec::SoloRunner.new.converge('gitlab-base::default') } before do # We can't use `include_recipe` matcher because then it will attempt to # execute the recipe being included. Hence, we will stub the # `include_recipe` ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/resources/pgbouncer_user_spec.rb
Ruby
apache-2.0
225
master
1,585
require 'chef_helper' RSpec.describe 'pgbouncer_user' do let(:runner) { ChefSpec::SoloRunner.new(step_into: ['pgbouncer_user']) } context 'create geo' do let(:chef_run) { runner.converge('test_gitlab_ee::pgbouncer_user_create_geo') } it 'should create the pgbouncer user' do expect(chef_run).to create...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/recipes/default_spec.rb
Ruby
apache-2.0
225
master
823
require 'chef_helper' RSpec.describe 'gitlab-ee::default' do let(:chef_run) { ChefSpec::SoloRunner.converge('gitlab-ee::default') } before do allow(Gitlab).to receive(:[]).and_call_original end context 'postgresql is enabled' do context 'pgbouncer will not connect to postgresql' do it 'should a...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/recipes/geo-secondary_disable_spec.rb
Ruby
apache-2.0
225
master
2,464
require 'chef_helper' RSpec.describe 'gitlab-ee::geo-secondary_disable' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(templatesymlink)).converge('gitlab-ee::default') } let(:database_yml_template) { chef_run.template('/var/opt/gitlab/gitlab-rails/etc/database.yml') } let(:database_yml_file_content) ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/recipes/sentinel_spec.rb
Ruby
apache-2.0
225
master
11,499
require 'chef_helper' RSpec.describe 'gitlab::redis' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(redis_service sentinel_service runit_service)).converge('gitlab-ee::default') } let(:redis_master_ip) { '1.1.1.1' } let(:redis_announce_ip) { '10.10.10.10' } let(:redis_master_password) { 'blahblahbl...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/recipes/geo_spec.rb
Ruby
apache-2.0
225
master
4,959
require 'chef_helper' RSpec.describe 'gitlab-ee::geo' do let(:node) { chef_run.node } before do allow(Gitlab).to receive(:[]).and_call_original end shared_examples 'default services' do it 'remain enabled', :aggregate_failures do chef_run default_services = Services.find_by_group(Service...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/recipes/geo-logcursor_spec.rb
Ruby
apache-2.0
225
master
2,186
# # Copyright:: Copyright (c) 2017 GitLab Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/recipes/geo-secondary_spec.rb
Ruby
apache-2.0
225
master
16,481
require 'chef_helper' RSpec.describe 'gitlab-ee::geo-secondary' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(templatesymlink)).converge('gitlab-ee::default') } let(:database_yml_template) { chef_run.template('/var/opt/gitlab/gitlab-rails/etc/database.yml') } let(:database_yml_file_content) { ChefSp...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/recipes/geo_database_migrations_spec.rb
Ruby
apache-2.0
225
master
2,250
require 'chef_helper' # NOTE: These specs do not verify whether the code actually ran # Nor whether the resource inside of the recipe was notified correctly. # At this moment they only verify whether the expected commands are passed # to the bash block. # RSpec.describe 'gitlab-ee::geo-database-migrations' do let(:...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/recipes/geo-postgresql_spec.rb
Ruby
apache-2.0
225
master
16,881
require 'chef_helper' RSpec.describe 'geo postgresql' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(runit_service)).converge('gitlab-ee::default') } let(:postgresql_conf) { '/var/opt/gitlab/geo-postgresql/data/postgresql.conf' } let(:runtime_conf) { '/var/opt/gitlab/geo-postgresql/data/runtime.conf'...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/libraries/sentinel_spec.rb
Ruby
apache-2.0
225
master
1,880
# This spec is to test the Sentinel helper and whether the values parsed # are the ones we expect require 'chef_helper' RSpec.describe 'Sentinel' do let(:chef_run) { ChefSpec::SoloRunner.converge('gitlab-base::config') } let(:node) { chef_run.node } subject { ::Sentinel } before do allow(Gitlab).to receive...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/libraries/sentinel_helper_spec.rb
Ruby
apache-2.0
225
master
4,872
require 'chef_helper' RSpec.describe SentinelHelper do let(:chef_run) { converge_config(is_ee: true) } subject { described_class.new(chef_run.node) } before { allow(Gitlab).to receive(:[]).and_call_original } context '#running_version' do let(:cmd) { '/opt/gitlab/embedded/bin/redis-cli -h 0.0.0.0 -p 26379...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-ee/libraries/gitlab_geo_helper_spec.rb
Ruby
apache-2.0
225
master
1,694
require 'chef_helper' RSpec.describe GitlabGeoHelper do cached(:chef_run) { converge_config(is_ee: true) } subject { described_class.new(chef_run.node) } describe '#migrated?' do let(:state_file) { '/tmp/geo-db-migrate-xyz-123' } before do allow(subject).to receive(:db_migrate_status_file) { stat...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/gitlab-kas/recipes/gitlab-kas_spec.rb
Ruby
apache-2.0
225
master
32,842
require 'chef_helper' RSpec.describe 'gitlab-kas' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(runit_service env_dir templatesymlink nginx_configuration)).converge('gitlab::default') } let(:gitlab_kas_config_yml) { chef_run_load_yaml_template(chef_run, '/var/opt/gitlab/gitlab-kas/gitlab-kas-config.ym...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/recipes/sysctl_spec.rb
Ruby
apache-2.0
225
master
369
require 'chef_helper' RSpec.describe 'postgresql::user' do cached(:chef_run) { ChefSpec::SoloRunner.converge('gitlab-base::config', 'postgresql::sysctl') } it 'creates sysctl files' do expect(chef_run).to create_gitlab_sysctl('kernel.shmmax').with_value(17179869184) expect(chef_run).to create_gitlab_sysct...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/recipes/directory_locations_spec.rb
Ruby
apache-2.0
225
master
1,041
# frozen_string_literal: true require 'chef_helper' RSpec.describe 'default directories' do let(:chef_run) { ChefSpec::SoloRunner.converge('gitlab::default') } before do allow(Gitlab).to receive(:[]).and_call_original end context 'postgresql directory' do context 'with default settings' do it ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/recipes/user_spec.rb
Ruby
apache-2.0
225
master
2,406
require 'chef_helper' RSpec.describe 'postgresql::user' do cached(:chef_run) { ChefSpec::SoloRunner.converge('gitlab-base::config', 'postgresql::user') } before do allow(Gitlab).to receive(:[]).and_call_original end it 'includes postgresql::directory_locations recipe' do expect(chef_run).to include_r...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/recipes/postgresql_spec.rb
Ruby
apache-2.0
225
master
30,927
require 'chef_helper' RSpec.describe 'postgresql' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(runit_service postgresql_config database_objects)).converge('gitlab::default') } let(:postgresql_data_dir) { '/var/opt/gitlab/postgresql/data' } let(:postgresql_ssl_cert) { File.join(postgresql_data_dir, ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/recipes/bin_spec.rb
Ruby
apache-2.0
225
master
3,404
# frozen_string_literal: true require 'chef_helper' RSpec.describe 'postgresql::bin' do let(:chef_run) { ChefSpec::SoloRunner.converge('gitlab::default') } let(:gitlab_psql_rc) do <<-EOF psql_user='gitlab-psql' psql_group='gitlab-psql' psql_host='/var/opt/gitlab/postgresql' psql_port='5432' EOF end b...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/resources/schema_spec.rb
Ruby
apache-2.0
225
master
1,726
require 'chef_helper' RSpec.describe 'postgresql_schema' do let(:runner) { ChefSpec::SoloRunner.new(step_into: %w(postgresql_schema)) } context 'create' do let(:chef_run) { runner.converge('test_postgresql::postgresql_schema_create') } context 'server is running' do before do allow_any_inst...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/resources/config_spec.rb
Ruby
apache-2.0
225
master
1,459
require 'chef_helper' RSpec.describe 'postgresql_config' do let(:runner) do ChefSpec::SoloRunner.new(step_into: %w(postgresql_config)) do |node| node.normal['postgresql']['dir'] = '/fakedir' node.normal['patroni']['dir'] = '/patronifakedir' end end let(:chef_run) { runner.converge('gitlab-ba...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/resources/database_objects_spec.rb
Ruby
apache-2.0
225
master
2,524
require 'chef_helper' RSpec.describe 'database_objects' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(database_objects postgresql_extension)).converge('gitlab-base::config', 'test_postgresql::postgresql_database_objects') } before do allow(Gitlab).to receive(:[]).and_call_original end descri...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/resources/database_spec.rb
Ruby
apache-2.0
225
master
2,128
require 'chef_helper' RSpec.describe 'postgresql_database' do let(:runner) do ChefSpec::SoloRunner.new(step_into: %w(postgresql_database)) do |node| # unix_socket_directory is normally conditionally set in postgresql::enable # which is not executed as part of this spec node.normal['postgresql']...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/resources/user_spec.rb
Ruby
apache-2.0
225
master
2,818
require 'chef_helper' RSpec.describe 'postgresql_user' do before do allow_any_instance_of(PgHelper).to receive(:is_offline_or_readonly?).and_return(false) allow_any_instance_of(PgHelper).to receive(:user_exists?).and_return(false, true) allow_any_instance_of(PgHelper).to receive(:user_password_match?).an...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/resources/query_spec.rb
Ruby
apache-2.0
225
master
1,640
require 'chef_helper' RSpec.describe 'postgresql_query' do let(:runner) { ChefSpec::SoloRunner.new(step_into: %w(postgresql_query)) } before do allow_any_instance_of(PgHelper).to receive(:is_ready?).and_return(true) allow_any_instance_of(GeoPgHelper).to receive(:is_ready?).and_return(true) end contex...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/resources/extension_spec.rb
Ruby
apache-2.0
225
master
1,053
require 'chef_helper' RSpec.describe 'postgresql_query' do let(:runner) { ChefSpec::SoloRunner.new(step_into: %w(postgresql_extension)) } context 'run' do let(:chef_run) { runner.converge('test_postgresql::postgresql_extension_enable') } context 'when extension can be enabled' do before do ...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/postgresql/templates/pg_hba_spec.rb
Ruby
apache-2.0
225
master
12,399
require 'chef_helper' RSpec.describe 'pg_hba.conf.erb template' do let(:chef_runner) do ChefSpec::SoloRunner.new(step_into: %w(postgresql_config)) do |node| node.normal['postgresql']['enable'] = true node.normal['postgresql']['dir'] = '/fakedir' end end let(:chef_run) do chef_runner.conv...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/logrotate/recipes/logrotate_spec.rb
Ruby
apache-2.0
225
master
2,670
require 'chef_helper' RSpec.describe 'logrotate' do let(:chef_run) { ChefSpec::SoloRunner.new(step_into: %w(runit_service)).converge('gitlab::default') } before do allow(Gitlab).to receive(:[]).and_call_original end context 'when logrotate is enabled' do let(:config_template) { chef_run.template('/op...
github
gitlabhq/omnibus-gitlab
https://github.com/gitlabhq/omnibus-gitlab
spec/chef/cookbooks/logrotate/recipes/folders_and_configs_spec.rb
Ruby
apache-2.0
225
master
5,530
require 'chef_helper' RSpec.describe 'gitlab::logrotate_folder_and_configs_spec' do let(:chef_run) { ChefSpec::SoloRunner.converge('gitlab::default') } before do allow(Gitlab).to receive(:[]).and_call_original end context 'when logrotate is enabled' do it 'creates default set of directories' do ...