diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 1f69d9084..c3c77e04a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -151,7 +151,7 @@ RSpec/MultipleDescribes: # Configuration parameters: AllowSubject. RSpec/MultipleMemoizedHelpers: - Max: 19 + Max: 20 # Configuration parameters: IgnoreSharedExamples. RSpec/NamedSubject: diff --git a/lib/beaker/platform.rb b/lib/beaker/platform.rb index bd39a759c..de8531c06 100644 --- a/lib/beaker/platform.rb +++ b/lib/beaker/platform.rb @@ -3,9 +3,7 @@ module Beaker # all String methods while adding several platform-specific use cases. class Platform < String # Supported platforms - # rubocop:disable Layout/LineLength PLATFORMS = /^(alpine|amazon|huaweios|cisco_nexus|cisco_ios_xr|(free|open)bsd|osx|centos|fedora|debian|oracle|redhat|redhatfips|scientific|opensuse|sles|ubuntu|windows|solaris|aix|archlinux|el|eos|cumulus|f5|netscaler)\-.+\-.+$/ - # rubocop:enable Layout/LineLength # Platform version numbers vs. codenames conversion hash PLATFORM_VERSION_CODES = { :debian => { "forky" => "14", diff --git a/spec/beaker/host/unix/pkg_spec.rb b/spec/beaker/host/unix/pkg_spec.rb index 16febc71d..9655f418f 100644 --- a/spec/beaker/host/unix/pkg_spec.rb +++ b/spec/beaker/host/unix/pkg_spec.rb @@ -282,14 +282,6 @@ def exec expect(instance).to receive(:exec).with('', {}).and_return(generate_result("hello", { :exit_code => 0 })) expect(instance.install_package(pkg)).to be == "hello" end - - it "uses pacman on archlinux" do - @opts = {'platform' => 'archlinux-is-me'} - pkg = 'archlinux_package' - expect( Beaker::Command ).to receive(:new).with("pacman -S --noconfirm #{pkg}", [], {:prepend_cmds=>nil, :cmdexe=>false}).and_return('') - expect( instance ).to receive(:exec).with('', {}).and_return(generate_result("hello", {:exit_code => 0})) - expect( instance.install_package(pkg) ).to be == "hello" - end end describe '#uninstall_package' do