puppet-lint-roles_and_profiles-check 0.1.0 → 0.1.1

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: 21d70ef748ba82a8680ed21f0afb1dbed66ab250
4
- data.tar.gz: 53ca9b19a35fb6329b75a44fbe31280184bd78e9
3
+ metadata.gz: faf29b8c5e8c32b07d3b0dfcee3df3419dc026c6
4
+ data.tar.gz: c44d8e3fbb9618c460c6cf0226e69ad35fbb0c6c
5
5
  SHA512:
6
- metadata.gz: 2677efc5e828266cb8230f5aee9fcd15e141aa8f6a19fac3d827ded2c3d98d07e7808bac0fbee6973806796d44e9eedc96a04f39439934fdd324fd1660c405e0
7
- data.tar.gz: 26ca3d361e718a279d1d996095a54c296154943ea46e12d6f93ef0c18264b960e74b3586a8430cf8b23dca3910048e2ae7d421d24e1351ef7bcc6eb3b877bf01
6
+ metadata.gz: 8020a1b46548d74a681d5effdb5a823ca2665dc00c9771b263db1a9543e69d8cad80176c80aee2c257f73db92b36b45f5762bb5e68f1c541488adc08efc07ff2
7
+ data.tar.gz: 49a6e9d6cacb2249db102e817b156d5b28d7cc829cc2ae453a2ced45711df772a1767aa5721930efff8af2b4dff84c09203656fbf3b4096347b5bd71c85975ed
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-lint-roles_and_profiles-check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickaël Canévet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-26 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet-lint
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '1.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rspec
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -92,7 +98,6 @@ extra_rdoc_files: []
92
98
  files:
93
99
  - README.md
94
100
  - lib/puppet-lint/plugins/check_roles_and_profiles.rb
95
- - spec/puppet-lint/plugins/check_node_definition_spec.rb
96
101
  - spec/puppet-lint/plugins/check_roles_class_params_spec.rb
97
102
  - spec/puppet-lint/plugins/check_roles_resource_declaration_spec.rb
98
103
  - spec/spec_helper.rb
@@ -116,12 +121,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
121
  version: '0'
117
122
  requirements: []
118
123
  rubyforge_project:
119
- rubygems_version: 2.2.2
124
+ rubygems_version: 2.5.1
120
125
  signing_key:
121
126
  specification_version: 4
122
127
  summary: A puppet-lint plugin to check some Roles&Profiles bests practices.
123
128
  test_files:
124
129
  - spec/puppet-lint/plugins/check_roles_class_params_spec.rb
125
- - spec/puppet-lint/plugins/check_node_definition_spec.rb
126
130
  - spec/puppet-lint/plugins/check_roles_resource_declaration_spec.rb
127
131
  - spec/spec_helper.rb
@@ -1,115 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'node_definition' do
4
- let(:msg) { 'expected only one role declaration' }
5
-
6
- context 'with no node definition file' do
7
- let(:code) do
8
- <<-EOS
9
- class foo {
10
- }
11
- EOS
12
- end
13
-
14
- it 'should not detect any problems' do
15
- expect(problems).to have(0).problems
16
- end
17
- end
18
-
19
- context 'with an empty node definition file' do
20
- let(:code) do
21
- <<-EOS
22
- node 'foo' {
23
- }
24
- class foo {
25
- }
26
- EOS
27
- end
28
-
29
- it 'should not detect any problems' do
30
- expect(problems).to have(0).problems
31
- end
32
- end
33
-
34
- context 'with a node definition file that declares only a role' do
35
- let(:code) do
36
- <<-EOS
37
- node 'foo' {
38
- class { 'roles::bar': }
39
- }
40
- class roles::bar {
41
- }
42
- EOS
43
- end
44
-
45
- it 'should not detect any problems' do
46
- expect(problems).to have(0).problems
47
- end
48
- end
49
-
50
- context 'with a node definition file that declares a class that is not a role' do
51
- let(:code) do
52
- <<-EOS
53
- node 'foo' {
54
- class { 'profiles::bar': }
55
- }
56
- class profiles::bar {
57
- }
58
- EOS
59
- end
60
-
61
- it 'should detect a single problem' do
62
- expect(problems).to have(1).problem
63
- end
64
-
65
- it 'should create a warning' do
66
- expect(problems).to contain_warning(msg).on_line(2).in_column(3)
67
- end
68
- end
69
-
70
- context 'with a node definition file that declares two roles' do
71
- let(:code) do
72
- <<-EOS
73
- node 'foo' {
74
- class { 'roles::bar': }
75
- class { 'roles::baz': }
76
- }
77
- class roles::bar {
78
- }
79
- class roles::baz {
80
- }
81
- EOS
82
- end
83
-
84
- it 'should detect a single problem' do
85
- expect(problems).to have(1).problem
86
- end
87
-
88
- it 'should create a warning' do
89
- expect(problems).to contain_warning(msg).on_line(3).in_column(3)
90
- end
91
- end
92
-
93
- context 'with a node definition file that declares a resource' do
94
- let(:code) do
95
- <<-EOS
96
- node 'foo' {
97
- class { 'roles::bar': }
98
- foo { 'bar': }
99
- }
100
- class roles::bar {
101
- }
102
- foo {
103
- }
104
- EOS
105
- end
106
-
107
- it 'should detect a single problem' do
108
- expect(problems).to have(1).problem
109
- end
110
-
111
- it 'should create a warning' do
112
- expect(problems).to contain_warning(msg).on_line(3).in_column(3)
113
- end
114
- end
115
- end