Change license endpoint #347
Annotations
5 errors
spec/helpers/unit/provider/elasticsearch_rest_shared_examples.rb#L40
Puppet::Type::Elasticsearch_license::ProviderRuby licenses returns licenses
Failure/Error:
expect(described_class.instances.map do |provider|
provider.instance_variable_get(:@property_hash)
end).to match_array(instance)
expected collection contained: [{:content=>{"licenses"=>[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>1411948800...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]}, :ensure=>:present, :name=>"xpack", :provider=>:ruby}]
actual collection contained: [{:content=>{"licenses"=>[[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]]}, :ensure=>:present, :name=>"ruby", :provider=>:ruby}]
the missing elements were: [{:content=>{"licenses"=>[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>1411948800...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]}, :ensure=>:present, :name=>"xpack", :provider=>:ruby}]
the extra elements were: [{:content=>{"licenses"=>[[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]]}, :ensure=>:present, :name=>"ruby", :provider=>:ruby}]
Shared Example Group: "REST API" called from ./spec/unit/provider/elasticsearch_license/xpack_spec.rb:89
|
spec/helpers/unit/provider/elasticsearch_rest_shared_examples.rb#L55
Puppet::Type::Elasticsearch_license::ProviderRuby basic authentication authenticates
Failure/Error:
expect(described_class.api_objects(
'http', 'localhost', '9200', 10, 'elastic', 'password', validate_tls: true
).map do |provider|
described_class.new(
provider
).instance_variable_get(:@property_hash)
end).to contain_exactly(example1)
expected collection contained: [{:content=>{"licenses"=>[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>1411948800...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]}, :ensure=>:present, :name=>"xpack", :provider=>:ruby}]
actual collection contained: [{:content=>{"licenses"=>[[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]]}, :ensure=>:present, :name=>"ruby", :provider=>:ruby}]
the missing elements were: [{:content=>{"licenses"=>[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>1411948800...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]}, :ensure=>:present, :name=>"xpack", :provider=>:ruby}]
the extra elements were: [{:content=>{"licenses"=>[[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]]}, :ensure=>:present, :name=>"ruby", :provider=>:ruby}]
Shared Example Group: "REST API" called from ./spec/unit/provider/elasticsearch_license/xpack_spec.rb:89
|
spec/helpers/unit/provider/elasticsearch_rest_shared_examples.rb#L77
Puppet::Type::Elasticsearch_license::ProviderRuby https uses ssl
Failure/Error:
expect(described_class.api_objects(
'https', 'localhost', '9200', 10, validate_tls: true
).map do |provider|
described_class.new(
provider
).instance_variable_get(:@property_hash)
end).to contain_exactly(example1)
expected collection contained: [{:content=>{"licenses"=>[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>1411948800...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]}, :ensure=>:present, :name=>"xpack", :provider=>:ruby}]
actual collection contained: [{:content=>{"licenses"=>[[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]]}, :ensure=>:present, :name=>"ruby", :provider=>:ruby}]
the missing elements were: [{:content=>{"licenses"=>[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>1411948800...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]}, :ensure=>:present, :name=>"xpack", :provider=>:ruby}]
the extra elements were: [{:content=>{"licenses"=>[[{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880...d"=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}]]}, :ensure=>:present, :name=>"ruby", :provider=>:ruby}]
Shared Example Group: "REST API" called from ./spec/unit/provider/elasticsearch_license/xpack_spec.rb:89
|
vendor/bundle/ruby/3.2.0/gems/rspec-puppet-4.0.2/lib/rspec-puppet/coverage.rb#L218
Code coverage must cover at least 100% of resources
Failure/Error: at_exit { RSpec::Puppet::Coverage.report! 100 }
expected: >= 100.0
got: 60.71
|
|
This job failed
Loading