Skip to content

Commit

Permalink
remove slice's display_name (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronlavi2412 committed Apr 21, 2020
1 parent 3744af2 commit 5ddac5d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/foreman_inventory_upload/generators/slice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def report_slice(hosts_batch)

def report_host(host)
@stream.object do
@stream.simple_field('display_name', host.name)
@stream.simple_field('fqdn', host.fqdn)
@stream.simple_field('account', account_id(host.organization).to_s)
@stream.simple_field('subscription_manager_id', host.subscription_facet&.uuid)
Expand Down
5 changes: 0 additions & 5 deletions test/unit/slice_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def fact_names

assert_equal 'slice_123', actual['report_slice_id']
assert_not_nil(actual_host = actual['hosts'].first)
assert_equal @host.name, actual_host['display_name']
assert_equal @host.fqdn, actual_host['fqdn']
assert_equal '1234', actual_host['account']
assert_equal 1, generator.hosts_count
Expand Down Expand Up @@ -115,7 +114,6 @@ def fact_names

assert_equal 'slice_123', actual['report_slice_id']
assert_not_nil(actual_host = actual['hosts'].first)
assert_equal @host.name, actual_host['display_name']
assert_equal @host.fqdn, actual_host['fqdn']
assert_not_nil(host_facts = actual_host['facts']&.first)
assert_equal 'satellite', host_facts['namespace']
Expand All @@ -137,7 +135,6 @@ def fact_names

assert_equal 'slice_123', actual['report_slice_id']
assert_not_nil(actual_host = actual['hosts'].first)
assert_equal @host.name, actual_host['display_name']
assert_equal @host.fqdn, actual_host['fqdn']
assert_not_nil(host_facts = actual_host['facts']&.first)
assert_equal 'satellite', host_facts['namespace']
Expand All @@ -157,7 +154,6 @@ def fact_names

assert_equal 'slice_123', actual['report_slice_id']
assert_not_nil(actual_host = actual['hosts'].first)
assert_equal @host.name, actual_host['display_name']
assert_equal @host.fqdn, actual_host['fqdn']
assert_equal '1234', actual_host['account']
assert_equal 1, generator.hosts_count
Expand All @@ -178,7 +174,6 @@ def fact_names

assert_equal 'slice_123', actual['report_slice_id']
assert_not_nil(actual_host = actual['hosts'].first)
assert_equal @host.name, actual_host['display_name']
assert_equal @host.fqdn, actual_host['fqdn']
assert_equal '1234', actual_host['account']
assert_equal 1, generator.hosts_count
Expand Down

0 comments on commit 5ddac5d

Please sign in to comment.