Sha256: 0c928341cae503bd7e0169b710e13195b86e1ae2430612f6d408137271025722

Contents?: true

Size: 626 Bytes

Versions: 38

Compression:

Stored size: 626 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Solaris

describe 'Serverspec command matchers of Solaris family' do
  it_behaves_like 'support command return_stdout matcher', 'cat /etc/resolv.conf', 'localhost'
  it_behaves_like 'support command return_stdout matcher with regexp', 'cat /etc/resolv.conf', /localhost/

  it_behaves_like 'support command return_stderr matcher', 'cat /foo', 'cat: /foo: No such file or directory'
  it_behaves_like 'support command return_stderr matcher with regexp', 'cat /foo', /No such file or directory/

  it_behaves_like 'support command return_exit_status matcher', 'ls /tmp', 0
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
serverspec-0.6.16 spec/solaris/command_spec.rb
serverspec-0.6.15 spec/solaris/command_spec.rb
serverspec-0.6.13 spec/solaris/command_spec.rb
serverspec-0.6.12 spec/solaris/command_spec.rb
serverspec-0.6.11 spec/solaris/command_spec.rb
serverspec-0.6.10 spec/solaris/command_spec.rb
serverspec-0.6.9 spec/solaris/command_spec.rb
serverspec-0.6.8 spec/solaris/command_spec.rb
serverspec-0.6.7 spec/solaris/command_spec.rb
serverspec-0.6.6 spec/solaris/command_spec.rb
serverspec-0.6.5 spec/solaris/command_spec.rb
serverspec-0.6.4 spec/solaris/command_spec.rb
serverspec-0.6.3 spec/solaris/command_spec.rb
serverspec-0.6.2 spec/solaris/command_spec.rb
serverspec-0.6.1 spec/solaris/command_spec.rb
serverspec-0.6.0 spec/solaris/command_spec.rb
serverspec-0.5.8 spec/solaris/command_spec.rb
serverspec-0.5.7 spec/solaris/command_spec.rb
serverspec-0.5.6 spec/solaris/command_spec.rb
serverspec-0.5.5 spec/solaris/command_spec.rb