From 11aedca6ddcc1ec6a22d4e042339309710f4bd9b Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 18 Jun 2024 06:18:07 -0400 Subject: [PATCH] Change Google to gcp to match RH Cloud expectations (#889) --- lib/foreman_inventory_upload/generators/fact_helpers.rb | 2 +- test/unit/slice_generator_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/foreman_inventory_upload/generators/fact_helpers.rb b/lib/foreman_inventory_upload/generators/fact_helpers.rb index 2a46083b..717ce8f3 100644 --- a/lib/foreman_inventory_upload/generators/fact_helpers.rb +++ b/lib/foreman_inventory_upload/generators/fact_helpers.rb @@ -6,7 +6,7 @@ module FactHelpers extend ActiveSupport::Concern CLOUD_AMAZON = 'aws' - CLOUD_GOOGLE = 'google' + CLOUD_GOOGLE = 'gcp' CLOUD_AZURE = 'azure' CLOUD_ALIBABA = 'alibaba' diff --git a/test/unit/slice_generator_test.rb b/test/unit/slice_generator_test.rb index 64d40ff7..661ee337 100644 --- a/test/unit/slice_generator_test.rb +++ b/test/unit/slice_generator_test.rb @@ -594,7 +594,7 @@ def fact_names assert_equal '00000000-0000-0000-0000-000000000000', actual['report_slice_id'] assert_not_nil(actual_host = actual['hosts'].first) assert_not_nil(actual_profile = actual_host['system_profile']) - assert_equal 'google', actual_profile['cloud_provider'] + assert_equal 'gcp', actual_profile['cloud_provider'] end test 'Identifies Azure cloud provider' do