puppet-retrospec 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +10 -0
- data/CHANGELOG.md +2 -0
- data/lib/retrospec/plugins/v1/plugin/generators/resource_base_generator.rb +1 -1
- data/lib/retrospec/plugins/v1/plugin/version.rb +1 -1
- data/puppet-retrospec.gemspec +1 -1
- data/spec/fixtures/fixture_modules/one_resource_module/manifests/sub/settings.pp +3 -0
- data/spec/fixtures/fixture_modules/one_resource_module/manifests/sub/settings_define.pp +3 -0
- data/spec/unit/generators/acceptance_generator_spec.rb +2 -1
- data/spec/unit/generators/definition_generator_spec.rb +2 -1
- data/spec/unit/generators/hostclass_generator_spec.rb +2 -1
- data/spec/unit/generators/resource_base_generator_spec.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f328e9862dddc6c820ec45e1eede2b31fcdacd9
|
4
|
+
data.tar.gz: 1529743a6bf2c40ac94639566f57969596bcfce6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc34e24096c58029d2d26f83a223e2e8755fe2a1d6c1a565bebce3fc12d56f5d77a82664f426d4a7d9364bfa2788499355d9daaadad6886f1c534802a17e3f17
|
7
|
+
data.tar.gz: 7e6773fb54a027563e4d4ad6eef61180115ed42d735588de56dc0c21ca920f7d998c3d0cf22d53116acd14e9b86a339bd5e76906a7b28ef7273458dc9f718196
|
data/.gitlab-ci.yml
CHANGED
@@ -9,6 +9,8 @@ image: ruby:2.1
|
|
9
9
|
|
10
10
|
ruby193:
|
11
11
|
stage: test
|
12
|
+
tags:
|
13
|
+
- ruby2.2
|
12
14
|
script:
|
13
15
|
- "bundle exec rake spec"
|
14
16
|
image: ruby:1.9.3
|
@@ -16,24 +18,32 @@ ruby193:
|
|
16
18
|
|
17
19
|
ruby2.0:
|
18
20
|
stage: test
|
21
|
+
tags:
|
22
|
+
- ruby2.2
|
19
23
|
script:
|
20
24
|
- "bundle exec rake spec"
|
21
25
|
image: ruby:2.0
|
22
26
|
|
23
27
|
ruby2.1:
|
24
28
|
stage: test
|
29
|
+
tags:
|
30
|
+
- ruby2.2
|
25
31
|
script:
|
26
32
|
- "bundle exec rake spec"
|
27
33
|
image: ruby:2.1
|
28
34
|
|
29
35
|
ruby2.2:
|
30
36
|
stage: test
|
37
|
+
tags:
|
38
|
+
- ruby2.2
|
31
39
|
script:
|
32
40
|
- "bundle exec rake spec"
|
33
41
|
image: ruby:2.2
|
34
42
|
|
35
43
|
ruby2.3:
|
36
44
|
stage: test
|
45
|
+
tags:
|
46
|
+
- ruby2.2
|
37
47
|
script:
|
38
48
|
- "bundle exec rake spec"
|
39
49
|
image: ruby:2.3
|
data/CHANGELOG.md
CHANGED
data/puppet-retrospec.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.require_paths = ["lib"]
|
12
12
|
s.authors = ["Corey Osman"]
|
13
|
-
s.date = "2017-03-
|
13
|
+
s.date = "2017-03-17"
|
14
14
|
s.description = "Retrofits and generates valid puppet rspec test code to existing modules"
|
15
15
|
s.email = "corey@nwops.io"
|
16
16
|
s.extra_rdoc_files = [
|
@@ -127,8 +127,9 @@ describe Retrospec::Puppet::Generators::AcceptanceGenerator do
|
|
127
127
|
File.join(spec_files_path, 'inherits_params_spec.rb'),
|
128
128
|
File.join(spec_files_path, 'one_define_spec.rb'),
|
129
129
|
File.join(spec_files_path, 'one_resource_spec.rb'),
|
130
|
+
File.join(spec_files_path, 'sub', 'settings_spec.rb'),
|
131
|
+
File.join(spec_files_path, 'sub', 'settings_define_spec.rb'),
|
130
132
|
File.join(spec_files_path, 'params_spec.rb')
|
131
|
-
|
132
133
|
]
|
133
134
|
end
|
134
135
|
it 'should generate a bunch of files' do
|
@@ -82,7 +82,8 @@ describe Retrospec::Puppet::Generators::DefinitionGenerator do
|
|
82
82
|
|
83
83
|
describe 'spec files' do
|
84
84
|
let(:generated_files) do
|
85
|
-
[File.join(spec_files_path, 'one_define_spec.rb')
|
85
|
+
[File.join(spec_files_path, 'one_define_spec.rb'),
|
86
|
+
File.join(spec_files_path, 'sub', 'settings_define_spec.rb')]
|
86
87
|
end
|
87
88
|
it 'should generate a bunch of files' do
|
88
89
|
files = Retrospec::Puppet::Generators::DefinitionGenerator.generate_spec_files(module_path, generator_opts)
|
@@ -79,7 +79,8 @@ describe 'HostClassGenerator' do
|
|
79
79
|
[File.join(spec_files_path, 'another_resource_spec.rb'),
|
80
80
|
File.join(spec_files_path, 'inherits_params_spec.rb'),
|
81
81
|
File.join(spec_files_path, 'one_resource_spec.rb'),
|
82
|
-
File.join(spec_files_path, 'params_spec.rb')
|
82
|
+
File.join(spec_files_path, 'params_spec.rb'),
|
83
|
+
File.join(spec_files_path, 'sub', 'settings_spec.rb')]
|
83
84
|
end
|
84
85
|
|
85
86
|
it 'should generate a bunch of files' do
|
@@ -30,6 +30,8 @@ describe Retrospec::Puppet::Generators::ResourceBaseGenerator do
|
|
30
30
|
File.join(spec_files_path, 'classes', 'inherits_params_spec.rb'),
|
31
31
|
File.join(spec_files_path, 'classes', 'one_resource_spec.rb'),
|
32
32
|
File.join(spec_files_path, 'classes', 'params_spec.rb'),
|
33
|
+
File.join(spec_files_path, 'classes', 'sub', 'settings_spec.rb'),
|
34
|
+
File.join(spec_files_path, 'defines', 'sub', 'settings_define_spec.rb'),
|
33
35
|
File.join(spec_files_path, 'defines', 'one_define_spec.rb')]
|
34
36
|
end
|
35
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-retrospec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|
@@ -162,6 +162,8 @@ files:
|
|
162
162
|
- spec/fixtures/fixture_modules/one_resource_module/manifests/one_define.pp
|
163
163
|
- spec/fixtures/fixture_modules/one_resource_module/manifests/one_resource_class.pp
|
164
164
|
- spec/fixtures/fixture_modules/one_resource_module/manifests/params.pp
|
165
|
+
- spec/fixtures/fixture_modules/one_resource_module/manifests/sub/settings.pp
|
166
|
+
- spec/fixtures/fixture_modules/one_resource_module/manifests/sub/settings_define.pp
|
165
167
|
- spec/fixtures/fixture_modules/required_parameters/manifests/init.pp
|
166
168
|
- spec/fixtures/fixture_modules/sample_module/lib/facter/fix_installed.rb
|
167
169
|
- spec/fixtures/fixture_modules/sample_module/lib/puppet/functions/awesome_parser.rb
|