puppet 4.9.1-x64-mingw32 → 4.9.2-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puppet might be problematic. Click here for more details.

Files changed (37) hide show
  1. data/Gemfile +1 -0
  2. data/lib/puppet/forge/repository.rb +1 -1
  3. data/lib/puppet/functions/assert_type.rb +3 -5
  4. data/lib/puppet/functions/yaml_data.rb +6 -1
  5. data/lib/puppet/pops/adapters.rb +10 -11
  6. data/lib/puppet/pops/evaluator/evaluator_impl.rb +2 -2
  7. data/lib/puppet/pops/evaluator/relationship_operator.rb +1 -1
  8. data/lib/puppet/pops/evaluator/runtime3_support.rb +1 -1
  9. data/lib/puppet/pops/loader/loader_paths.rb +4 -1
  10. data/lib/puppet/pops/loaders.rb +2 -0
  11. data/lib/puppet/pops/lookup/environment_data_provider.rb +10 -2
  12. data/lib/puppet/pops/lookup/hiera_config.rb +40 -8
  13. data/lib/puppet/pops/lookup/interpolation.rb +4 -2
  14. data/lib/puppet/pops/lookup/invocation.rb +2 -2
  15. data/lib/puppet/pops/lookup/lookup_adapter.rb +8 -2
  16. data/lib/puppet/pops/lookup/lookup_key_function_provider.rb +7 -3
  17. data/lib/puppet/pops/merge_strategy.rb +1 -1
  18. data/lib/puppet/pops/types/type_parser.rb +5 -11
  19. data/lib/puppet/ssl/certificate.rb +1 -1
  20. data/lib/puppet/ssl/certificate_request.rb +1 -1
  21. data/lib/puppet/version.rb +1 -1
  22. data/spec/lib/puppet_spec/language.rb +3 -1
  23. data/spec/unit/face/module/search_spec.rb +1 -1
  24. data/spec/unit/forge/repository_spec.rb +27 -0
  25. data/spec/unit/functions/lookup_spec.rb +396 -43
  26. data/spec/unit/network/http/factory_spec.rb +4 -0
  27. data/spec/unit/pops/evaluator/evaluating_parser_spec.rb +5 -0
  28. data/spec/unit/pops/evaluator/evaluator_rspec_helper.rb +28 -24
  29. data/spec/unit/pops/loaders/loaders_spec.rb +117 -22
  30. data/spec/unit/pops/types/ruby_generator_spec.rb +13 -13
  31. data/spec/unit/pops/types/type_calculator_spec.rb +13 -25
  32. data/spec/unit/pops/types/type_parser_spec.rb +1 -4
  33. data/spec/unit/resource/type_spec.rb +8 -2
  34. data/spec/unit/ssl/certificate_factory_spec.rb +2 -2
  35. data/spec/unit/ssl/certificate_request_spec.rb +2 -3
  36. data/spec/unit/util/http_proxy_spec.rb +4 -0
  37. metadata +2 -2
@@ -32,12 +32,12 @@ describe Puppet::SSL::CertificateFactory do
32
32
 
33
33
  it "should set the certificate's subject to the CSR's subject" do
34
34
  cert = subject.build(:server, csr, issuer, serial)
35
- expect(cert.subject).to eql x509_name
35
+ expect(cert.subject).to eq x509_name
36
36
  end
37
37
 
38
38
  it "should set the certificate's issuer to the Issuer's subject" do
39
39
  cert = subject.build(:server, csr, issuer, serial)
40
- expect(cert.issuer).to eql issuer.subject
40
+ expect(cert.issuer).to eq issuer.subject
41
41
  end
42
42
 
43
43
  it "should set the certificate's public key to the CSR's public key" do
@@ -92,14 +92,13 @@ describe Puppet::SSL::CertificateRequest do
92
92
 
93
93
  it "should set the subject to [CN, name]" do
94
94
  request.generate(key)
95
- # OpenSSL::X509::Name only implements equality as `eql?`
96
- expect(request.content.subject).to eql OpenSSL::X509::Name.new([['CN', key.name]])
95
+ expect(request.content.subject).to eq OpenSSL::X509::Name.new([['CN', key.name]])
97
96
  end
98
97
 
99
98
  it "should set the CN to the :ca_name setting when the CSR is for a CA" do
100
99
  Puppet[:ca_name] = "mycertname"
101
100
  request = described_class.new(Puppet::SSL::CA_NAME).generate(key)
102
- expect(request.subject).to eql OpenSSL::X509::Name.new([['CN', Puppet[:ca_name]]])
101
+ expect(request.subject).to eq OpenSSL::X509::Name.new([['CN', Puppet[:ca_name]]])
103
102
  end
104
103
 
105
104
  it "should set the version to 0" do
@@ -3,6 +3,10 @@ require 'spec_helper'
3
3
  require 'puppet/util/http_proxy'
4
4
 
5
5
  describe Puppet::Util::HttpProxy do
6
+ before(:all) do
7
+ ENV['http_proxy'] = nil
8
+ ENV['HTTP_PROXY'] = nil
9
+ end
6
10
 
7
11
  host, port, user, password = 'some.host', 1234, 'user1', 'pAssw0rd'
8
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.9.1
4
+ version: 4.9.2
5
5
  prerelease:
6
6
  platform: x64-mingw32
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-03 00:00:00.000000000 Z
12
+ date: 2017-02-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: facter