rspec-puppet 4.0.0 → 4.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/CHANGELOG.md +17 -0
- data/README.md +6 -16
- data/lib/rspec-puppet/example/function_example_group.rb +1 -1
- data/lib/rspec-puppet/matchers/create_generic.rb +1 -1
- data/lib/rspec-puppet/matchers/dynamic_matchers.rb +2 -2
- data/lib/rspec-puppet/matchers/type_matchers.rb +1 -1
- data/lib/rspec-puppet/version.rb +1 -1
- metadata +6 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 426a4ee05db6fe1e2ca9fea2e6bb5867ee07e9a07026c1b88d7f58d5466883e5
|
|
4
|
+
data.tar.gz: dc491e62b7b7228ae76e292ea5b387b279a8791551f81e689a1fc1c96af3cbb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e0ea7226522dc683e27d1beac2337b4d3ec6ad448d5d95608c5879a5175f6e62ada4ee6ee81c8ab1345cd4265cdaa3cd509a80173218a1998d146546caba7e0
|
|
7
|
+
data.tar.gz: cdfdbf4bfb0551b3f4b8465a1278c93cef7707fd2284a5629dc6fe71f7846bbcec5c12396efb755da2a092521cf71a10b9f51794af7a4d650053913905c3897d
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
|
|
6
6
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
|
|
7
7
|
|
|
8
|
+
## [v4.0.2](https://github.com/puppetlabs/rspec-puppet/tree/v4.0.2) - 2023-12-05
|
|
9
|
+
|
|
10
|
+
[Full Changelog](https://github.com/puppetlabs/rspec-puppet/compare/v4.0.1...v4.0.2)
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Revert "(maint) - fix rubocop" - Leading argument with delegation syntax not supported with ruby 2.7.0 [#94](https://github.com/puppetlabs/rspec-puppet/pull/94) ([jordanbreen28](https://github.com/jordanbreen28))
|
|
15
|
+
- Revert "(CAT-1235) - Rename to puppetlabs-rspec-puppet" [#92](https://github.com/puppetlabs/rspec-puppet/pull/92) ([jordanbreen28](https://github.com/jordanbreen28))
|
|
16
|
+
|
|
17
|
+
## [v4.0.1](https://github.com/puppetlabs/rspec-puppet/tree/v4.0.1) - 2023-11-22
|
|
18
|
+
|
|
19
|
+
[Full Changelog](https://github.com/puppetlabs/rspec-puppet/compare/v4.0.0...v4.0.1)
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- (maint) - Add original owners [#90](https://github.com/puppetlabs/rspec-puppet/pull/90) ([jordanbreen28](https://github.com/jordanbreen28))
|
|
24
|
+
|
|
8
25
|
## [v4.0.0](https://github.com/puppetlabs/rspec-puppet/tree/v4.0.0) - 2023-10-09
|
|
9
26
|
|
|
10
27
|
[Full Changelog](https://github.com/puppetlabs/rspec-puppet/compare/v3.0.0...v4.0.0)
|
data/README.md
CHANGED
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
* [Hiera integration](#hiera-integration)
|
|
17
17
|
* [Producing coverage reports](#producing-coverage-reports)
|
|
18
18
|
* [Related projects](#related-projects)
|
|
19
|
+
* [Development](#development)
|
|
20
|
+
* [License](#license)
|
|
19
21
|
|
|
20
22
|
## Installation
|
|
21
23
|
|
|
@@ -93,22 +95,6 @@ Hash | `{}` | any
|
|
|
93
95
|
A hash of default trusted facts that should be used for all the tests
|
|
94
96
|
(available in the manifests as the `$trusted` hash).
|
|
95
97
|
|
|
96
|
-
#### trusted\_node\_data
|
|
97
|
-
Type | Default | Puppet Version(s)
|
|
98
|
-
------- | ------- | -----------------
|
|
99
|
-
Boolean | `false` | any
|
|
100
|
-
|
|
101
|
-
Configures rspec-puppet to use the `$trusted` hash when compiling the
|
|
102
|
-
catalogues.
|
|
103
|
-
|
|
104
|
-
#### trusted\_server\_facts
|
|
105
|
-
Type | Default | Puppet Version(s)
|
|
106
|
-
------- | ------- | -----------------
|
|
107
|
-
Boolean | `false` | any
|
|
108
|
-
|
|
109
|
-
Configures rspec-puppet to use the `$server_facts` hash when compiling the
|
|
110
|
-
catalogues.
|
|
111
|
-
|
|
112
98
|
#### confdir
|
|
113
99
|
Type | Default | Puppet Version(s)
|
|
114
100
|
------ | --------------- | ------------------
|
|
@@ -1016,6 +1002,10 @@ If you run into an issue with this tool or would like to request a feature you c
|
|
|
1016
1002
|
|
|
1017
1003
|
If you have problems getting this tool up and running, please contact Support.
|
|
1018
1004
|
|
|
1005
|
+
## License
|
|
1006
|
+
|
|
1007
|
+
This codebase is licensed under Apache 2.0. However, the open source dependencies included in this codebase might be subject to other software licenses such as AGPL, GPL2.0, and MIT.
|
|
1008
|
+
|
|
1019
1009
|
## Thank you
|
|
1020
1010
|
|
|
1021
1011
|
Many thanks to the original author of rspec-puppet Tim Sharpe (@rodjek).
|
|
@@ -100,7 +100,7 @@ module RSpec::Puppet
|
|
|
100
100
|
return func if func.func
|
|
101
101
|
|
|
102
102
|
if Puppet::Parser::Functions.function(function_name)
|
|
103
|
-
V3FunctionWrapper.new(function_name, scope.method("function_#{function_name}"
|
|
103
|
+
V3FunctionWrapper.new(function_name, scope.method(:"function_#{function_name}"))
|
|
104
104
|
end
|
|
105
105
|
end
|
|
106
106
|
end
|
|
@@ -303,7 +303,7 @@ module RSpec::Puppet
|
|
|
303
303
|
|
|
304
304
|
# Add auto* (autorequire etc) if any
|
|
305
305
|
if %i[before notify require subscribe].include?(type)
|
|
306
|
-
func = "eachauto#{type}"
|
|
306
|
+
func = :"eachauto#{type}"
|
|
307
307
|
if resource.resource_type.respond_to?(func)
|
|
308
308
|
resource.resource_type.send(func) do |t, b|
|
|
309
309
|
Array(resource.to_ral.instance_eval(&b)).each do |dep|
|
|
@@ -26,8 +26,8 @@ module RSpec::Puppet
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
module TypeMatchers
|
|
29
|
-
def method_missing(method,
|
|
30
|
-
return RSpec::Puppet::TypeMatchers::CreateGeneric.new(method,
|
|
29
|
+
def method_missing(method, *args, &block)
|
|
30
|
+
return RSpec::Puppet::TypeMatchers::CreateGeneric.new(method, *args, &block) if method == :be_valid_type
|
|
31
31
|
|
|
32
32
|
super
|
|
33
33
|
end
|
|
@@ -123,7 +123,7 @@ module RSpec::Puppet
|
|
|
123
123
|
param = param.to_sym
|
|
124
124
|
if attr_type == :feature
|
|
125
125
|
baddies.push(param) unless type.provider_feature(param)
|
|
126
|
-
elsif !type.send("valid#{attr_type}?"
|
|
126
|
+
elsif !type.send(:"valid#{attr_type}?", param)
|
|
127
127
|
baddies.push(param)
|
|
128
128
|
end
|
|
129
129
|
end
|
data/lib/rspec-puppet/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-puppet
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tim Sharpe
|
|
8
8
|
- Puppet, Inc.
|
|
9
9
|
- Community Contributors
|
|
10
|
-
autorequire:
|
|
10
|
+
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2023-
|
|
13
|
+
date: 2023-12-05 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rspec
|
|
@@ -26,10 +26,7 @@ dependencies:
|
|
|
26
26
|
- - "~>"
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
28
|
version: '3.0'
|
|
29
|
-
description:
|
|
30
|
-
RSpec tests for your Puppet manifests.
|
|
31
|
-
Note: Support for this gem has been moved under a new namespace and as such any future updates from
|
|
32
|
-
the Puppet team will be released as `puppetlabs-rspec-puppet`.
|
|
29
|
+
description: " RSpec tests for your Puppet manifests.\n"
|
|
33
30
|
email:
|
|
34
31
|
- tim@sharpe.id.au
|
|
35
32
|
- modules-team@puppet.com
|
|
@@ -85,7 +82,7 @@ licenses:
|
|
|
85
82
|
- MIT
|
|
86
83
|
metadata:
|
|
87
84
|
rubygems_mfa_required: 'true'
|
|
88
|
-
post_install_message:
|
|
85
|
+
post_install_message:
|
|
89
86
|
rdoc_options: []
|
|
90
87
|
require_paths:
|
|
91
88
|
- lib
|
|
@@ -101,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
101
98
|
version: '0'
|
|
102
99
|
requirements: []
|
|
103
100
|
rubygems_version: 3.1.6
|
|
104
|
-
signing_key:
|
|
101
|
+
signing_key:
|
|
105
102
|
specification_version: 4
|
|
106
103
|
summary: RSpec tests for your Puppet manifests
|
|
107
104
|
test_files: []
|