Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ems factory uses valid authentications #18266

Merged
merged 2 commits into from
Jan 2, 2019

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Dec 4, 2018

The current :authentication factory is ambiguous.
Most of the places we want to use a valid authentication.
Any time we want an invalid authentication, we state otherwise.

Unfortunately, since the default authentication is not valid for many cases, we end up stubbing out the values in our specs.

After This PR

From here, we can remove stubbing of authentication in providers [example]

@miq-bot
Copy link
Member

miq-bot commented Dec 12, 2018

This pull request is not mergeable. Please rebase and repush.

The current `:authentication` factory is ambiguous.
Most of the places it is used just want a valid authentication.

Since the default authentication is not valid for many cases,
we just stub out authentication rather than use the proper form.
Any time we do not want a valid authentication, we state otherwise.

I originally created an `authentication_valid` factory.
But it became confusing when to use `authentication` and when to
use `authentication_valid`.
@miq-bot
Copy link
Member

miq-bot commented Dec 14, 2018

Checked commits kbrock/manageiq@277544d~...f008749 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
6 files checked, 0 offenses detected
Everything looks fine. 🏆

@bdunne bdunne merged commit 302e682 into ManageIQ:master Jan 2, 2019
@bdunne bdunne added this to the Sprint 102 Ending Jan 7, 2019 milestone Jan 2, 2019
@bdunne bdunne self-assigned this Jan 2, 2019
@kbrock kbrock deleted the ems_factories_valid branch January 2, 2019 15:43
@himdel
Copy link
Contributor

himdel commented Jan 3, 2019

Causes ui-classic travis failure (a PhysicalInfraManager fresh from the factory now has :status => "Valid" instead of :status => nil), fixing on the UI side (ManageIQ/manageiq-ui-classic#5120).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants