control_spec_helper 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +5 -1
- data/.rspec +3 -0
- data/.rubocop.yml +13 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +109 -0
- data/Rakefile +87 -8
- data/control_spec_helper.gemspec +22 -15
- data/ext/spec_helper_control.rb +8 -5
- data/lib/control_spec_helper/control_spec_helper.rb +49 -32
- data/lib/control_spec_helper/rake_tasks.rb +1 -157
- data/lib/control_spec_helper/version.rb +1 -1
- data/lib/rake_tasks.rb +4 -0
- data/lib/slalom.rb +60 -0
- data/lib/tasks/acceptance.rake +26 -0
- data/lib/tasks/apply.rake +7 -0
- data/lib/tasks/apply_debug.rake +7 -0
- data/lib/tasks/apply_dev.rake +7 -0
- data/lib/tasks/apply_noop.rake +6 -0
- data/lib/tasks/apply_standalone.rake +7 -0
- data/lib/tasks/default.rake +3 -0
- data/lib/tasks/git.rake +9 -0
- data/lib/tasks/help.rake +6 -0
- data/lib/tasks/hooks.rake +11 -0
- data/lib/tasks/lint.rake +26 -0
- data/lib/tasks/puppet_cmd.rake +6 -0
- data/lib/tasks/r10k.rake +6 -0
- data/lib/tasks/serverspec.rake +10 -0
- data/lib/tasks/spec.rake +10 -0
- data/lib/tasks/spec_clean.rake +6 -0
- data/lib/tasks/spec_prep.rake +10 -0
- data/lib/tasks/vplugins.rake +9 -0
- data/spec/spec_helper.rb +11 -0
- data/spec/support/shared_contexts/rake.rb +26 -0
- data/spec/tasks/vplugins_spec.rb +71 -0
- data/spec/unit/class_from_path_spec.rb +62 -0
- data/spec/unit/control_spec_helper_spec.rb +62 -1
- data/spec/unit/debug_spec.rb +30 -0
- data/spec/unit/diff_from_base_spec.rb +34 -0
- data/spec/unit/diff_profile_spec.rb +38 -0
- data/spec/unit/diff_roles_spec.rb +38 -0
- data/spec/unit/profile_fixtures_spec.rb +185 -0
- data/spec/unit/project_root_spec.rb +45 -0
- data/spec/unit/r10k_spec.rb +58 -0
- data/spec/unit/spec_clean_spec.rb +137 -0
- data/spec/unit/spec_from_class_spec.rb +65 -0
- metadata +148 -30
@@ -0,0 +1,45 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class DummyClass
|
4
|
+
include ControlSpecHelper
|
5
|
+
end
|
6
|
+
|
7
|
+
describe 'control_spec_helper' do
|
8
|
+
before do
|
9
|
+
@dummy_class = DummyClass.new
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'when root is set' do
|
13
|
+
describe 'when project_root is called' do
|
14
|
+
it 'should return a matching project_root' do
|
15
|
+
@dummy_class.instance_variable_set(:@root, '/projroot')
|
16
|
+
expect(@dummy_class.project_root).to eq('/projroot')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe 'when root is not set' do
|
22
|
+
describe 'when project_root is called' do
|
23
|
+
git_string = 'git rev-parse --show-toplevel'
|
24
|
+
|
25
|
+
it 'calls the appropriate git command' do
|
26
|
+
expect(@dummy_class).to receive(:`).with(git_string)
|
27
|
+
.and_return('foo')
|
28
|
+
@dummy_class.project_root
|
29
|
+
end
|
30
|
+
|
31
|
+
describe 'result' do
|
32
|
+
let(:test_root) { '/test_root' }
|
33
|
+
|
34
|
+
before do
|
35
|
+
allow(@dummy_class).to receive(:`).with(git_string)
|
36
|
+
.and_return(test_root)
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'should return a programmatically-determined project_root' do
|
40
|
+
expect(@dummy_class.project_root).to eq('/test_root')
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class DummyClass
|
4
|
+
include ControlSpecHelper
|
5
|
+
end
|
6
|
+
|
7
|
+
describe 'control_spec_helper' do
|
8
|
+
before do
|
9
|
+
@dummy_class = DummyClass.new
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'when r10k is called' do
|
13
|
+
cached_env_debug = ''
|
14
|
+
original_stderr = $stderr
|
15
|
+
original_stdout = $stdout
|
16
|
+
|
17
|
+
before(:each) do
|
18
|
+
allow(@dummy_class).to receive(:project_root).and_return('/')
|
19
|
+
allow(@dummy_class).to receive(:`).with('r10k puppetfile install')
|
20
|
+
# Redirect stderr and stdout
|
21
|
+
$stderr = File.open(File::NULL, 'w')
|
22
|
+
$stdout = File.open(File::NULL, 'w')
|
23
|
+
end
|
24
|
+
|
25
|
+
after(:each) do
|
26
|
+
$stderr = original_stderr
|
27
|
+
$stdout = original_stdout
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'should call the appropriate r10k command' do
|
31
|
+
allow(@dummy_class).to receive(:project_root).and_return('/')
|
32
|
+
expect(@dummy_class).to receive(:`).with('r10k puppetfile install')
|
33
|
+
@dummy_class.r10k
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'when debug environmental variable is set' do
|
37
|
+
cached_env_debug = ''
|
38
|
+
before(:each) do
|
39
|
+
allow(@dummy_class).to receive(:project_root).and_return('/')
|
40
|
+
allow(@dummy_class).to receive(:`).with('r10k puppetfile install')
|
41
|
+
cached_env_debug = ENV['debug']
|
42
|
+
ENV['debug'] = 'true'
|
43
|
+
end
|
44
|
+
after(:each) do
|
45
|
+
ENV['debug'] = cached_env_debug
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'should print its current project directory' do
|
49
|
+
expect { @dummy_class.r10k }.to output(%r{cd to /}).to_stderr
|
50
|
+
end
|
51
|
+
|
52
|
+
it 'should print its actual working directory' do
|
53
|
+
allow(Dir).to receive(:pwd).and_return('/tmp')
|
54
|
+
expect { @dummy_class.r10k }.to output(%r{cd to /tmp}).to_stderr
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,137 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class DummyClass
|
4
|
+
include ControlSpecHelper
|
5
|
+
end
|
6
|
+
|
7
|
+
describe 'control_spec_helper' do
|
8
|
+
before do
|
9
|
+
@dummy_class = DummyClass.new
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'when spec_clean is called' do
|
13
|
+
before(:each) do
|
14
|
+
allow(@dummy_class).to receive(:project_root).and_return('/')
|
15
|
+
allow(@dummy_class).to receive(:profile_path).and_return('/tmp')
|
16
|
+
allow(Dir).to receive(:pwd).and_return('/foo')
|
17
|
+
end
|
18
|
+
|
19
|
+
describe 'when debug environmental variable is set' do
|
20
|
+
it 'should print its current project directory' do
|
21
|
+
allow(FileUtils).to receive(:rm_rf)
|
22
|
+
.with('/tmp/spec/fixtures/modules')
|
23
|
+
allow(FileUtils).to receive(:rm_rf).with('/modules')
|
24
|
+
cached_env_debug = ENV['debug']
|
25
|
+
ENV['debug'] = 'true'
|
26
|
+
expect { @dummy_class.spec_clean }.to output(%r{DEBUG: cd to /})
|
27
|
+
.to_stderr
|
28
|
+
ENV['debug'] = cached_env_debug
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'should print its actual working directory' do
|
32
|
+
allow(FileUtils).to receive(:rm_rf)
|
33
|
+
.with('/tmp/spec/fixtures/modules')
|
34
|
+
allow(FileUtils).to receive(:rm_rf).with('/modules')
|
35
|
+
cached_env_debug = ENV['debug']
|
36
|
+
ENV['debug'] = 'true'
|
37
|
+
expect { @dummy_class.spec_clean }.to output(%r{DEBUG: cd to /foo})
|
38
|
+
.to_stderr
|
39
|
+
ENV['debug'] = cached_env_debug
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe 'when debug environmental variable is not set' do
|
44
|
+
it 'should not print its current project directory' do
|
45
|
+
allow(FileUtils).to receive(:rm_rf)
|
46
|
+
.with('/tmp/spec/fixtures/modules')
|
47
|
+
allow(FileUtils).to receive(:rm_rf).with('/modules')
|
48
|
+
cached_env_debug = ENV['debug']
|
49
|
+
ENV.delete('debug')
|
50
|
+
expect { @dummy_class.spec_clean }.to_not output(%r{DEBUG: cd to /})
|
51
|
+
.to_stderr
|
52
|
+
ENV['debug'] = cached_env_debug
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'should not print its actual working directory' do
|
56
|
+
allow(FileUtils).to receive(:rm_rf)
|
57
|
+
.with('/tmp/spec/fixtures/modules')
|
58
|
+
allow(FileUtils).to receive(:rm_rf).with('/modules')
|
59
|
+
cached_env_debug = ENV['debug']
|
60
|
+
ENV.delete('debug')
|
61
|
+
expect { @dummy_class.spec_clean }.to_not output(%r{DEBUG: cd to /})
|
62
|
+
.to_stderr
|
63
|
+
ENV['debug'] = cached_env_debug
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# rubocop:disable Lint/UselessAssignment
|
68
|
+
it 'should abort if fixtures is empty' do
|
69
|
+
allow(FileUtils).to receive(:rm_rf)
|
70
|
+
.with('/tmp/spec/fixtures/modules')
|
71
|
+
allow(FileUtils).to receive(:rm_rf).with('/modules')
|
72
|
+
fixtures = ''
|
73
|
+
begin
|
74
|
+
expect { @dummy_class.spec_clean }
|
75
|
+
rescue => e
|
76
|
+
puts e
|
77
|
+
end
|
78
|
+
end
|
79
|
+
# rubocop:enable Lint/UselessAssignment
|
80
|
+
|
81
|
+
# rubocop:disable Lint/UselessAssignment
|
82
|
+
it 'should abort if fixtures is null' do
|
83
|
+
allow(FileUtils).to receive(:rm_rf)
|
84
|
+
.with('/tmp/spec/fixtures/modules')
|
85
|
+
allow(FileUtils).to receive(:rm_rf).with('/modules')
|
86
|
+
fixtures = nil
|
87
|
+
begin
|
88
|
+
expect { @dummy_class.spec_clean }
|
89
|
+
rescue => e
|
90
|
+
puts e
|
91
|
+
end
|
92
|
+
end
|
93
|
+
# rubocop:enable Lint/UselessAssignment
|
94
|
+
|
95
|
+
# rubocop:disable Lint/UselessAssignment
|
96
|
+
it 'should abort if modules is empty' do
|
97
|
+
allow(FileUtils).to receive(:rm_rf)
|
98
|
+
.with('/tmp/spec/fixtures/modules')
|
99
|
+
allow(FileUtils).to receive(:rm_rf).with('/modules')
|
100
|
+
modules = ''
|
101
|
+
begin
|
102
|
+
expect { @dummy_class.spec_clean }
|
103
|
+
rescue => e
|
104
|
+
puts e
|
105
|
+
end
|
106
|
+
end
|
107
|
+
# rubocop:enable Lint/UselessAssignment
|
108
|
+
|
109
|
+
# rubocop:disable Lint/UselessAssignment
|
110
|
+
it 'should abort if modules is null' do
|
111
|
+
allow(FileUtils).to receive(:rm_rf)
|
112
|
+
.with('/tmp/spec/fixtures/modules')
|
113
|
+
allow(FileUtils).to receive(:rm_rf).with('/modules')
|
114
|
+
modules = nil
|
115
|
+
begin
|
116
|
+
expect { @dummy_class.spec_clean }
|
117
|
+
rescue => e
|
118
|
+
puts e
|
119
|
+
end
|
120
|
+
end
|
121
|
+
# rubocop:enable Lint/UselessAssignment
|
122
|
+
|
123
|
+
it 'calls the appropriate command to remove fixtures' do
|
124
|
+
allow(FileUtils).to receive(:rm_rf)
|
125
|
+
.with('/tmp/spec/fixtures/modules')
|
126
|
+
allow(FileUtils).to receive(:rm_rf).with('/modules')
|
127
|
+
@dummy_class.spec_clean
|
128
|
+
end
|
129
|
+
|
130
|
+
it 'calls the appropriate command to remove modules' do
|
131
|
+
allow(FileUtils).to receive(:rm_rf)
|
132
|
+
.with('/tmp/spec/fixtures/modules')
|
133
|
+
allow(FileUtils).to receive(:rm_rf).with('/modules')
|
134
|
+
@dummy_class.spec_clean
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
class DummyClass
|
4
|
+
include ControlSpecHelper
|
5
|
+
end
|
6
|
+
|
7
|
+
describe 'control_spec_helper' do
|
8
|
+
before do
|
9
|
+
@dummy_class = DummyClass.new
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'when passed a puppet class' do
|
13
|
+
let(:klass) { 'klass' }
|
14
|
+
it 'should be able to identify roles that contain that class' do
|
15
|
+
allow(@dummy_class).to receive(:role_path).and_return('/')
|
16
|
+
allow(@dummy_class).to receive(:project_root).and_return('/test_path')
|
17
|
+
allow(@dummy_class).to receive(:`).with('git grep -l klass')
|
18
|
+
.and_return("manifests/klass.pp\n" \
|
19
|
+
"manifests/klass/repo.pp\n" \
|
20
|
+
"manifests/stages.pp\n" \
|
21
|
+
"spec/classes/klass_spec.rb\n" \
|
22
|
+
"spec/classes/klass/repo_spec.rb\n" \
|
23
|
+
'spec/classes/stages_spec.rb')
|
24
|
+
expect(@dummy_class.roles_that_include('klass'))
|
25
|
+
.to eq(['::klass', '::klass::repo', '::stages'])
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'when asked to identify a spec file based on class name' do
|
29
|
+
let(:klass) { 'profile::klass' }
|
30
|
+
let(:role_klass) { 'role::klass' }
|
31
|
+
it 'should fail if class is neither role nor profile' do
|
32
|
+
expect { @dummy_class.spec_from_class('klass') }
|
33
|
+
.to raise_error ArgumentError
|
34
|
+
end
|
35
|
+
|
36
|
+
context 'when passed a profile class' do
|
37
|
+
it 'should be able to identify a spec file based on class name' do
|
38
|
+
allow(@dummy_class).to receive(:project_root).and_return('/')
|
39
|
+
allow(@dummy_class).to receive(:basepath)
|
40
|
+
.and_return('/test_root/control_spec_helper')
|
41
|
+
expect(@dummy_class.spec_from_class(klass))
|
42
|
+
.to eq('/test_root/control_spec_helper/profile/spec/klass_spec.rb')
|
43
|
+
end
|
44
|
+
|
45
|
+
it 'should place a profile spec in the correct path' do
|
46
|
+
allow(@dummy_class).to receive(:project_root).and_return('/')
|
47
|
+
allow(@dummy_class).to receive(:basepath)
|
48
|
+
.and_return('/test_root/control_spec_helper')
|
49
|
+
expect(@dummy_class.spec_from_class(klass))
|
50
|
+
.to eq('/test_root/control_spec_helper/profile/spec/klass_spec.rb')
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'should place a role spec in the correct path' do
|
54
|
+
valid_output =
|
55
|
+
'/test_root/control_spec_helper/role/spec/acceptance/klass_spec.rb'
|
56
|
+
allow(@dummy_class).to receive(:project_root).and_return('/')
|
57
|
+
allow(@dummy_class).to receive(:basepath)
|
58
|
+
.and_return('/test_root/control_spec_helper')
|
59
|
+
expect(@dummy_class.spec_from_class(role_klass))
|
60
|
+
.to eq(valid_output)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
metadata
CHANGED
@@ -1,99 +1,169 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: control_spec_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Slalom Consulting
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '11.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '11.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec-puppet
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.4'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: puppet
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '4.0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '4.0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: puppet-lint
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- -
|
59
|
+
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
61
|
+
version: '1.1'
|
48
62
|
type: :runtime
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- -
|
66
|
+
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '1.1'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: puppet-syntax
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- -
|
73
|
+
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
75
|
+
version: '2.1'
|
62
76
|
type: :runtime
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- -
|
80
|
+
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
82
|
+
version: '2.1'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: mocha
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- -
|
87
|
+
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
89
|
+
version: '1.1'
|
76
90
|
type: :runtime
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- -
|
94
|
+
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
96
|
+
version: '1.1'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: pry
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- -
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.10'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.10'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: git
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.3'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.3'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.39'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.39'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: r10k
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '2.2'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '2.2'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: net-ssh
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
88
158
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
159
|
+
version: '3.1'
|
90
160
|
type: :development
|
91
161
|
prerelease: false
|
92
162
|
version_requirements: !ruby/object:Gem::Requirement
|
93
163
|
requirements:
|
94
|
-
- -
|
164
|
+
- - "~>"
|
95
165
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
166
|
+
version: '3.1'
|
97
167
|
description: Contains rake tasks and a standard spec_helper for running spec tests
|
98
168
|
on puppet control repo
|
99
169
|
email:
|
@@ -102,8 +172,12 @@ executables: []
|
|
102
172
|
extensions: []
|
103
173
|
extra_rdoc_files: []
|
104
174
|
files:
|
105
|
-
- .gitignore
|
175
|
+
- ".gitignore"
|
176
|
+
- ".rspec"
|
177
|
+
- ".rubocop.yml"
|
178
|
+
- ".ruby-version"
|
106
179
|
- Gemfile
|
180
|
+
- Gemfile.lock
|
107
181
|
- LICENSE
|
108
182
|
- README.md
|
109
183
|
- Rakefile
|
@@ -114,8 +188,40 @@ files:
|
|
114
188
|
- lib/control_spec_helper/control_spec_helper.rb
|
115
189
|
- lib/control_spec_helper/rake_tasks.rb
|
116
190
|
- lib/control_spec_helper/version.rb
|
191
|
+
- lib/rake_tasks.rb
|
192
|
+
- lib/slalom.rb
|
193
|
+
- lib/tasks/acceptance.rake
|
194
|
+
- lib/tasks/apply.rake
|
195
|
+
- lib/tasks/apply_debug.rake
|
196
|
+
- lib/tasks/apply_dev.rake
|
197
|
+
- lib/tasks/apply_noop.rake
|
198
|
+
- lib/tasks/apply_standalone.rake
|
199
|
+
- lib/tasks/default.rake
|
200
|
+
- lib/tasks/git.rake
|
201
|
+
- lib/tasks/help.rake
|
202
|
+
- lib/tasks/hooks.rake
|
203
|
+
- lib/tasks/lint.rake
|
204
|
+
- lib/tasks/puppet_cmd.rake
|
205
|
+
- lib/tasks/r10k.rake
|
206
|
+
- lib/tasks/serverspec.rake
|
207
|
+
- lib/tasks/spec.rake
|
208
|
+
- lib/tasks/spec_clean.rake
|
209
|
+
- lib/tasks/spec_prep.rake
|
210
|
+
- lib/tasks/vplugins.rake
|
117
211
|
- spec/spec_helper.rb
|
212
|
+
- spec/support/shared_contexts/rake.rb
|
213
|
+
- spec/tasks/vplugins_spec.rb
|
214
|
+
- spec/unit/class_from_path_spec.rb
|
118
215
|
- spec/unit/control_spec_helper_spec.rb
|
216
|
+
- spec/unit/debug_spec.rb
|
217
|
+
- spec/unit/diff_from_base_spec.rb
|
218
|
+
- spec/unit/diff_profile_spec.rb
|
219
|
+
- spec/unit/diff_roles_spec.rb
|
220
|
+
- spec/unit/profile_fixtures_spec.rb
|
221
|
+
- spec/unit/project_root_spec.rb
|
222
|
+
- spec/unit/r10k_spec.rb
|
223
|
+
- spec/unit/spec_clean_spec.rb
|
224
|
+
- spec/unit/spec_from_class_spec.rb
|
119
225
|
homepage: http://github.com/eshamow/control_spec_helper
|
120
226
|
licenses:
|
121
227
|
- Apache-2.0
|
@@ -126,20 +232,32 @@ require_paths:
|
|
126
232
|
- lib
|
127
233
|
required_ruby_version: !ruby/object:Gem::Requirement
|
128
234
|
requirements:
|
129
|
-
- -
|
235
|
+
- - ">="
|
130
236
|
- !ruby/object:Gem::Version
|
131
237
|
version: '0'
|
132
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
239
|
requirements:
|
134
|
-
- -
|
240
|
+
- - ">="
|
135
241
|
- !ruby/object:Gem::Version
|
136
242
|
version: '0'
|
137
243
|
requirements: []
|
138
244
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
245
|
+
rubygems_version: 2.4.5
|
140
246
|
signing_key:
|
141
247
|
specification_version: 4
|
142
248
|
summary: Standard tasks and configuration for control repo spec tests
|
143
249
|
test_files:
|
144
250
|
- spec/spec_helper.rb
|
251
|
+
- spec/support/shared_contexts/rake.rb
|
252
|
+
- spec/tasks/vplugins_spec.rb
|
253
|
+
- spec/unit/class_from_path_spec.rb
|
145
254
|
- spec/unit/control_spec_helper_spec.rb
|
255
|
+
- spec/unit/debug_spec.rb
|
256
|
+
- spec/unit/diff_from_base_spec.rb
|
257
|
+
- spec/unit/diff_profile_spec.rb
|
258
|
+
- spec/unit/diff_roles_spec.rb
|
259
|
+
- spec/unit/profile_fixtures_spec.rb
|
260
|
+
- spec/unit/project_root_spec.rb
|
261
|
+
- spec/unit/r10k_spec.rb
|
262
|
+
- spec/unit/spec_clean_spec.rb
|
263
|
+
- spec/unit/spec_from_class_spec.rb
|