debian-mirror-gitlab/spec/lib/gitlab/kubernetes/helm/base_command_spec.rb

33 lines
759 B
Ruby
Raw Normal View History

2018-03-27 19:54:05 +05:30
require 'spec_helper'
describe Gitlab::Kubernetes::Helm::BaseCommand do
let(:application) { create(:clusters_applications_helm) }
let(:base_command) { described_class.new(application.name) }
2018-10-15 14:42:47 +05:30
subject { base_command }
2018-03-27 19:54:05 +05:30
2018-10-15 14:42:47 +05:30
it_behaves_like 'helm commands' do
let(:commands) { '' }
2018-03-27 19:54:05 +05:30
end
describe '#pod_resource' do
subject { base_command.pod_resource }
it 'should returns a kubeclient resoure with pod content for application' do
is_expected.to be_an_instance_of ::Kubeclient::Resource
end
end
describe '#config_map?' do
subject { base_command.config_map? }
it { is_expected.to be_falsy }
end
describe '#pod_name' do
subject { base_command.pod_name }
it { is_expected.to eq('install-helm') }
end
end