2017-11-02 06:14:10 -04:00
|
|
|
require 'rails_helper'
|
|
|
|
|
2017-11-07 08:05:37 -05:00
|
|
|
describe Clusters::Applications::Helm do
|
2018-03-01 18:46:02 -05:00
|
|
|
include_examples 'cluster application core specs', :clusters_applications_helm
|
2017-11-03 14:20:29 -04:00
|
|
|
|
2018-03-29 15:24:10 -04:00
|
|
|
describe '.installed' do
|
|
|
|
subject { described_class.installed }
|
|
|
|
|
|
|
|
let!(:cluster) { create(:clusters_applications_helm, :installed) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
create(:clusters_applications_helm, :errored)
|
|
|
|
end
|
|
|
|
|
|
|
|
it { is_expected.to contain_exactly(cluster) }
|
|
|
|
end
|
|
|
|
|
2017-11-07 09:26:14 -05:00
|
|
|
describe '#install_command' do
|
2018-03-01 18:46:02 -05:00
|
|
|
let(:helm) { create(:clusters_applications_helm) }
|
2017-11-03 14:20:29 -04:00
|
|
|
|
2018-03-01 18:46:02 -05:00
|
|
|
subject { helm.install_command }
|
2017-11-03 14:20:29 -04:00
|
|
|
|
2018-03-01 18:46:02 -05:00
|
|
|
it { is_expected.to be_an_instance_of(Gitlab::Kubernetes::Helm::InitCommand) }
|
2017-11-02 06:14:10 -04:00
|
|
|
|
2018-03-01 18:46:02 -05:00
|
|
|
it 'should be initialized with 1 arguments' do
|
|
|
|
expect(subject.name).to eq('helm')
|
2017-11-02 06:14:10 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|