Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] New test: test_create_from_template #10221

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

valaparthvi
Copy link
Contributor

@valaparthvi valaparthvi commented Jun 27, 2020

Purpose or Intent

  • Fixing

    1. Make BaseProvider.setup() work for Config Managers.
  • Adding tests

    1. test_create_from_template

PRT Run

{{ pytest: cfme/tests/services/test_rest_services.py -k test_create_from_template --use-provider=complete -svvv }}

@valaparthvi valaparthvi changed the title [WIPTEST] New test: test_create_from_template [RFR] New test: test_create_from_template Jun 27, 2020
Copy link
Member

@ganeshhubale ganeshhubale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

@ganeshhubale ganeshhubale changed the title [RFR] New test: test_create_from_template [1LP][RFR] New test: test_create_from_template Jun 29, 2020
@@ -710,8 +710,11 @@ def validate_stats(self, ui=False):
return
else:
# Set off a Refresh Relationships
method = 'ui' if ui else None
self.refresh_provider_relationships(method=method)
if self.category == "config_manager" and ui:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why go the route of making checks and changing function calls based on the category, instead of updating ConfigManager base class to be consistent with the BaseProvider methods?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talked with Parthvi about this, due to the level of effort in updating BaseProvider/ConfigManager base class, I'm going to prioritize the test coverage over rejecting these customization within BaseProvider.

@valaparthvi valaparthvi changed the title [1LP][RFR] New test: test_create_from_template [1LP][WIPTEST] New test: test_create_from_template Jul 1, 2020
@valaparthvi valaparthvi changed the title [1LP][WIPTEST] New test: test_create_from_template [1LP][RFR] New test: test_create_from_template Jul 1, 2020
@mshriver mshriver merged commit 87abbf5 into ManageIQ:master Jul 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants