Sha256: 3398db01997557a59685079414c2612138b7940b856f00c3ae395e235e253857

Contents?: true

Size: 581 Bytes

Versions: 85

Compression:

Stored size: 581 Bytes

Contents

test_name 'Group Test' do
  step "#group_get: has an Administrators group on Windows" do
    hosts.select { |h| h['platform'] =~ /windows/ }.each do |host|
      host.group_get('Administrators') do |result|
        refute_match(result.stdout, '1376', 'Output indicates Administrators not found')
      end
    end
  end

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

end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
beaker-4.38.1 acceptance/tests/base/host/group_test.rb
beaker-4.38.0 acceptance/tests/base/host/group_test.rb
beaker-4.37.2 acceptance/tests/base/host/group_test.rb
beaker-4.37.1 acceptance/tests/base/host/group_test.rb
beaker-4.37.0 acceptance/tests/base/host/group_test.rb
beaker-4.36.1 acceptance/tests/base/host/group_test.rb
beaker-4.36.0 acceptance/tests/base/host/group_test.rb
beaker-4.35.0 acceptance/tests/base/host/group_test.rb
beaker-4.34.0 acceptance/tests/base/host/group_test.rb
beaker-4.33.0 acceptance/tests/base/host/group_test.rb
beaker-4.32.0 acceptance/tests/base/host/group_test.rb
beaker-4.31.0 acceptance/tests/base/host/group_test.rb
beaker-4.30.0 acceptance/tests/base/host/group_test.rb
beaker-4.29.1 acceptance/tests/base/host/group_test.rb
beaker-4.29.0 acceptance/tests/base/host/group_test.rb
beaker-4.28.1 acceptance/tests/base/host/group_test.rb
beaker-4.28.0 acceptance/tests/base/host/group_test.rb
beaker-4.27.1 acceptance/tests/base/host/group_test.rb
beaker-4.27.0 acceptance/tests/base/host/group_test.rb
beaker-4.26.0 acceptance/tests/base/host/group_test.rb