From eb24ddde03d47f44336bc06e7ba4b71fcb51fe95 Mon Sep 17 00:00:00 2001 From: Dan Webb Date: Tue, 14 Nov 2023 14:31:21 +0000 Subject: [PATCH] Disable ServerSpec Signed-off-by: Dan Webb --- .github/workflows/ci.yml | 4 ++-- .../serverspec/capabilities_drop_spec.rb | 13 +++++++------ .../integration/default/serverspec/default_spec.rb | 13 +++++++------ test/integration/default/serverspec/spec_helper.rb | 14 +++++++------- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1805a2e2..3264b584 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,7 +75,7 @@ jobs: matrix: suite: - default - - no_build_context + - no-build-context - arm64 - amd64 - inspec @@ -111,7 +111,7 @@ jobs: matrix: suite: - capabilities - os: [debian-11, ubuntu-18.04, ubuntu-20.04] + os: [debian-11, ubuntu-1804, ubuntu-2004] steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 diff --git a/test/integration/capabilities/serverspec/capabilities_drop_spec.rb b/test/integration/capabilities/serverspec/capabilities_drop_spec.rb index 137b642f..6d3e7b7c 100644 --- a/test/integration/capabilities/serverspec/capabilities_drop_spec.rb +++ b/test/integration/capabilities/serverspec/capabilities_drop_spec.rb @@ -14,10 +14,11 @@ # limitations under the License. # -require 'serverspec' -set :backend, :exec +# Disable now busser-serever is gone. +# require 'serverspec' +# set :backend, :exec -describe command('/sbin/ifconfig eth0 multicast') do - its(:exit_status) { is_expected.to_not eq 0 } - its(:stderr) { is_expected.to match /Operation not permitted/ } -end +# describe command('/sbin/ifconfig eth0 multicast') do +# its(:exit_status) { is_expected.to_not eq 0 } +# its(:stderr) { is_expected.to match /Operation not permitted/ } +# end diff --git a/test/integration/default/serverspec/default_spec.rb b/test/integration/default/serverspec/default_spec.rb index 5f3e3ec5..3a182564 100644 --- a/test/integration/default/serverspec/default_spec.rb +++ b/test/integration/default/serverspec/default_spec.rb @@ -14,10 +14,11 @@ # limitations under the License. # -require 'serverspec' -require 'spec_helper' +# Disable now busser-serever is gone. +# require 'serverspec' +# require 'spec_helper' -# Just make sure the image launched and is reachable. -describe command('true') do - its(:exit_status) { is_expected.to eq 0 } -end +# # Just make sure the image launched and is reachable. +# describe command('true') do +# its(:exit_status) { is_expected.to eq 0 } +# end diff --git a/test/integration/default/serverspec/spec_helper.rb b/test/integration/default/serverspec/spec_helper.rb index 42086cc4..c1ce986a 100644 --- a/test/integration/default/serverspec/spec_helper.rb +++ b/test/integration/default/serverspec/spec_helper.rb @@ -12,10 +12,10 @@ # limitations under the License. # -case RbConfig::CONFIG['host_os'] -when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ - set :backend, :cmd - set :os, :family => 'windows' -else - set :backend, :exec -end +# case RbConfig::CONFIG['host_os'] +# when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ +# set :backend, :cmd +# set :os, :family => 'windows' +# else +# set :backend, :exec +# end