puppet 7.20.0-x64-mingw32 → 7.21.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +23 -23
  3. data/lib/puppet/application/lookup.rb +5 -5
  4. data/lib/puppet/defaults.rb +14 -0
  5. data/lib/puppet/indirector/facts/facter.rb +5 -1
  6. data/lib/puppet/info_service/task_information_service.rb +10 -2
  7. data/lib/puppet/transaction/report.rb +18 -1
  8. data/lib/puppet/type/resources.rb +1 -6
  9. data/lib/puppet/type/tidy.rb +3 -2
  10. data/lib/puppet/type/user.rb +1 -3
  11. data/lib/puppet/type.rb +10 -0
  12. data/lib/puppet/version.rb +1 -1
  13. data/man/man5/puppet.conf.5 +18 -2
  14. data/man/man8/puppet-agent.8 +1 -1
  15. data/man/man8/puppet-apply.8 +1 -1
  16. data/man/man8/puppet-catalog.8 +1 -1
  17. data/man/man8/puppet-config.8 +1 -1
  18. data/man/man8/puppet-describe.8 +1 -1
  19. data/man/man8/puppet-device.8 +1 -1
  20. data/man/man8/puppet-doc.8 +1 -1
  21. data/man/man8/puppet-epp.8 +1 -1
  22. data/man/man8/puppet-facts.8 +1 -1
  23. data/man/man8/puppet-filebucket.8 +1 -1
  24. data/man/man8/puppet-generate.8 +1 -1
  25. data/man/man8/puppet-help.8 +1 -1
  26. data/man/man8/puppet-lookup.8 +1 -1
  27. data/man/man8/puppet-module.8 +1 -1
  28. data/man/man8/puppet-node.8 +1 -1
  29. data/man/man8/puppet-parser.8 +1 -1
  30. data/man/man8/puppet-plugin.8 +1 -1
  31. data/man/man8/puppet-report.8 +1 -1
  32. data/man/man8/puppet-resource.8 +1 -1
  33. data/man/man8/puppet-script.8 +1 -1
  34. data/man/man8/puppet-ssl.8 +1 -1
  35. data/man/man8/puppet.8 +2 -2
  36. data/spec/integration/application/agent_spec.rb +99 -0
  37. data/spec/integration/application/lookup_spec.rb +55 -0
  38. data/spec/unit/agent_spec.rb +1 -1
  39. data/spec/unit/confiner_spec.rb +1 -1
  40. data/spec/unit/http/service/compiler_spec.rb +1 -1
  41. data/spec/unit/indirector/facts/facter_spec.rb +10 -0
  42. data/spec/unit/indirector/indirection_spec.rb +1 -1
  43. data/spec/unit/info_service_spec.rb +21 -0
  44. data/spec/unit/module_tool/tar/mini_spec.rb +1 -1
  45. data/spec/unit/network/formats_spec.rb +1 -1
  46. data/spec/unit/provider/ldap_spec.rb +2 -2
  47. data/spec/unit/provider/package/dpkg_spec.rb +3 -3
  48. data/spec/unit/provider/package/pkgutil_spec.rb +4 -4
  49. data/spec/unit/provider/parsedfile_spec.rb +4 -4
  50. data/spec/unit/reports/store_spec.rb +5 -1
  51. data/spec/unit/transaction/event_manager_spec.rb +2 -2
  52. data/spec/unit/transaction/report_spec.rb +38 -1
  53. data/spec/unit/transaction_spec.rb +2 -2
  54. data/spec/unit/type/file_spec.rb +4 -4
  55. data/spec/unit/type/filebucket_spec.rb +3 -3
  56. data/spec/unit/type/resources_spec.rb +14 -0
  57. data/spec/unit/type/tidy_spec.rb +27 -17
  58. data/spec/unit/util/execution_spec.rb +6 -6
  59. data/spec/unit/util/network_device_spec.rb +1 -6
  60. data/spec/unit/util/storage_spec.rb +1 -1
  61. data/spec/unit/x509/cert_provider_spec.rb +1 -1
  62. metadata +2 -2
@@ -153,11 +153,11 @@ describe Puppet::Util::Execution, if: !Puppet::Util::Platform.jruby? do
153
153
  end
154
154
 
155
155
  it "should create a new process for the command" do
