puppet-retrospec 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -6
- data/LICENSE +661 -20
- data/README.md +93 -45
- data/VERSION +1 -1
- data/bin/retrospec +6 -2
- data/lib/{puppet-retrospec.rb → retrospec.rb} +13 -50
- data/lib/retrospec/conditional.rb +53 -0
- data/lib/{helpers.rb → retrospec/helpers.rb} +4 -0
- data/lib/retrospec/resource.rb +37 -0
- data/lib/{templates → retrospec/templates}/acceptance_spec_test.erb +0 -0
- data/lib/{templates → retrospec/templates}/fixtures_file.erb +1 -1
- data/lib/{templates → retrospec/templates}/gemfile.erb +1 -1
- data/lib/{templates → retrospec/templates}/nodesets/centos-59-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/centos-64-x64-pe.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/centos-64-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/centos-65-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/debian-607-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/debian-70rc1-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/debian-73-i386.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/debian-73-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/default.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/fedora-18-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/sles-11sp1-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/ubuntu-server-10044-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/ubuntu-server-12042-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/ubuntu-server-1310-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/nodesets/ubuntu-server-1404-x64.yml +0 -0
- data/lib/{templates → retrospec/templates}/rakefile.erb +0 -0
- data/lib/retrospec/templates/resource_spec_file.erb +45 -0
- data/lib/{templates → retrospec/templates}/shared_context.erb +3 -1
- data/lib/{templates → retrospec/templates}/spec_helper_acceptance.rb.erb +0 -0
- data/lib/{templates → retrospec/templates}/spec_helper_file.erb +0 -0
- data/lib/retrospec/type_code.rb +18 -0
- data/lib/retrospec/variable_store.rb +82 -0
- data/lib/retrospec/version.rb +3 -0
- data/puppet-retrospec.gemspec +54 -33
- data/spec/fixtures/fixture_modules/one_resource_module/manifests/another_resource_class.pp +28 -0
- data/spec/fixtures/fixture_modules/one_resource_module/manifests/one_resource_class.pp +6 -0
- data/spec/fixtures/fixture_modules/zero_resource_module/manifests/empty_class.pp +3 -0
- data/spec/spec_helper.rb +2 -1
- data/spec/unit/conditional_spec.rb +43 -0
- data/spec/unit/puppet-retrospec_spec.rb +4 -41
- data/spec/unit/resource_spec.rb +62 -0
- data/spec/unit/type_code_spec.rb +39 -0
- data/spec/unit/variable_store_spec.rb +82 -0
- metadata +107 -53
- data/lib/templates/resource_spec_file.erb +0 -40
@@ -0,0 +1,62 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'retrospec/resource'
|
3
|
+
|
4
|
+
describe "resource" do
|
5
|
+
after :all do
|
6
|
+
# enabling the removal slows down tests, but from time to time we may need to
|
7
|
+
FileUtils.rm_rf(fixture_modules_path) if ENV['RETROSPEC_CLEAN_UP_TEST_MODULES'] =~ /true/
|
8
|
+
end
|
9
|
+
|
10
|
+
before :all do
|
11
|
+
# enabling the removal of real modules slows down tests, but from time to time we may need to
|
12
|
+
FileUtils.rm_rf(fixture_modules_path) if ENV['RETROSPEC_CLEAN_UP_TEST_MODULES'] =~ /true/
|
13
|
+
@path = File.join(fixture_modules_path, 'tomcat')
|
14
|
+
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
before :each do
|
19
|
+
clean_up_spec_dir(@path)
|
20
|
+
@opts = {:module_path => @path, :enable_beaker_tests => false,
|
21
|
+
:enable_user_templates => false, :template_dir => nil }
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should initialize with one resource' do
|
26
|
+
my_path = File.expand_path(File.join('spec', 'fixtures', 'fixture_modules', 'one_resource_module'))
|
27
|
+
my_retro = Retrospec.new(my_path)
|
28
|
+
r = Resource.all(my_retro.types.find {|x| x.name == 'one_resource'})
|
29
|
+
expect(r.length).to eq(1)
|
30
|
+
expect(r[0].parameters).to eq({"ensure"=>"present"})
|
31
|
+
expect(r[0].title).to eq("/tmp/test")
|
32
|
+
expect(r[0].type).to eq("file")
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'should initialize with two resources' do
|
36
|
+
my_path = File.expand_path(File.join('spec', 'fixtures', 'fixture_modules', 'one_resource_module'))
|
37
|
+
my_retro = Retrospec.new(my_path)
|
38
|
+
test_type = my_retro.types.find {|x| x.name == 'one_resource::another_resource'}
|
39
|
+
VariableStore.populate(test_type)
|
40
|
+
r = Resource.all(test_type)
|
41
|
+
expect(r.length).to eq(2)
|
42
|
+
expect(r[0].parameters).to eq({"ensure"=>"present"})
|
43
|
+
expect(r[0].title).to eq("/tmp/test2")
|
44
|
+
expect(r[0].type).to eq("file")
|
45
|
+
expect(r[1].parameters).to eq({"ensure"=>"present","content" => "/tmp/test3/test3183/oohhhh"})
|
46
|
+
expect(r[1].title).to eq("/tmp/test3")
|
47
|
+
expect(r[1].type).to eq("file")
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'should return resources' do
|
51
|
+
test_module = Retrospec.new(@opts[:module_path], @opts)
|
52
|
+
test_type = test_module.types[0]
|
53
|
+
expect(Resource.all(test_type.code)).to eq([])
|
54
|
+
end
|
55
|
+
|
56
|
+
it 'can process an empty class' do
|
57
|
+
my_path = File.expand_path(File.join('spec', 'fixtures', 'fixture_modules', 'zero_resource_module'))
|
58
|
+
my_retro = Retrospec.new(my_path)
|
59
|
+
r = Resource.all(my_retro.types.find {|x| x.name == 'empty_class'})
|
60
|
+
expect(r.size).to eq(0)
|
61
|
+
end
|
62
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'retrospec/type_code'
|
3
|
+
|
4
|
+
describe "type_code" do
|
5
|
+
after :all do
|
6
|
+
# enabling the removal slows down tests, but from time to time we may need to
|
7
|
+
FileUtils.rm_rf(fixture_modules_path) if ENV['RETROSPEC_CLEAN_UP_TEST_MODULES'] =~ /true/
|
8
|
+
end
|
9
|
+
|
10
|
+
before :all do
|
11
|
+
# enabling the removal of real modules slows down tests, but from time to time we may need to
|
12
|
+
FileUtils.rm_rf(fixture_modules_path) if ENV['RETROSPEC_CLEAN_UP_TEST_MODULES'] =~ /true/
|
13
|
+
@path = File.join(fixture_modules_path, 'tomcat')
|
14
|
+
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
before :each do
|
19
|
+
my_path = File.expand_path(File.join('spec', 'fixtures', 'fixture_modules', 'one_resource_module'))
|
20
|
+
@my_retro = Retrospec.new(my_path)
|
21
|
+
@test_type = @my_retro.types.find {|x| x.name == 'one_resource::another_resource'}
|
22
|
+
|
23
|
+
end
|
24
|
+
it 'should initialize correctly scope name' do
|
25
|
+
expect(TypeCode.new(@test_type).scope_name).to eq('one_resource::another_resource')
|
26
|
+
expect(TypeCode.new(@test_type).type).to eq(@test_type)
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'should find all the variables' do
|
30
|
+
expect(TypeCode.new(@test_type).variables.size).to eq(3)
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'should respond correctly when class is empty' do
|
34
|
+
my_path = File.expand_path(File.join('spec', 'fixtures', 'fixture_modules', 'zero_resource_module'))
|
35
|
+
my_retro = Retrospec.new(my_path)
|
36
|
+
test_type = my_retro.types.find {|x| x.name == 'empty_class'}
|
37
|
+
expect{TypeCode.new(test_type).variables}.to_not raise_error
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "variable_store" do
|
4
|
+
after :all do
|
5
|
+
# enabling the removal slows down tests, but from time to time we may need to
|
6
|
+
FileUtils.rm_rf(fixture_modules_path) if ENV['RETROSPEC_CLEAN_UP_TEST_MODULES'] =~ /true/
|
7
|
+
end
|
8
|
+
|
9
|
+
before :all do
|
10
|
+
# enabling the removal of real modules slows down tests, but from time to time we may need to
|
11
|
+
FileUtils.rm_rf(fixture_modules_path) if ENV['RETROSPEC_CLEAN_UP_TEST_MODULES'] =~ /true/
|
12
|
+
end
|
13
|
+
|
14
|
+
before :each do
|
15
|
+
@my_path = File.expand_path(File.join('spec', 'fixtures', 'fixture_modules', 'one_resource_module'))
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'should initialize' do
|
19
|
+
expect(VariableStore.instance.class).to eq(VariableStore)
|
20
|
+
end
|
21
|
+
|
22
|
+
it 'should resolve a string' do
|
23
|
+
my_retro = Retrospec.new(@my_path)
|
24
|
+
test_type = my_retro.types.find {|x| x.name == 'one_resource::another_resource'}
|
25
|
+
r = Resource.all(test_type).first
|
26
|
+
string1 = ObjectSpace.each_object(Puppet::Parser::AST::String).find {|x| x.to_s == "\"value1\"" }
|
27
|
+
expect(VariableStore.resolve(string1)).to eq("\"value1\"")
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'should resolve a variable' do
|
31
|
+
my_retro = Retrospec.new(@my_path)
|
32
|
+
test_type = my_retro.types.find {|x| x.name == 'one_resource::another_resource'}
|
33
|
+
r = Resource.all(test_type).first
|
34
|
+
var1 = ObjectSpace.each_object(Puppet::Parser::AST::Variable).find {|x| x.to_s == '$file_name' }
|
35
|
+
expect(VariableStore.resolve(var1)).to eq("/tmp/test3")
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'should resolve a basic vardef type' do
|
39
|
+
my_retro = Retrospec.new(@my_path)
|
40
|
+
test_type = my_retro.types.find {|x| x.name == 'one_resource::another_resource'}
|
41
|
+
VariableStore.populate(test_type)
|
42
|
+
vardef1 = ObjectSpace.each_object(Puppet::Parser::AST::VarDef).find {|x| x.name.value == 'some_var'}
|
43
|
+
expect(VariableStore.resolve(vardef1)).to eq("oohhhh")
|
44
|
+
end
|
45
|
+
|
46
|
+
it 'should resolve a concat vardef type' do
|
47
|
+
my_retro = Retrospec.new(@my_path)
|
48
|
+
test_type = my_retro.types.find {|x| x.name == 'one_resource::another_resource'}
|
49
|
+
VariableStore.populate(test_type)
|
50
|
+
vardef2 = ObjectSpace.each_object(Puppet::Parser::AST::VarDef).find {|x| x.name.value == 'concat_var'}
|
51
|
+
expect(VariableStore.resolve(vardef2)).to eq("/tmp/test3/test3183/oohhhh")
|
52
|
+
end
|
53
|
+
|
54
|
+
it 'should resolve vardef/concat with parameter value' do
|
55
|
+
my_retro = Retrospec.new(@my_path)
|
56
|
+
test_type = my_retro.types.find {|x| x.name == 'one_resource::another_resource'}
|
57
|
+
VariableStore.populate(test_type)
|
58
|
+
vardef3 = ObjectSpace.each_object(Puppet::Parser::AST::VarDef).find {|x| x.name.value == 'cli_modules'}
|
59
|
+
expect(VariableStore.resolve(vardef3)).to eq("/etc/hammer/cli.modules.d")
|
60
|
+
end
|
61
|
+
|
62
|
+
describe '#add' do
|
63
|
+
it 'should store the value correctly' do
|
64
|
+
my_retro = Retrospec.new(@my_path)
|
65
|
+
test_type = my_retro.types.find {|x| x.name == 'one_resource::another_resource'}
|
66
|
+
string1 = ObjectSpace.each_object(Puppet::Parser::AST::String).find {|x| x.to_s == "\"value1\"" }
|
67
|
+
expect(VariableStore.add(string1, 'blah')).to eq("blah")
|
68
|
+
expect(VariableStore.lookup(string1)).to eq('blah')
|
69
|
+
end
|
70
|
+
|
71
|
+
it 'variable name should be stored in key with $' do
|
72
|
+
keys = VariableStore.instance.store.keys
|
73
|
+
expect(keys.include?('$var1')).to eq(true)
|
74
|
+
end
|
75
|
+
|
76
|
+
it 'should store vardef as is' do
|
77
|
+
my_retro = Retrospec.new(@my_path)
|
78
|
+
test_type = my_retro.types.find {|x| x.name == 'one_resource::another_resource'}
|
79
|
+
VariableStore.populate(test_type)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
metadata
CHANGED
@@ -1,139 +1,181 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-retrospec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puppet
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - '
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.7.3
|
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:
|
26
|
+
version: 3.7.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: trollop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
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
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '2.14'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.14'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0.7'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.7'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rdoc
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '3.12'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.12'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '1.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: jeweler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: pry
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: fakefs
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
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: pry-rescue
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
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: pry-stack_explorer
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
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: pry-coolline
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
130
172
|
- !ruby/object:Gem::Version
|
131
173
|
version: '0'
|
132
174
|
type: :development
|
133
175
|
prerelease: false
|
134
176
|
version_requirements: !ruby/object:Gem::Requirement
|
135
177
|
requirements:
|
136
|
-
- -
|
178
|
+
- - ">="
|
137
179
|
- !ruby/object:Gem::Version
|
138
180
|
version: '0'
|
139
181
|
description: Retrofits and generates valid puppet rspec test code to existing modules
|
@@ -145,46 +187,58 @@ extra_rdoc_files:
|
|
145
187
|
- LICENSE
|
146
188
|
- README.md
|
147
189
|
files:
|
148
|
-
- .document
|
149
|
-
- .rspec
|
150
|
-
- .travis.yml
|
190
|
+
- ".document"
|
191
|
+
- ".rspec"
|
192
|
+
- ".travis.yml"
|
151
193
|
- Gemfile
|
152
194
|
- LICENSE
|
153
195
|
- README.md
|
154
196
|
- Rakefile
|
155
197
|
- VERSION
|
156
198
|
- bin/retrospec
|
157
|
-
- lib/
|
158
|
-
- lib/
|
159
|
-
- lib/
|
160
|
-
- lib/
|
161
|
-
- lib/templates/
|
162
|
-
- lib/templates/
|
163
|
-
- lib/templates/
|
164
|
-
- lib/templates/nodesets/centos-
|
165
|
-
- lib/templates/nodesets/centos-
|
166
|
-
- lib/templates/nodesets/
|
167
|
-
- lib/templates/nodesets/
|
168
|
-
- lib/templates/nodesets/debian-
|
169
|
-
- lib/templates/nodesets/debian-
|
170
|
-
- lib/templates/nodesets/
|
171
|
-
- lib/templates/nodesets/
|
172
|
-
- lib/templates/nodesets/
|
173
|
-
- lib/templates/nodesets/
|
174
|
-
- lib/templates/nodesets/
|
175
|
-
- lib/templates/nodesets/ubuntu-server-
|
176
|
-
- lib/templates/nodesets/ubuntu-server-
|
177
|
-
- lib/templates/
|
178
|
-
- lib/templates/
|
179
|
-
- lib/templates/
|
180
|
-
- lib/templates/
|
181
|
-
- lib/templates/
|
199
|
+
- lib/retrospec.rb
|
200
|
+
- lib/retrospec/conditional.rb
|
201
|
+
- lib/retrospec/helpers.rb
|
202
|
+
- lib/retrospec/resource.rb
|
203
|
+
- lib/retrospec/templates/acceptance_spec_test.erb
|
204
|
+
- lib/retrospec/templates/fixtures_file.erb
|
205
|
+
- lib/retrospec/templates/gemfile.erb
|
206
|
+
- lib/retrospec/templates/nodesets/centos-59-x64.yml
|
207
|
+
- lib/retrospec/templates/nodesets/centos-64-x64-pe.yml
|
208
|
+
- lib/retrospec/templates/nodesets/centos-64-x64.yml
|
209
|
+
- lib/retrospec/templates/nodesets/centos-65-x64.yml
|
210
|
+
- lib/retrospec/templates/nodesets/debian-607-x64.yml
|
211
|
+
- lib/retrospec/templates/nodesets/debian-70rc1-x64.yml
|
212
|
+
- lib/retrospec/templates/nodesets/debian-73-i386.yml
|
213
|
+
- lib/retrospec/templates/nodesets/debian-73-x64.yml
|
214
|
+
- lib/retrospec/templates/nodesets/default.yml
|
215
|
+
- lib/retrospec/templates/nodesets/fedora-18-x64.yml
|
216
|
+
- lib/retrospec/templates/nodesets/sles-11sp1-x64.yml
|
217
|
+
- lib/retrospec/templates/nodesets/ubuntu-server-10044-x64.yml
|
218
|
+
- lib/retrospec/templates/nodesets/ubuntu-server-12042-x64.yml
|
219
|
+
- lib/retrospec/templates/nodesets/ubuntu-server-1310-x64.yml
|
220
|
+
- lib/retrospec/templates/nodesets/ubuntu-server-1404-x64.yml
|
221
|
+
- lib/retrospec/templates/rakefile.erb
|
222
|
+
- lib/retrospec/templates/resource_spec_file.erb
|
223
|
+
- lib/retrospec/templates/shared_context.erb
|
224
|
+
- lib/retrospec/templates/spec_helper_acceptance.rb.erb
|
225
|
+
- lib/retrospec/templates/spec_helper_file.erb
|
226
|
+
- lib/retrospec/type_code.rb
|
227
|
+
- lib/retrospec/variable_store.rb
|
228
|
+
- lib/retrospec/version.rb
|
182
229
|
- puppet-retrospec.gemspec
|
230
|
+
- spec/fixtures/fixture_modules/one_resource_module/manifests/another_resource_class.pp
|
231
|
+
- spec/fixtures/fixture_modules/one_resource_module/manifests/one_resource_class.pp
|
232
|
+
- spec/fixtures/fixture_modules/zero_resource_module/manifests/empty_class.pp
|
183
233
|
- spec/fixtures/fixture_modules/zero_resource_module/manifests/not_a_resource_defination.pp
|
184
234
|
- spec/fixtures/manifests/includes-class.pp
|
185
235
|
- spec/fixtures/manifests/includes-defines.pp
|
186
236
|
- spec/spec_helper.rb
|
237
|
+
- spec/unit/conditional_spec.rb
|
187
238
|
- spec/unit/puppet-retrospec_spec.rb
|
239
|
+
- spec/unit/resource_spec.rb
|
240
|
+
- spec/unit/type_code_spec.rb
|
241
|
+
- spec/unit/variable_store_spec.rb
|
188
242
|
homepage: http://github.com/logicminds/puppet-retrospec
|
189
243
|
licenses:
|
190
244
|
- MIT
|
@@ -195,17 +249,17 @@ require_paths:
|
|
195
249
|
- lib
|
196
250
|
required_ruby_version: !ruby/object:Gem::Requirement
|
197
251
|
requirements:
|
198
|
-
- -
|
252
|
+
- - ">="
|
199
253
|
- !ruby/object:Gem::Version
|
200
254
|
version: '0'
|
201
255
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
202
256
|
requirements:
|
203
|
-
- -
|
257
|
+
- - ">="
|
204
258
|
- !ruby/object:Gem::Version
|
205
259
|
version: '0'
|
206
260
|
requirements: []
|
207
261
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.4.
|
262
|
+
rubygems_version: 2.4.5
|
209
263
|
signing_key:
|
210
264
|
specification_version: 4
|
211
265
|
summary: Generates puppet rspec test code based on the classes and defines inside
|