From c2755bdcafb36304412b3bc56e2a299d7c9b2e8a Mon Sep 17 00:00:00 2001 From: felipedf Date: Thu, 10 May 2018 10:01:31 -0300 Subject: [PATCH] camelize the power state column --- .../parser/parser_dictionary_constants.rb | 4 ++-- .../providers/lenovo/physical_infra_manager/refresher_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/parser_dictionary_constants.rb b/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/parser_dictionary_constants.rb index 79f50c5282..f8d9065931 100644 --- a/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/parser_dictionary_constants.rb +++ b/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/parser_dictionary_constants.rb @@ -3,8 +3,8 @@ module ManageIQ::Providers::Lenovo # 1.3 class PhysicalInfraManager::Parser::ParserDictionaryConstants POWER_STATE_MAP = { - 8 => "on", - 5 => "off", + 8 => "On", + 5 => "Off", 18 => "Standby", 0 => "Unknown", }.freeze diff --git a/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresher_spec.rb b/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresher_spec.rb index b9841949c6..846dc2ea45 100644 --- a/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresher_spec.rb +++ b/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresher_spec.rb @@ -95,7 +95,7 @@ def assert_specific_server expect(server.name).to eq("IMM2-e41f13ed5a1e") expect(server.health_state).to eq("Valid") - expect(server.power_state).to eq("on") + expect(server.power_state).to eq("On") expect(server.vendor).to eq("lenovo") expect(server.ems_id).to be_truthy expect(server.physical_rack_id).to be_truthy