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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19182f00aac6e9f41d3dad24c42331a932ef3082
4
- data.tar.gz: af3c40c03e987d7257fc7afcd4bc11b34b89d3d1
3
+ metadata.gz: 1f328e9862dddc6c820ec45e1eede2b31fcdacd9
4
+ data.tar.gz: 1529743a6bf2c40ac94639566f57969596bcfce6
5
5
  SHA512:
6
- metadata.gz: 38e3846b3e6dd206a60c3696e638b8e14228d2b02b8d2edd4609e53dba3c68376bb9e6057d79bdb4eeac2b0de4f2571aad042d2ae05f2486ea76f03857057101
7
- data.tar.gz: b1824320e73212d7082da5835a068c2035eb807fc3f7f66c8bf5efae042a1519282401500b4da7d870534b2b9f27a3809021b1e9da21b276a504dba3efbf64c3
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
@@ -1,3 +1,5 @@
1
+ ## 1.3.2
2
+ * Fixes gh-70 - Finding puppetfiles in nested folders
1
3
  ## 1.3.1
2
4
  * adds ability to sync files
3
5
  ## 1.3.0
@@ -55,7 +55,7 @@ module Retrospec
55
55
  end
56
56
 
57
57
  def self.manifest_files(module_path)
58
- Dir.glob(File.join(module_path, 'manifests', '*.pp'))
58
+ Dir.glob(File.join(module_path, 'manifests', '**', '*.pp'))
59
59
  end
60
60
 
61
61
  def self.generate_spec_files(module_path, config_data)
@@ -1,5 +1,5 @@
1
1
  module Retrospec
2
2
  module Puppet
3
- VERSION = '1.3.1'
3
+ VERSION = '1.3.2'
4
4
  end
5
5
  end
@@ -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-07"
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 = [
@@ -0,0 +1,3 @@
1
+ class one_resource::sub::settings{
2
+
3
+ }
@@ -0,0 +1,3 @@
1
+ define one_resource::sub::settings_define {
2
+
3
+ }
@@ -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.1
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-07 00:00:00.000000000 Z
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