Sha256: 07a822bcca244aedecf1645cde08d5a2febbbb0fe74caf22beadc47467c6f980

Contents?: true

Size: 592 Bytes

Versions: 85

Compression:

Stored size: 592 Bytes

Contents

test_name 'User Test' do
  step "#user_get: has an Administrator user on Windows" do
    hosts.select { |h| h['platform'] =~ /windows/ }.each do |host|
      host.user_get('Administrator') do |result|
        refute_match(result.stdout, 'NET HELPMSG', 'Output indicates Administrator not found')
      end
    end
  end

  step "#user_get: should not have CaptainCaveman user on Windows" do
    hosts.select { |h| h['platform'] =~ /windows/ }.each do |host|
      assert_raises Beaker::Host::CommandFailure do
        host.user_get('CaptainCaveman') { |result| }
      end
    end
  end

end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
beaker-3.29.0 acceptance/tests/base/host/user_test.rb
beaker-3.28.0 acceptance/tests/base/host/user_test.rb
beaker-3.27.0 acceptance/tests/base/host/user_test.rb
beaker-3.26.0 acceptance/tests/base/host/user_test.rb
beaker-3.25.0 acceptance/tests/base/host/user_test.rb
beaker-3.24.0 acceptance/tests/base/host/user_test.rb
beaker-3.23.0 acceptance/tests/base/host/user_test.rb
beaker-3.22.0 acceptance/tests/base/host/user_test.rb
beaker-3.21.1 acceptance/tests/base/host/user_test.rb
beaker-3.21.0 acceptance/tests/base/host/user_test.rb
beaker-3.20.0 acceptance/tests/base/host/user_test.rb
beaker-3.19.0 acceptance/tests/base/host/user_test.rb
beaker-3.18.0 acceptance/tests/base/host/user_test.rb
beaker-3.17.0 acceptance/tests/base/host/user_test.rb
beaker-3.16.0 acceptance/tests/base/host/user_test.rb
beaker-3.15.0 acceptance/tests/base/host/user_test.rb
beaker-3.14.0 acceptance/tests/base/host/user_test.rb
beaker-3.13.0 acceptance/tests/base/host/user_test.rb
beaker-3.12.0 acceptance/tests/base/host/user_test.rb
beaker-3.11.0 acceptance/tests/base/host/user_test.rb