Modify API license #333
Annotations
5 errors
spec/helpers/unit/provider/elasticsearch_rest_shared_examples.rb#L40
Puppet::Type::Elasticsearch_license::ProviderRuby licenses returns licenses
Failure/Error: json1.merge(json2)
NameError:
undefined local variable or method `json2' for #<RSpec::ExampleGroups::PuppetTypeElasticsearchLicenseProviderRuby::Licenses:0x00005561070bb860>
Did you mean? json
json1
JSON
Shared Example Group: "REST API" called from ./spec/unit/provider/elasticsearch_license/ruby_spec.rb:62
|
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=>{"license"=>{"expiry_date"=>"2018-03-24T23:12:05.550Z", "expiry_date_in_millis"=>15219331..."=>"cbff45e7-c553-41f7-ae4f-9205eabd80xx"}}, :ensure=>:present, :name=>"license", :provider=>:ruby}]
actual collection contained: [{:content=>{"license"=>{"expiry_date"=>"2018-03-24T23:12:05.550Z", "expiry_date_in_millis"=>15219331...uid"=>"cbff45e7-c553-41f7-ae4f-9205eabd80xx"}}, :ensure=>:present, :name=>"ruby", :provider=>:ruby}]
the missing elements were: [{:content=>{"license"=>{"expiry_date"=>"2018-03-24T23:12:05.550Z", "expiry_date_in_millis"=>15219331..."=>"cbff45e7-c553-41f7-ae4f-9205eabd80xx"}}, :ensure=>:present, :name=>"license", :provider=>:ruby}]
the extra elements were: [{:content=>{"license"=>{"expiry_date"=>"2018-03-24T23:12:05.550Z", "expiry_date_in_millis"=>15219331...uid"=>"cbff45e7-c553-41f7-ae4f-9205eabd80xx"}}, :ensure=>:present, :name=>"ruby", :provider=>:ruby}]
Shared Example Group: "REST API" called from ./spec/unit/provider/elasticsearch_license/ruby_spec.rb:62
|
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=>{"license"=>{"expiry_date"=>"2018-03-24T23:12:05.550Z", "expiry_date_in_millis"=>15219331..."=>"cbff45e7-c553-41f7-ae4f-9205eabd80xx"}}, :ensure=>:present, :name=>"license", :provider=>:ruby}]
actual collection contained: [{:content=>{"license"=>{"expiry_date"=>"2018-03-24T23:12:05.550Z", "expiry_date_in_millis"=>15219331...uid"=>"cbff45e7-c553-41f7-ae4f-9205eabd80xx"}}, :ensure=>:present, :name=>"ruby", :provider=>:ruby}]
the missing elements were: [{:content=>{"license"=>{"expiry_date"=>"2018-03-24T23:12:05.550Z", "expiry_date_in_millis"=>15219331..."=>"cbff45e7-c553-41f7-ae4f-9205eabd80xx"}}, :ensure=>:present, :name=>"license", :provider=>:ruby}]
the extra elements were: [{:content=>{"license"=>{"expiry_date"=>"2018-03-24T23:12:05.550Z", "expiry_date_in_millis"=>15219331...uid"=>"cbff45e7-c553-41f7-ae4f-9205eabd80xx"}}, :ensure=>:present, :name=>"ruby", :provider=>:ruby}]
Shared Example Group: "REST API" called from ./spec/unit/provider/elasticsearch_license/ruby_spec.rb:62
|
spec/helpers/unit/provider/elasticsearch_rest_shared_examples.rb#L97
Puppet::Type::Elasticsearch_license::ProviderRuby flush creates licenses
Failure/Error: body: bare_resource
NameError:
undefined local variable or method `bare_resource' for #<RSpec::ExampleGroups::PuppetTypeElasticsearchLicenseProviderRuby::Flush:0x0000556108991b00>
Shared Example Group: "REST API" called from ./spec/unit/provider/elasticsearch_license/ruby_spec.rb:62
|
|
This job failed
Loading