Sha256: 7b63a56f0b5431c711c2c92abf8cd8a17cff1c28c2ad7afaca4a70f11908ed5c

Contents?: true

Size: 605 Bytes

Versions: 16

Compression:

Stored size: 605 Bytes

Contents

test_name 'User Test' do
  step "#user_get: has an Administrator user on Windows" do
    hosts.select { |h| h['platform'].include?('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'].include?('windows') }.each do |host|
      assert_raises Beaker::Host::CommandFailure do
        host.user_get('CaptainCaveman') { |result| }
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
beaker-6.4.1 acceptance/tests/base/host/user_test.rb
beaker-6.4.0 acceptance/tests/base/host/user_test.rb
beaker-6.3.0 acceptance/tests/base/host/user_test.rb
beaker-6.2.0 acceptance/tests/base/host/user_test.rb
beaker-6.1.0 acceptance/tests/base/host/user_test.rb
beaker-5.8.1 acceptance/tests/base/host/user_test.rb
beaker-5.8.0 acceptance/tests/base/host/user_test.rb
beaker-5.7.0 acceptance/tests/base/host/user_test.rb
beaker-5.6.0 acceptance/tests/base/host/user_test.rb
beaker-5.5.0 acceptance/tests/base/host/user_test.rb
beaker-5.4.0 acceptance/tests/base/host/user_test.rb
beaker-5.3.1 acceptance/tests/base/host/user_test.rb
beaker-5.3.0 acceptance/tests/base/host/user_test.rb
beaker-5.2.0 acceptance/tests/base/host/user_test.rb
beaker-5.1.0 acceptance/tests/base/host/user_test.rb
beaker-5.0.0 acceptance/tests/base/host/user_test.rb