Change license endpoint #351
Annotations
7 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"=>14119488000..."=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}}, :ensure=>:present, :name=>"license", :provider=>:ruby}]
actual collection contained: [{:content=>{"license"=>{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880000...uid"=>"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"=>14119488000..."=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}}, :ensure=>:present, :name=>"license", :provider=>:ruby}]
the extra elements were: [{:content=>{"license"=>{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880000...uid"=>"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"=>14119488000..."=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}}, :ensure=>:present, :name=>"license", :provider=>:ruby}]
actual collection contained: [{:content=>{"license"=>{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880000...uid"=>"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"=>14119488000..."=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}}, :ensure=>:present, :name=>"license", :provider=>:ruby}]
the extra elements were: [{:content=>{"license"=>{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880000...uid"=>"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"=>14119488000..."=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}}, :ensure=>:present, :name=>"license", :provider=>:ruby}]
actual collection contained: [{:content=>{"license"=>{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880000...uid"=>"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"=>14119488000..."=>"893361dc-9749-4997-93cb-802e3d7fa4xx"}}, :ensure=>:present, :name=>"license", :provider=>:ruby}]
the extra elements were: [{:content=>{"license"=>{"expiry_date_in_millis"=>1914278399999, "issue_date_in_millis"=>141194880000...uid"=>"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/classes/006_elasticsearch_license_spec.rb#L53
elasticsearch::license on scientific-7-x86_64 when managing x-pack license is expected to contain Es_instance_conn_validator[license-conn-validator] that comes before elasticsearch_license[xpack]
Failure/Error:
expect(subject).to contain_es_instance_conn_validator(
'license-conn-validator'
).that_comes_before('elasticsearch_license[xpack]')
expected that the catalogue would contain Es_instance_conn_validator[license-conn-validator] with that comes before elasticsearch_license[xpack]
|
spec/classes/006_elasticsearch_license_spec.rb#L59
elasticsearch::license on scientific-7-x86_64 when managing x-pack license is expected to contain Elasticsearch_license[xpack] with ensure => "present", content => {"license"=>{"uid"=>"cbff45e7-c553-41f7-ae4f-9205eabd80xx", "type"=>"trial", "issue_date_in_millis"=>1519341125550, "expiry_date_in_millis"=>1521933125550, "max_nodes"=>1000, "issued_to"=>"test", "issuer"=>"elasticsearch", "signature"=>"secretvalue", "start_date_in_millis"=>1513814400000}}, protocol => "https", host => "127.0.0.1", port => 9201, timeout => 11, username => "elastic", password => "password", ca_file => "/foo/bar.pem", ca_path => "/foo/" and validate_tls => false
Failure/Error:
expect(subject).to contain_elasticsearch_license('xpack').with(
ensure: 'present',
content: {
'license' => {
'uid' => 'cbff45e7-c553-41f7-ae4f-9205eabd80xx',
'type' => 'trial',
'issue_date_in_millis' => 1_519_341_125_550,
'expiry_date_in_millis' => 1_521_933_125_550,
'max_nodes' => 1000,
'issued_to' => 'test',
expected that the catalogue would contain Elasticsearch_license[xpack]
|
vendor/bundle/ruby/2.7.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: 57.14
|
|
This job failed
Loading