Commit 0a480e3c authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'frozen_string_spec_models' into 'master'

Add # frozen_string_literal to spec/models

See merge request gitlab-org/gitlab-ce!26791
parents b8118a65 ab2047d0
# frozen_string_literal: true
require 'spec_helper'
describe Ability do
......
# frozen_string_literal: true
require 'rails_helper'
describe AbuseReport do
......
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe ActiveSession, :clean_gitlab_redis_shared_state do
......
# frozen_string_literal: true
require 'rails_helper'
describe Appearance do
......
# frozen_string_literal: true
require 'spec_helper'
describe ApplicationSetting::Term do
......
# frozen_string_literal: true
require 'spec_helper'
describe ApplicationSetting do
......
# frozen_string_literal: true
require 'spec_helper'
describe AwardEmoji do
......
# frozen_string_literal: true
require 'spec_helper'
describe Badge do
......
# frozen_string_literal: true
require 'spec_helper'
describe GroupBadge do
......
# frozen_string_literal: true
require 'spec_helper'
describe ProjectBadge do
......
# encoding: utf-8
# frozen_string_literal: true
require 'rails_helper'
describe Blob do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::Base do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::Changelog do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::ComposerJson do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::Gemspec do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::GitlabCiYml do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::License do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::PackageJson do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::PodspecJson do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::Podspec do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::Readme do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::RouteMap do
......
# frozen_string_literal: true
require 'spec_helper'
describe BlobViewer::ServerSide do
......
# frozen_string_literal: true
require 'rails_helper'
describe Board do
......
# frozen_string_literal: true
require 'spec_helper'
describe BroadcastMessage do
......
# frozen_string_literal: true
require 'spec_helper'
describe ChatName do
......
# frozen_string_literal: true
require 'spec_helper'
describe ChatTeam do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::ArtifactBlob do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::Bridge do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::BuildMetadata do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::BuildRunnerSession, model: true do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::Build do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::BuildTraceChunks::Database do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::BuildTraceChunks::Fog do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::BuildTraceChunks::Redis, :clean_gitlab_redis_shared_state do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::BuildTraceSectionName, model: true do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::BuildTraceSection, model: true do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::Group do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::GroupVariable do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::JobArtifact do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::LegacyStage do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::PipelineSchedule do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::PipelineScheduleVariable do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::Pipeline, :mailer do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::PipelineVariable do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::Runner do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::Stage, :models do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::TriggerRequest do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::Trigger do
......
# frozen_string_literal: true
require 'spec_helper'
describe Ci::Variable do
......
# frozen_string_literal: true
require 'rails_helper'
describe Clusters::Applications::CertManager do
......@@ -9,7 +11,27 @@ describe Clusters::Applications::CertManager do
include_examples 'cluster application initial status specs'
describe '#install_command' do
let(:cluster_issuer_file) { { "cluster_issuer.yaml": "---\napiVersion: certmanager.k8s.io/v1alpha1\nkind: ClusterIssuer\nmetadata:\n name: letsencrypt-prod\nspec:\n acme:\n server: https://acme-v02.api.letsencrypt.org/directory\n email: admin@example.com\n privateKeySecretRef:\n name: letsencrypt-prod\n http01: {}\n" } }
let(:cert_email) { 'admin@example.com' }
let(:cluster_issuer_file) do
file_contents = <<~EOF
---
apiVersion: certmanager.k8s.io/v1alpha1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: #{cert_email}
privateKeySecretRef:
name: letsencrypt-prod
http01: {}
EOF
{ "cluster_issuer.yaml": file_contents }
end
subject { cert_manager.install_command }
it { is_expected.to be_an_instance_of(Gitlab::Kubernetes::Helm::InstallCommand) }
......@@ -24,9 +46,10 @@ describe Clusters::Applications::CertManager do
end
context 'for a specific user' do
let(:cert_email) { 'abc@xyz.com' }
before do
cert_manager.email = 'abc@xyz.com'
cluster_issuer_file[:'cluster_issuer.yaml'].gsub! 'admin@example.com', 'abc@xyz.com'
cert_manager.email = cert_email
end
it 'should use his/her email to register issuer with certificate provider' do
......
# frozen_string_literal: true
require 'rails_helper'
describe Clusters::Applications::Helm do
......
# frozen_string_literal: true
require 'rails_helper'
describe Clusters::Applications::Ingress do
......
# frozen_string_literal: true
require 'rails_helper'
describe Clusters::Applications::Jupyter do
......
# frozen_string_literal: true
require 'rails_helper'
describe Clusters::Applications::Knative do
......
# frozen_string_literal: true
require 'rails_helper'
describe Clusters::Applications::Prometheus do
......
# frozen_string_literal: true
require 'rails_helper'
describe Clusters::Applications::Runner do
......
# frozen_string_literal: true
require 'spec_helper'
describe Clusters::Platforms::Kubernetes, :use_clean_rails_memory_store_caching do
......
# frozen_string_literal: true
require 'spec_helper'
describe Clusters::Project do
......
# frozen_string_literal: true
require 'spec_helper'
describe Clusters::Providers::Gcp do
......
# frozen_string_literal: true
require 'spec_helper'
describe CommitCollection do
......
# frozen_string_literal: true
require 'spec_helper'
describe CommitRange do
......
# frozen_string_literal: true
require 'spec_helper'
describe Commit do
......
# frozen_string_literal: true
require 'spec_helper'
describe CommitStatus do
......
# frozen_string_literal: true
require 'spec_helper'
describe Compare do
......
# frozen_string_literal: true
require 'spec_helper'
describe AccessRequestable do
......
# frozen_string_literal: true
require 'spec_helper'
describe Avatarable do
......
# frozen_string_literal: true
require 'spec_helper'
describe Awardable do
......
# frozen_string_literal: true
require 'spec_helper'
describe BatchDestroyDependentAssociations do
......
# frozen_string_literal: true
require 'rails_helper'
describe BlocksJsonSerialization do
......
# frozen_string_literal: true
require 'spec_helper'
describe CacheMarkdownField do
......
# frozen_string_literal: true
require 'spec_helper'
describe CacheableAttributes do
......
# frozen_string_literal: true
require 'spec_helper'
describe CaseSensitivity do
......
# frozen_string_literal: true
require 'spec_helper'
shared_examples 'ChronicDurationAttribute reader' do
......
# frozen_string_literal: true
require 'rails_helper'
describe Deployable do
......
# frozen_string_literal: true
require 'rails_helper'
describe DeploymentPlatform do
......
# frozen_string_literal: true
require 'spec_helper'
describe DiscussionOnDiff do
......
# frozen_string_literal: true
require 'spec_helper'
describe EachBatch do
......
# frozen_string_literal: true
require 'spec_helper'
describe Editable do
......
# frozen_string_literal: true
require 'spec_helper'
describe Expirable do
......
# frozen_string_literal: true
require 'spec_helper'
describe FasterCacheKeys do
......
# frozen_string_literal: true
require 'spec_helper'
describe FeatureGate do
......
# frozen_string_literal: true
require 'spec_helper'
describe GroupDescendant, :nested_groups do
......
# frozen_string_literal: true
require 'spec_helper'
describe HasStatus do
......
# frozen_string_literal: true
require 'spec_helper'
describe HasVariable do
......
# frozen_string_literal: true
require 'spec_helper'
describe IgnorableColumn do
......
# frozen_string_literal: true
require 'spec_helper'
describe Issuable do
......
# frozen_string_literal: true
require 'spec_helper'
describe LoadedInGroupList do
......
# frozen_string_literal: true
require 'spec_helper'
describe ManualInverseAssociation do
......
# frozen_string_literal: true
require 'spec_helper'
describe Mentionable do
......
# frozen_string_literal: true
require 'spec_helper'
describe Milestone, 'Milestoneish' do
......
# frozen_string_literal: true
require 'spec_helper'
describe Noteable do
......
# frozen_string_literal: true
require 'spec_helper'
describe Participable do
......
# frozen_string_literal: true
require 'spec_helper'
describe Presentable do
......
# frozen_string_literal: true
require 'spec_helper'
describe ProjectFeaturesCompatibility do
......
# frozen_string_literal: true
require 'spec_helper'
describe PrometheusAdapter, :use_clean_rails_memory_store_caching do
......
# frozen_string_literal: true
require 'spec_helper'
describe ProtectedRefAccess do
......
# frozen_string_literal: true
require 'spec_helper'
describe ReactiveCaching, :use_clean_rails_memory_store_caching do
......
# frozen_string_literal: true
require 'spec_helper'
describe Redactable do
......
# frozen_string_literal: true
require 'spec_helper'
describe RedisCacheable do
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment