Commit 97552d46 authored by Rémy Coutable's avatar Rémy Coutable

Ensure `Namespace`'s is namespaced in `Gitlab::Kubernetes::Helm#initialize`...

Ensure `Namespace`'s is namespaced in `Gitlab::Kubernetes::Helm#initialize` and fix a transient failing spec due to that
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 4820a195
...@@ -18,7 +18,7 @@ module Gitlab ...@@ -18,7 +18,7 @@ module Gitlab
def initialize(kubeclient) def initialize(kubeclient)
@kubeclient = kubeclient @kubeclient = kubeclient
@namespace = Namespace.new(NAMESPACE, kubeclient) @namespace = Gitlab::Kubernetes::Namespace.new(NAMESPACE, kubeclient)
end end
def install(command) def install(command)
......
...@@ -22,6 +22,8 @@ describe Clusters::Applications::ScheduleInstallationService do ...@@ -22,6 +22,8 @@ describe Clusters::Applications::ScheduleInstallationService do
let(:service) { described_class.new(project, nil, cluster: cluster, application_class: application_class) } let(:service) { described_class.new(project, nil, cluster: cluster, application_class: application_class) }
it 'creates a new application' do it 'creates a new application' do
allow(ClusterInstallAppWorker).to receive(:perform_async)
expect { service.execute }.to change { application_class.count }.by(1) expect { service.execute }.to change { application_class.count }.by(1)
end end
......
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