Commit 5dabe6d1 authored by Grzegorz Bizon's avatar Grzegorz Bizon 🔴

Merge branch '50323-fix-clusters-application-prometheus-test' into 'master'

Resolve "Fix bad test from 20765 MR"

Closes #50323

See merge request gitlab-org/gitlab-ce!21219
parents d5cd1c4a 446af723
......@@ -154,20 +154,17 @@ describe Clusters::Applications::Prometheus do
describe '#install_command' do
let(:kubeclient) { double('kubernetes client') }
let(:prometheus) { create(:clusters_applications_prometheus) }
it 'returns an instance of Gitlab::Kubernetes::Helm::InstallCommand' do
expect(prometheus.install_command).to be_an_instance_of(Gitlab::Kubernetes::Helm::InstallCommand)
subject { prometheus.install_command }
it 'should be initialized with 3 arguments' do
command = prometheus.install_command
it { be_an_instance_of(Gitlab::Kubernetes::Helm::InstallCommand) }
expect( eq('prometheus')
expect(command.chart).to eq('stable/prometheus')
expect(command.version).to eq('6.7.3')
expect(command.files).to eq(prometheus.files)
it 'should be initialized with 3 arguments' do
expect( eq('prometheus')
expect(subject.chart).to eq('stable/prometheus')
expect(subject.version).to eq('6.7.3')
expect(subject.files).to eq(prometheus.files)
context 'application failed to install previously' do
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment