beaker 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.simplecov +14 -0
- data/DOCUMENTING.md +167 -0
- data/Gemfile +3 -0
- data/LICENSE +17 -0
- data/README.md +332 -0
- data/Rakefile +121 -0
- data/beaker.gemspec +42 -0
- data/beaker.rb +10 -0
- data/bin/beaker +9 -0
- data/lib/beaker.rb +36 -0
- data/lib/beaker/answers.rb +29 -0
- data/lib/beaker/answers/version28.rb +104 -0
- data/lib/beaker/answers/version30.rb +194 -0
- data/lib/beaker/cli.rb +113 -0
- data/lib/beaker/command.rb +241 -0
- data/lib/beaker/command_factory.rb +21 -0
- data/lib/beaker/dsl.rb +85 -0
- data/lib/beaker/dsl/assertions.rb +87 -0
- data/lib/beaker/dsl/helpers.rb +625 -0
- data/lib/beaker/dsl/install_utils.rb +299 -0
- data/lib/beaker/dsl/outcomes.rb +99 -0
- data/lib/beaker/dsl/roles.rb +97 -0
- data/lib/beaker/dsl/structure.rb +63 -0
- data/lib/beaker/dsl/wrappers.rb +100 -0
- data/lib/beaker/host.rb +193 -0
- data/lib/beaker/host/aix.rb +15 -0
- data/lib/beaker/host/aix/file.rb +16 -0
- data/lib/beaker/host/aix/group.rb +35 -0
- data/lib/beaker/host/aix/user.rb +32 -0
- data/lib/beaker/host/unix.rb +54 -0
- data/lib/beaker/host/unix/exec.rb +15 -0
- data/lib/beaker/host/unix/file.rb +16 -0
- data/lib/beaker/host/unix/group.rb +40 -0
- data/lib/beaker/host/unix/pkg.rb +22 -0
- data/lib/beaker/host/unix/user.rb +32 -0
- data/lib/beaker/host/windows.rb +44 -0
- data/lib/beaker/host/windows/exec.rb +18 -0
- data/lib/beaker/host/windows/file.rb +15 -0
- data/lib/beaker/host/windows/group.rb +36 -0
- data/lib/beaker/host/windows/pkg.rb +26 -0
- data/lib/beaker/host/windows/user.rb +32 -0
- data/lib/beaker/hypervisor.rb +37 -0
- data/lib/beaker/hypervisor/aixer.rb +52 -0
- data/lib/beaker/hypervisor/blimper.rb +123 -0
- data/lib/beaker/hypervisor/fusion.rb +56 -0
- data/lib/beaker/hypervisor/solaris.rb +65 -0
- data/lib/beaker/hypervisor/vagrant.rb +118 -0
- data/lib/beaker/hypervisor/vcloud.rb +175 -0
- data/lib/beaker/hypervisor/vsphere.rb +80 -0
- data/lib/beaker/hypervisor/vsphere_helper.rb +200 -0
- data/lib/beaker/logger.rb +167 -0
- data/lib/beaker/network_manager.rb +73 -0
- data/lib/beaker/options_parsing.rb +323 -0
- data/lib/beaker/result.rb +55 -0
- data/lib/beaker/shared.rb +15 -0
- data/lib/beaker/shared/error_handler.rb +17 -0
- data/lib/beaker/shared/host_handler.rb +46 -0
- data/lib/beaker/shared/repetition.rb +28 -0
- data/lib/beaker/ssh_connection.rb +198 -0
- data/lib/beaker/test_case.rb +225 -0
- data/lib/beaker/test_config.rb +148 -0
- data/lib/beaker/test_suite.rb +288 -0
- data/lib/beaker/utils.rb +7 -0
- data/lib/beaker/utils/ntp_control.rb +42 -0
- data/lib/beaker/utils/repo_control.rb +92 -0
- data/lib/beaker/utils/setup_helper.rb +77 -0
- data/lib/beaker/utils/validator.rb +27 -0
- data/spec/beaker/command_spec.rb +94 -0
- data/spec/beaker/dsl/assertions_spec.rb +104 -0
- data/spec/beaker/dsl/helpers_spec.rb +230 -0
- data/spec/beaker/dsl/install_utils_spec.rb +70 -0
- data/spec/beaker/dsl/outcomes_spec.rb +43 -0
- data/spec/beaker/dsl/roles_spec.rb +86 -0
- data/spec/beaker/dsl/structure_spec.rb +60 -0
- data/spec/beaker/dsl/wrappers_spec.rb +52 -0
- data/spec/beaker/host_spec.rb +95 -0
- data/spec/beaker/logger_spec.rb +117 -0
- data/spec/beaker/options_parsing_spec.rb +37 -0
- data/spec/beaker/puppet_command_spec.rb +128 -0
- data/spec/beaker/ssh_connection_spec.rb +39 -0
- data/spec/beaker/test_case_spec.rb +6 -0
- data/spec/beaker/test_suite_spec.rb +44 -0
- data/spec/mocks_and_helpers.rb +34 -0
- data/spec/spec_helper.rb +15 -0
- metadata +359 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
module Beaker
|
4
|
+
describe Options do
|
5
|
+
repo = Options.repo?
|
6
|
+
it "has repo set to git://github.com/puppetlabs" do
|
7
|
+
expect repo == 'git://github.com/puppetlabs'
|
8
|
+
end
|
9
|
+
|
10
|
+
#test parse_install_options
|
11
|
+
it "can transform --install PUPPET/3.1 into #{repo}/puppet.git#3.1" do
|
12
|
+
opts = ["PUPPET/3.1"]
|
13
|
+
expect(Options.parse_install_options(opts)).to be === ["#{repo}/puppet.git#3.1"]
|
14
|
+
end
|
15
|
+
it "can transform --install FACTER/v.1.0 into #{repo}/facter.git#v.1.0" do
|
16
|
+
opts = ["FACTER/v.1.0"]
|
17
|
+
expect(Options.parse_install_options(opts)).to be === ["#{repo}/facter.git#v.1.0"]
|
18
|
+
end
|
19
|
+
it "can transform --install HIERA/xyz into #{repo}/hiera.git#xyz" do
|
20
|
+
opts = ["HIERA/xyz"]
|
21
|
+
expect(Options.parse_install_options(opts)).to be === ["#{repo}/hiera.git#xyz"]
|
22
|
+
end
|
23
|
+
it "can transform --install HIERA-PUPPET/path/to/repo into #{repo}/hiera-puppet.git#path/to/repo" do
|
24
|
+
opts = ["HIERA-PUPPET/path/to/repo"]
|
25
|
+
expect(Options.parse_install_options(opts)).to be === ["#{repo}/hiera-puppet.git#path/to/repo"]
|
26
|
+
end
|
27
|
+
it "can transform --install PUPPET/3.1,FACTER/v.1.0 into #{repo}/puppet.git#3.1,#{repo}/facter.git#v.1.0" do
|
28
|
+
opts = ["PUPPET/3.1", "FACTER/v.1.0"]
|
29
|
+
expect(Options.parse_install_options(opts)).to be === ["#{repo}/puppet.git#3.1", "#{repo}/facter.git#v.1.0"]
|
30
|
+
end
|
31
|
+
it "can leave --install git://github.com/puppetlabs/puppet.git#my/full/path alone" do
|
32
|
+
opts = ["git://github.com/puppetlabs/puppet.git#my/full/path"]
|
33
|
+
expect(Options.parse_install_options(opts)).to be === ["git://github.com/puppetlabs/puppet.git#my/full/path"]
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,128 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Beaker
|
4
|
+
#most testing already covered in Command, just need to cover env variable handling
|
5
|
+
describe PuppetCommand do
|
6
|
+
let(:command) { @command || '/bin/ls' }
|
7
|
+
let(:args) { @args || Array.new }
|
8
|
+
let(:options) { @options || Hash.new }
|
9
|
+
|
10
|
+
subject(:cmd) { PuppetCommand.new( command, *args, options ) }
|
11
|
+
let :config do
|
12
|
+
MockConfig.new({}, {'name' => {'platform' => @platform}}, @pe)
|
13
|
+
end
|
14
|
+
let(:host) { Host.create 'name', {}, config }
|
15
|
+
|
16
|
+
it 'creates a Windows env for a Windows host' do
|
17
|
+
@platform = 'windows'
|
18
|
+
@command = 'agent'
|
19
|
+
@args = [ 'to', 'the', 'baz' ]
|
20
|
+
@options = { :foo => 'bar' }
|
21
|
+
|
22
|
+
expect( host ).to be_a_kind_of Windows::Host
|
23
|
+
expect( cmd.options ).to be == @options
|
24
|
+
expect( cmd.args ).to be == @args
|
25
|
+
expect( cmd.command ).to be == "puppet " + @command
|
26
|
+
|
27
|
+
expect( cmd.args_string ).to be == 'to the baz'
|
28
|
+
expect( cmd.options_string ).to be == '--foo=bar'
|
29
|
+
expect( cmd.environment_string_for(host, cmd.environment) ).to be == "env PATH=\"/opt/puppet-git-repos/hiera/bin:${PATH}\" RUBYLIB=\"`cygpath -w /opt/puppet-git-repos/hiera/lib`;`cygpath -w /opt/puppet-git-repos/hiera-puppet/lib`;${RUBYLIB}\" cmd.exe /c"
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'creates a Unix env for a Unix host' do
|
33
|
+
@platform = 'unix'
|
34
|
+
@command = 'agent'
|
35
|
+
@args = [ 'to', 'the', 'baz' ]
|
36
|
+
@options = { :foo => 'bar' }
|
37
|
+
|
38
|
+
expect( host ).to be_a_kind_of Unix::Host
|
39
|
+
expect( cmd.options ).to be == @options
|
40
|
+
expect( cmd.args ).to be == @args
|
41
|
+
expect( cmd.command ).to be == "puppet " + @command
|
42
|
+
|
43
|
+
expect( cmd.args_string ).to be == 'to the baz'
|
44
|
+
expect( cmd.options_string ).to be == '--foo=bar'
|
45
|
+
expect( cmd.environment_string_for(host, cmd.environment) ).to be == "env PATH=\"/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}\" RUBYLIB=\"/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}\""
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'creates an AIX env for an AIX host' do
|
49
|
+
@platform = 'aix'
|
50
|
+
@command = 'agent'
|
51
|
+
@args = [ 'to', 'the', 'baz' ]
|
52
|
+
@options = { :foo => 'bar' }
|
53
|
+
|
54
|
+
expect( host ).to be_a_kind_of Aix::Host
|
55
|
+
expect( cmd.options ).to be == @options
|
56
|
+
expect( cmd.args ).to be == @args
|
57
|
+
expect( cmd.command ).to be == "puppet " + @command
|
58
|
+
|
59
|
+
expect( cmd.args_string ).to be == 'to the baz'
|
60
|
+
expect( cmd.options_string ).to be == '--foo=bar'
|
61
|
+
expect( cmd.environment_string_for(host, cmd.environment) ).to be == "env PATH=\"/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}\" RUBYLIB=\"/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}\""
|
62
|
+
end
|
63
|
+
|
64
|
+
it 'correctly adds additional ENV to default ENV' do
|
65
|
+
@platform = 'unix'
|
66
|
+
@command = 'agent'
|
67
|
+
@args = [ 'to', 'the', 'baz' ]
|
68
|
+
@options = { :foo => 'bar', 'ENV' => {'PATH' => '/STRING_ENV/bin'} }
|
69
|
+
|
70
|
+
expect( host ).to be_a_kind_of Unix::Host
|
71
|
+
expect( cmd.options ).to be == @options
|
72
|
+
expect( cmd.args ).to be == @args
|
73
|
+
expect( cmd.command ).to be == "puppet " + @command
|
74
|
+
|
75
|
+
expect( cmd.args_string ).to be == 'to the baz'
|
76
|
+
expect( cmd.options_string ).to be == '--foo=bar'
|
77
|
+
expect( cmd.environment_string_for(host, cmd.environment) ).to be == "env PATH=\"/STRING_ENV/bin\" PATH=\"/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}\" RUBYLIB=\"/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}\""
|
78
|
+
end
|
79
|
+
|
80
|
+
it 'correctly adds additional :ENV to default ENV' do
|
81
|
+
@platform = 'unix'
|
82
|
+
@command = 'agent'
|
83
|
+
@args = [ 'to', 'the', 'baz' ]
|
84
|
+
@options = { :foo => 'bar', :ENV => {'PATH' => '/SYMBOL_ENV/bin'} }
|
85
|
+
|
86
|
+
expect( host ).to be_a_kind_of Unix::Host
|
87
|
+
expect( cmd.options ).to be == @options
|
88
|
+
expect( cmd.args ).to be == @args
|
89
|
+
expect( cmd.command ).to be == "puppet " + @command
|
90
|
+
|
91
|
+
expect( cmd.args_string ).to be == 'to the baz'
|
92
|
+
expect( cmd.options_string ).to be == '--foo=bar'
|
93
|
+
expect( cmd.environment_string_for(host, cmd.environment) ).to be == "env PATH=\"/SYMBOL_ENV/bin\" PATH=\"/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}\" RUBYLIB=\"/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}\""
|
94
|
+
end
|
95
|
+
|
96
|
+
it 'correctly adds additional :environment to default ENV' do
|
97
|
+
@platform = 'unix'
|
98
|
+
@command = 'agent'
|
99
|
+
@args = [ 'to', 'the', 'baz' ]
|
100
|
+
@options = { :foo => 'bar', :environment => {'PATH' => '/SYMBOL_ENVIRONMENT/bin'} }
|
101
|
+
|
102
|
+
expect( host ).to be_a_kind_of Unix::Host
|
103
|
+
expect( cmd.options ).to be == @options
|
104
|
+
expect( cmd.args ).to be == @args
|
105
|
+
expect( cmd.command ).to be == "puppet " + @command
|
106
|
+
|
107
|
+
expect( cmd.args_string ).to be == 'to the baz'
|
108
|
+
expect( cmd.options_string ).to be == '--foo=bar'
|
109
|
+
expect( cmd.environment_string_for(host, cmd.environment) ).to be == "env PATH=\"/SYMBOL_ENVIRONMENT/bin\" PATH=\"/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}\" RUBYLIB=\"/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}\""
|
110
|
+
end
|
111
|
+
|
112
|
+
it 'correctly adds additional environment to default ENV' do
|
113
|
+
@platform = 'unix'
|
114
|
+
@command = 'agent'
|
115
|
+
@args = [ 'to', 'the', 'baz' ]
|
116
|
+
@options = { :foo => 'bar', 'environment' => {'PATH' => '/STRING_ENVIRONMENT/bin'} }
|
117
|
+
|
118
|
+
expect( host ).to be_a_kind_of Unix::Host
|
119
|
+
expect( cmd.options ).to be == @options
|
120
|
+
expect( cmd.args ).to be == @args
|
121
|
+
expect( cmd.command ).to be == "puppet " + @command
|
122
|
+
|
123
|
+
expect( cmd.args_string ).to be == 'to the baz'
|
124
|
+
expect( cmd.options_string ).to be == '--foo=bar'
|
125
|
+
expect( cmd.environment_string_for(host, cmd.environment) ).to be == "env PATH=\"/STRING_ENVIRONMENT/bin\" PATH=\"/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}\" RUBYLIB=\"/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}\""
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'net/ssh'
|
3
|
+
|
4
|
+
module Beaker
|
5
|
+
describe SshConnection do
|
6
|
+
let( :host ) { 'my_host' }
|
7
|
+
let( :user ) { 'root' }
|
8
|
+
let( :options ) { Hash.new }
|
9
|
+
subject(:connection) { SshConnection.new host, user, options }
|
10
|
+
|
11
|
+
it 'self.connect creates connects and returns a proxy for that connection' do
|
12
|
+
# grrr
|
13
|
+
Net::SSH.should_receive(:start).with( host, user, options )
|
14
|
+
connection_constructor = SshConnection.connect host, user, options
|
15
|
+
expect( connection_constructor ).to be_a_kind_of SshConnection
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'connect creates a new connection' do
|
19
|
+
Net::SSH.should_receive( :start ).with( host, user, options )
|
20
|
+
connection.connect
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'connect caches its connection' do
|
24
|
+
Net::SSH.should_receive( :start ).with( host, user, options ).once.and_return true
|
25
|
+
connection.connect
|
26
|
+
connection.connect
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'close?'
|
30
|
+
it 'execute'
|
31
|
+
it 'request_terminal_for'
|
32
|
+
it 'register_stdout_for'
|
33
|
+
it 'register_stderr_for'
|
34
|
+
it 'register_exit_code_for'
|
35
|
+
it 'process_stdin_for'
|
36
|
+
it 'scp'
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'fileutils'
|
3
|
+
|
4
|
+
module Beaker
|
5
|
+
describe TestSuite do
|
6
|
+
|
7
|
+
context 'new', :use_fakefs => true do
|
8
|
+
let(:test_dir) { 'tmp/tests' }
|
9
|
+
|
10
|
+
let(:options) { {:tests => create_files(@files)} }
|
11
|
+
let(:rb_test) { File.expand_path(test_dir + '/my_ruby_file.rb') }
|
12
|
+
let(:pl_test) { File.expand_path(test_dir + '/my_perl_file.pl') }
|
13
|
+
let(:sh_test) { File.expand_path(test_dir + '/my_shell_file.sh') }
|
14
|
+
|
15
|
+
it 'fails without test files' do
|
16
|
+
expect { Beaker::TestSuite.new 'name', 'hosts',
|
17
|
+
Hash.new, 'config', :stop_on_error }.to raise_error
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'includes specific files as test file when explicitly passed' do
|
21
|
+
@files = [ rb_test ]
|
22
|
+
ts = Beaker::TestSuite.new 'name', 'hosts', options,
|
23
|
+
'config', :stop_on_error
|
24
|
+
|
25
|
+
expect { ts.instance_variable_get(:@test_files).
|
26
|
+
include? rb_test }.to be_true
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'includes only .rb files as test files when dir is passed' do
|
30
|
+
create_files [ rb_test, pl_test, sh_test ]
|
31
|
+
@files = [ test_dir ]
|
32
|
+
|
33
|
+
ts = Beaker::TestSuite.new 'name', 'hosts',
|
34
|
+
options, 'config', :stop_on_error
|
35
|
+
|
36
|
+
processed_files = ts.instance_variable_get :@test_files
|
37
|
+
|
38
|
+
expect(processed_files).to include(rb_test)
|
39
|
+
expect(processed_files).to_not include(sh_test)
|
40
|
+
expect(processed_files).to_not include(pl_test)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
|
2
|
+
class MockConfig < Struct.new(:CONFIG, :HOSTS)
|
3
|
+
def initialize(conf, hosts, is_pe = false)
|
4
|
+
@is_pe = is_pe
|
5
|
+
super conf, hosts
|
6
|
+
end
|
7
|
+
|
8
|
+
def is_pe?
|
9
|
+
@is_pe
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class MockIO < IO
|
14
|
+
def initialize
|
15
|
+
end
|
16
|
+
|
17
|
+
methods.each do |meth|
|
18
|
+
define_method(:meth) {}
|
19
|
+
end
|
20
|
+
|
21
|
+
def === other
|
22
|
+
super other
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
module TestFileHelpers
|
27
|
+
def create_files file_array
|
28
|
+
file_array.each do |f|
|
29
|
+
FileUtils.mkdir_p File.dirname(f)
|
30
|
+
FileUtils.touch f
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rbconfig'
|
2
|
+
ruby_conf = defined?(RbConfig) ? RbConfig::CONFIG : Config::CONFIG
|
3
|
+
|
4
|
+
unless ruby_conf['MAJOR'].to_i == 1 && ruby_conf['MINOR'].to_i < 9
|
5
|
+
require 'simplecov'
|
6
|
+
end
|
7
|
+
|
8
|
+
require 'beaker'
|
9
|
+
require 'fakefs/spec_helpers'
|
10
|
+
require 'mocks_and_helpers'
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.include FakeFS::SpecHelpers
|
14
|
+
config.include TestFileHelpers
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,359 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: beaker
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Puppetlabs
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-08-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.11.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.11.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: fakefs
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.4'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: yard
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: markdown
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: thin
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: json
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: net-ssh
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ! '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: net-scp
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ! '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ! '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rbvmomi
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ! '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: blimpy
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ! '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: nokogiri
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - '='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 1.5.10
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.5.10
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: fission
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ! '>='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ! '>='
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: inifile
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ! '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ! '>='
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
description: Puppetlabs accceptance testing harness
|
224
|
+
email:
|
225
|
+
- delivery@puppetlabs.com
|
226
|
+
executables:
|
227
|
+
- beaker
|
228
|
+
extensions: []
|
229
|
+
extra_rdoc_files: []
|
230
|
+
files:
|
231
|
+
- .gitignore
|
232
|
+
- .rspec
|
233
|
+
- .simplecov
|
234
|
+
- DOCUMENTING.md
|
235
|
+
- Gemfile
|
236
|
+
- LICENSE
|
237
|
+
- README.md
|
238
|
+
- Rakefile
|
239
|
+
- beaker.gemspec
|
240
|
+
- beaker.rb
|
241
|
+
- bin/beaker
|
242
|
+
- lib/beaker.rb
|
243
|
+
- lib/beaker/answers.rb
|
244
|
+
- lib/beaker/answers/version28.rb
|
245
|
+
- lib/beaker/answers/version30.rb
|
246
|
+
- lib/beaker/cli.rb
|
247
|
+
- lib/beaker/command.rb
|
248
|
+
- lib/beaker/command_factory.rb
|
249
|
+
- lib/beaker/dsl.rb
|
250
|
+
- lib/beaker/dsl/assertions.rb
|
251
|
+
- lib/beaker/dsl/helpers.rb
|
252
|
+
- lib/beaker/dsl/install_utils.rb
|
253
|
+
- lib/beaker/dsl/outcomes.rb
|
254
|
+
- lib/beaker/dsl/roles.rb
|
255
|
+
- lib/beaker/dsl/structure.rb
|
256
|
+
- lib/beaker/dsl/wrappers.rb
|
257
|
+
- lib/beaker/host.rb
|
258
|
+
- lib/beaker/host/aix.rb
|
259
|
+
- lib/beaker/host/aix/file.rb
|
260
|
+
- lib/beaker/host/aix/group.rb
|
261
|
+
- lib/beaker/host/aix/user.rb
|
262
|
+
- lib/beaker/host/unix.rb
|
263
|
+
- lib/beaker/host/unix/exec.rb
|
264
|
+
- lib/beaker/host/unix/file.rb
|
265
|
+
- lib/beaker/host/unix/group.rb
|
266
|
+
- lib/beaker/host/unix/pkg.rb
|
267
|
+
- lib/beaker/host/unix/user.rb
|
268
|
+
- lib/beaker/host/windows.rb
|
269
|
+
- lib/beaker/host/windows/exec.rb
|
270
|
+
- lib/beaker/host/windows/file.rb
|
271
|
+
- lib/beaker/host/windows/group.rb
|
272
|
+
- lib/beaker/host/windows/pkg.rb
|
273
|
+
- lib/beaker/host/windows/user.rb
|
274
|
+
- lib/beaker/hypervisor.rb
|
275
|
+
- lib/beaker/hypervisor/aixer.rb
|
276
|
+
- lib/beaker/hypervisor/blimper.rb
|
277
|
+
- lib/beaker/hypervisor/fusion.rb
|
278
|
+
- lib/beaker/hypervisor/solaris.rb
|
279
|
+
- lib/beaker/hypervisor/vagrant.rb
|
280
|
+
- lib/beaker/hypervisor/vcloud.rb
|
281
|
+
- lib/beaker/hypervisor/vsphere.rb
|
282
|
+
- lib/beaker/hypervisor/vsphere_helper.rb
|
283
|
+
- lib/beaker/logger.rb
|
284
|
+
- lib/beaker/network_manager.rb
|
285
|
+
- lib/beaker/options_parsing.rb
|
286
|
+
- lib/beaker/result.rb
|
287
|
+
- lib/beaker/shared.rb
|
288
|
+
- lib/beaker/shared/error_handler.rb
|
289
|
+
- lib/beaker/shared/host_handler.rb
|
290
|
+
- lib/beaker/shared/repetition.rb
|
291
|
+
- lib/beaker/ssh_connection.rb
|
292
|
+
- lib/beaker/test_case.rb
|
293
|
+
- lib/beaker/test_config.rb
|
294
|
+
- lib/beaker/test_suite.rb
|
295
|
+
- lib/beaker/utils.rb
|
296
|
+
- lib/beaker/utils/ntp_control.rb
|
297
|
+
- lib/beaker/utils/repo_control.rb
|
298
|
+
- lib/beaker/utils/setup_helper.rb
|
299
|
+
- lib/beaker/utils/validator.rb
|
300
|
+
- spec/beaker/command_spec.rb
|
301
|
+
- spec/beaker/dsl/assertions_spec.rb
|
302
|
+
- spec/beaker/dsl/helpers_spec.rb
|
303
|
+
- spec/beaker/dsl/install_utils_spec.rb
|
304
|
+
- spec/beaker/dsl/outcomes_spec.rb
|
305
|
+
- spec/beaker/dsl/roles_spec.rb
|
306
|
+
- spec/beaker/dsl/structure_spec.rb
|
307
|
+
- spec/beaker/dsl/wrappers_spec.rb
|
308
|
+
- spec/beaker/host_spec.rb
|
309
|
+
- spec/beaker/logger_spec.rb
|
310
|
+
- spec/beaker/options_parsing_spec.rb
|
311
|
+
- spec/beaker/puppet_command_spec.rb
|
312
|
+
- spec/beaker/ssh_connection_spec.rb
|
313
|
+
- spec/beaker/test_case_spec.rb
|
314
|
+
- spec/beaker/test_suite_spec.rb
|
315
|
+
- spec/mocks_and_helpers.rb
|
316
|
+
- spec/spec_helper.rb
|
317
|
+
homepage: https://github.com/puppetlabs/beaker
|
318
|
+
licenses:
|
319
|
+
- Apache2
|
320
|
+
metadata: {}
|
321
|
+
post_install_message:
|
322
|
+
rdoc_options: []
|
323
|
+
require_paths:
|
324
|
+
- lib
|
325
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
326
|
+
requirements:
|
327
|
+
- - ! '>='
|
328
|
+
- !ruby/object:Gem::Version
|
329
|
+
version: '0'
|
330
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - ! '>='
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0'
|
335
|
+
requirements: []
|
336
|
+
rubyforge_project:
|
337
|
+
rubygems_version: 2.0.6
|
338
|
+
signing_key:
|
339
|
+
specification_version: 4
|
340
|
+
summary: Let's test Puppet!
|
341
|
+
test_files:
|
342
|
+
- spec/beaker/command_spec.rb
|
343
|
+
- spec/beaker/dsl/assertions_spec.rb
|
344
|
+
- spec/beaker/dsl/helpers_spec.rb
|
345
|
+
- spec/beaker/dsl/install_utils_spec.rb
|
346
|
+
- spec/beaker/dsl/outcomes_spec.rb
|
347
|
+
- spec/beaker/dsl/roles_spec.rb
|
348
|
+
- spec/beaker/dsl/structure_spec.rb
|
349
|
+
- spec/beaker/dsl/wrappers_spec.rb
|
350
|
+
- spec/beaker/host_spec.rb
|
351
|
+
- spec/beaker/logger_spec.rb
|
352
|
+
- spec/beaker/options_parsing_spec.rb
|
353
|
+
- spec/beaker/puppet_command_spec.rb
|
354
|
+
- spec/beaker/ssh_connection_spec.rb
|
355
|
+
- spec/beaker/test_case_spec.rb
|
356
|
+
- spec/beaker/test_suite_spec.rb
|
357
|
+
- spec/mocks_and_helpers.rb
|
358
|
+
- spec/spec_helper.rb
|
359
|
+
has_rdoc:
|