Sha256: 87b12b98c1cd491bff1cb31229b8f5613d6202e8d62e21121f8ad5a0d1e75876

Contents?: true

Size: 595 Bytes

Versions: 8

Compression:

Stored size: 595 Bytes

Contents

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

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
beaker-4.42.0 acceptance/tests/base/host/group_test.rb
beaker-4.41.2 acceptance/tests/base/host/group_test.rb
beaker-4.41.1 acceptance/tests/base/host/group_test.rb
beaker-4.41.0 acceptance/tests/base/host/group_test.rb
beaker-4.40.2 acceptance/tests/base/host/group_test.rb
beaker-4.40.1 acceptance/tests/base/host/group_test.rb
beaker-4.40.0 acceptance/tests/base/host/group_test.rb
beaker-4.39.0 acceptance/tests/base/host/group_test.rb