diff --git a/app/helpers/textual_mixins/textual_authentications_status.rb b/app/helpers/textual_mixins/textual_authentications_status.rb index 6d212ea93e83..679e11f4fc69 100644 --- a/app/helpers/textual_mixins/textual_authentications_status.rb +++ b/app/helpers/textual_mixins/textual_authentications_status.rb @@ -39,8 +39,8 @@ def map_authentications(authentications) end def textual_authentications_status - authentications = @ems.authentications.order(:authtype).collect - return [{ :label => _("%{label} Authentication") % { :label => @ems.default_authentication_type.to_s.titleize }, + authentications = @record.authentications.order(:authtype).collect + return [{ :label => _("%{label} Authentication") % { :label => @record.default_authentication_type.to_s.titleize }, :title => t = _("None"), :value => t }] if authentications.blank? diff --git a/app/helpers/textual_mixins/textual_metrics_status.rb b/app/helpers/textual_mixins/textual_metrics_status.rb index 30af940d93cb..d5e4fd988408 100644 --- a/app/helpers/textual_mixins/textual_metrics_status.rb +++ b/app/helpers/textual_mixins/textual_metrics_status.rb @@ -4,11 +4,11 @@ def textual_metrics_status :label => _("Last Metrics Collection"), :title => _("None"), :value => _("None") - } unless @ems.last_metrics_update_date + } unless @record.last_metrics_update_date - status = (@ems.last_metrics_error || :valid).to_s.titleize - updated_on = @ems.last_metrics_update_date - last_valid_on = @ems.last_metrics_success_date + status = (@record.last_metrics_error || :valid).to_s.titleize + updated_on = @record.last_metrics_update_date + last_valid_on = @record.last_metrics_success_date { :label => _("Last Metrics Collection"), diff --git a/spec/controllers/ems_container_controller_spec.rb b/spec/controllers/ems_container_controller_spec.rb index 72714ac0313f..87bc4332a8bc 100644 --- a/spec/controllers/ems_container_controller_spec.rb +++ b/spec/controllers/ems_container_controller_spec.rb @@ -244,5 +244,14 @@ end end + describe '#download_summary_pdf' do + let(:provider) { FactoryGirl.create(:ems_container) } + + it 'returns with a PDF' do + get :download_summary_pdf, :id => provider.id + expect(response.status).to eq(200) + end + end + include_examples '#download_summary_pdf', :ems_kubernetes end