Skip to content

Commit

Permalink
Merge pull request #557 from agrare/ivanchuk_fix_aws_flavor_counts
Browse files Browse the repository at this point in the history
[IVANCHUK] Fix AWS flavor counts in specs
  • Loading branch information
simaishi authored Sep 5, 2019
2 parents 799ec02 + c0de3df commit 29786fa
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def table_counts_from_api
:custom_attribute => custom_attributes_count,
:disk => disks_count,
:firewall_rule => firewall_rules_count,
:flavor => 213,
:flavor => options.inventory_object_refresh ? 218 : 214,
:floating_ip => floating_ips_count,
:hardware => instances_and_images_count,
:miq_template => images_count,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def expected_table_counts(disconnect = nil)
:auth_private_key => test_counts[:key_pair_count],
:ext_management_system => expected_ext_management_systems_count,
# TODO(lsmola) collect all flavors for original refresh
:flavor => @inventory_object_settings[:inventory_object_refresh] ? 218 : 213,
:flavor => @inventory_object_settings[:inventory_object_refresh] ? 218 : 214,
:availability_zone => 5,
:vm_or_template => vm_count_plus_disconnect_inv + image_count_plus_disconnect_inv,
:vm => vm_count_plus_disconnect_inv,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@

def table_counts_from_api
counts = super
counts[:flavor] = counts[:flavor] + 5 # Graph refresh collect all flavors, not filtering them by known_flavors
counts[:service_instances] = 3
counts[:service_offerings] = 3
counts[:service_parameters_sets] = 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ def assert_all(stored_table_counts)

def table_counts_from_api
counts = super
counts[:flavor] = counts[:flavor] + 5 # Graph refresh collect all flavors, not filtering them by known_flavors
counts[:service_instances] = 3
counts[:service_offerings] = 3
counts[:service_parameters_sets] = 5
Expand Down

0 comments on commit 29786fa

Please sign in to comment.