156
- expect(Process).to receive(:create).with(
156
+ expect(Process).to receive(:create).with({
157
157
  :command_line => "test command",
158
158
  :startup_info => {:stdin => @stdin, :stdout => @stdout, :stderr => @stderr},
159
159
  :close_handles => false
160
- ).and_return(proc_info_stub)
160
+ }).and_return(proc_info_stub)
161
161
 
162
162
  call_exec_windows('test command', {}, @stdin, @stdout, @stderr)
163
163
  end
@@ -165,7 +165,7 @@ describe Puppet::Util::Execution, if: !Puppet::Util::Platform.jruby? do
165
165
  context 'cwd option' do
166
166
  let(:cwd) { 'cwd' }
167
167
  it "should execute the command in the specified working directory" do
168
- expect(Process).to receive(:create).with(
168
+ expect(Process).to receive(:create).with({
169
169
  :command_line => "test command",
170
170
  :startup_info => {
171
171
  :stdin => @stdin,
@@ -174,7 +174,7 @@ describe Puppet::Util::Execution, if: !Puppet::Util::Platform.jruby? do
174
174
  },
175
175
  :close_handles => false,
176
176
  :cwd => cwd
177
- )
177
+ })
178
178
 
179
179
  call_exec_windows('test command', { :cwd => cwd }, @stdin, @stdout, @stderr)
180
180
  end
@@ -192,7 +192,7 @@ describe Puppet::Util::Execution, if: !Puppet::Util::Platform.jruby? do
192
192
  context 'suppress_window option' do
193
193
  let(:cwd) { 'cwd' }
194
194
  it "should execute the command in the specified working directory" do
195
- expect(Process).to receive(:create).with(
195
+ expect(Process).to receive(:create).with({
196
196
  :command_line => "test command",
197
197
  :startup_info => {
198
198
  :stdin => @stdin,
@@ -201,7 +201,7 @@ describe Puppet::Util::Execution, if: !Puppet::Util::Platform.jruby? do
201
201
  },
202
202
  :close_handles => false,
203
203
  :creation_flags => Puppet::Util::Windows::Process::CREATE_NO_WINDOW
204
- )
204
+ })
205
205
 
206
206
  call_exec_windows('test command', { :suppress_window => true }, @stdin, @stdout, @stderr)
207
207
  end
@@ -20,14 +20,9 @@ describe Puppet::Util::NetworkDevice do
20
20
  end
21
21
 
22
22
  describe "when initializing the remote network device singleton" do
23
- it "should load the network device code" do
24
- expect(Puppet::Util::NetworkDevice).to receive(:require)
25
- Puppet::Util::NetworkDevice.init(@device)
26
- end
27
-
28
23
  it "should create a network device instance" do
29
24
  allow(Puppet::Util::NetworkDevice).to receive(:require)
30
- expect(Puppet::Util::NetworkDevice::Test::Device).to receive(:new).with("telnet://admin:password@127.0.0.1", :debug => false)
25
+ expect(Puppet::Util::NetworkDevice::Test::Device).to receive(:new).with("telnet://admin:password@127.0.0.1", {:debug => false})
31
26
  Puppet::Util::NetworkDevice.init(@device)
32
27
  end
33
28
 
@@ -170,7 +170,7 @@ describe Puppet::Util::Storage do
170
170
  it 'should load Time and Symbols' do
171
171
  state = {
172
172
  'File[/etc/puppetlabs/puppet]' =>
173
- { :checked => Time.new('2018-08-08 15:28:25.546999000 -07:00') }
173
+ { :checked => Time.new(2018, 8, 8, 15, 28, 25, "-07:00") }
174
174
  }
175
175
  write_state_file(YAML.dump(state))
176
176
 
@@ -135,7 +135,7 @@ describe Puppet::X509::CertProvider do
135
135
 
136
136
  expect {
137
137
  create_provider(crlpath: crl_path).load_crls
138
- }.to raise_error(OpenSSL::X509::CRLError, 'nested asn1 error')
138
+ }.to raise_error(OpenSSL::X509::CRLError, /(PEM_read_bio_X509_CRL: bad base64 decode|nested asn1 error)/)
139
139
  end
140
140
 
141
141
  it 'raises if the input is empty' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.20.0
4
+ version: 7.21.0
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-06 00:00:00.000000000 Z
11
+ date: 2022-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: facter