1# frozen_string_literal: true 2 3require 'spec_helper' 4 5RSpec.describe Gitlab::Kubernetes::Helm::V2::ResetCommand do 6 subject(:reset_command) { described_class.new(name: name, rbac: rbac, files: files) } 7 8 let(:rbac) { true } 9 let(:name) { 'helm' } 10 let(:files) { {} } 11 12 it_behaves_like 'helm command generator' do 13 let(:commands) do 14 <<~EOS 15 export HELM_HOST="localhost:44134" 16 tiller -listen ${HELM_HOST} -alsologtostderr & 17 helm init --client-only 18 helm reset --force 19 EOS 20 end 21 end 22 23 describe '#pod_name' do 24 subject { reset_command.pod_name } 25 26 it { is_expected.to eq('uninstall-helm') } 27 end 28 29 it_behaves_like 'helm command' do 30 let(:command) { reset_command } 31 end 32end 33