Skip to content

Commit

Permalink
Disable ServerSpec
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Webb <[email protected]>
  • Loading branch information
damacus committed Nov 14, 2023
1 parent 5036c0d commit eb24ddd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
matrix:
suite:
- default
- no_build_context
- no-build-context
- arm64
- amd64
- inspec
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 7 additions & 6 deletions test/integration/default/serverspec/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 7 additions & 7 deletions test/integration/default/serverspec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eb24ddd

Please sign in to comment.