diff options
Diffstat (limited to 'spec/services/clusters')
-rw-r--r-- | spec/services/clusters/kubernetes/create_or_update_namespace_service_spec.rb | 34 | ||||
-rw-r--r-- | spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb | 9 |
2 files changed, 26 insertions, 17 deletions
diff --git a/spec/services/clusters/kubernetes/create_or_update_namespace_service_spec.rb b/spec/services/clusters/kubernetes/create_or_update_namespace_service_spec.rb index 48941792c4b..f05aa533628 100644 --- a/spec/services/clusters/kubernetes/create_or_update_namespace_service_spec.rb +++ b/spec/services/clusters/kubernetes/create_or_update_namespace_service_spec.rb @@ -113,10 +113,12 @@ RSpec.describe Clusters::Kubernetes::CreateOrUpdateNamespaceService, '#execute', context 'when kubernetes namespace is not persisted' do let(:kubernetes_namespace) do - build(:cluster_kubernetes_namespace, - cluster: cluster, - project: project, - environment: environment) + build( + :cluster_kubernetes_namespace, + cluster: cluster, + project: project, + environment: environment + ) end it_behaves_like 'successful creation of kubernetes namespace' @@ -126,11 +128,13 @@ RSpec.describe Clusters::Kubernetes::CreateOrUpdateNamespaceService, '#execute', context 'project clusters' do context 'when kubernetes namespace is not persisted' do let(:kubernetes_namespace) do - build(:cluster_kubernetes_namespace, - cluster: cluster, - project: cluster_project.project, - cluster_project: cluster_project, - environment: environment) + build( + :cluster_kubernetes_namespace, + cluster: cluster, + project: cluster_project.project, + cluster_project: cluster_project, + environment: environment + ) end it_behaves_like 'successful creation of kubernetes namespace' @@ -140,11 +144,13 @@ RSpec.describe Clusters::Kubernetes::CreateOrUpdateNamespaceService, '#execute', let(:namespace) { "new-namespace-#{environment.slug}" } let(:kubernetes_namespace) do - create(:cluster_kubernetes_namespace, - cluster: cluster, - project: cluster_project.project, - cluster_project: cluster_project, - environment: environment) + create( + :cluster_kubernetes_namespace, + cluster: cluster, + project: cluster_project.project, + cluster_project: cluster_project, + environment: environment + ) end before do diff --git a/spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb b/spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb index ab0c5691b06..e8e0174fe40 100644 --- a/spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb +++ b/spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb @@ -9,9 +9,12 @@ RSpec.describe Clusters::Kubernetes::CreateOrUpdateServiceAccountService, featur let(:cluster_project) { cluster.cluster_project } let(:project) { cluster_project.project } let(:cluster) do - create(:cluster, - :project, :provided_by_gcp, - platform_kubernetes: create(:cluster_platform_kubernetes, :configured)) + create( + :cluster, + :project, + :provided_by_gcp, + platform_kubernetes: create(:cluster_platform_kubernetes, :configured) + ) end let(:kubeclient) do |