diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-02-07 00:05:21 +1300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-02-07 00:25:33 +1300 |
commit | d204ec3d37f9fa422876072402f57028231ee2f4 (patch) | |
tree | 1beb6c6d4a6df2f59ad98924cb0a7c69e0cfeeea /spec/models/clusters/applications/cert_manager_spec.rb | |
parent | e72f24d27be911ffce943929b7ca2f6df7051083 (diff) | |
download | gitlab-ce-d204ec3d37f9fa422876072402f57028231ee2f4.tar.gz |
Refactor specs to run shared parts only when used
All applications except for Jupyter have the same #set_initial_status,
so create a new shared example which we include in all application specs
except for juptyer_spec. Juptyer specs already have specs for it's
version of #set_initial_status
Diffstat (limited to 'spec/models/clusters/applications/cert_manager_spec.rb')
-rw-r--r-- | spec/models/clusters/applications/cert_manager_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/models/clusters/applications/cert_manager_spec.rb b/spec/models/clusters/applications/cert_manager_spec.rb index 6b1bcce1081..79a06c35459 100644 --- a/spec/models/clusters/applications/cert_manager_spec.rb +++ b/spec/models/clusters/applications/cert_manager_spec.rb @@ -5,6 +5,7 @@ describe Clusters::Applications::CertManager do include_examples 'cluster application core specs', :clusters_applications_cert_managers include_examples 'cluster application status specs', :clusters_applications_cert_managers + 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" } } |