Commit bde7cd7c authored by Rémy Coutable's avatar Rémy Coutable
Browse files

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 e59ae436ecbe
......@@ -18,7 +18,7 @@ def pod_name
def initialize(kubeclient)
@kubeclient = kubeclient
@namespace = Namespace.new(NAMESPACE, kubeclient)
@namespace = Gitlab::Kubernetes::Namespace.new(NAMESPACE, kubeclient)
end
def install(command)
......
......@@ -22,6 +22,8 @@ def count_scheduled
let(:service) { described_class.new(project, nil, cluster: cluster, application_class: application_class) }
it 'creates a new application' do
allow(ClusterInstallAppWorker).to receive(:perform_async)
expect { service.execute }.to change { application_class.count }.by(1)
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