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

Test availability_zone_to_cn overriding in google prov #44

Merged
merged 1 commit into from
Mar 5, 2018

Conversation

d-m-u
Copy link
Contributor

@d-m-u d-m-u commented Jan 19, 2018

PR ManageIQ/manageiq#16811 adds RBAC filtering to allowed_cloud_network base class and google needed specs around the fact that the cloud network list is NOT dependent on availability zone choice unlike azure and amazon. (Per ManageIQ/manageiq#16824 (comment))

Related bz links:
https://bugzilla.redhat.com/show_bug.cgi?id=1533277
https://bugzilla.redhat.com/show_bug.cgi?id=1535189

@d-m-u
Copy link
Contributor Author

d-m-u commented Jan 19, 2018

@miq-bot add_label test
@miq-bot assign @bronaghs

stub_dialog
allow(User).to receive_messages(:server_timezone => "UTC")
wf = described_class.new({:src_vm_id => template.id}, admin.userid)
wf

Choose a reason for hiding this comment

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

@d-m-u - can this just read? :
described_class.new({:src_vm_id => template.id}, admin.userid)

@bronaghs bronaghs requested a review from gmcculloug February 26, 2018 18:54
stub_dialog
allow(User).to receive_messages(:server_timezone => "UTC")
wf = described_class.new({:src_vm_id => template.id}, admin.userid)
wf
Copy link
Member

Choose a reason for hiding this comment

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

No need to set the wf variable only to return it on the next line. Just return the result from described_class.new.

@d-m-u d-m-u force-pushed the add_cloud_network_test branch from b222fbe to 09758aa Compare March 1, 2018 13:02
@miq-bot
Copy link
Member

miq-bot commented Mar 1, 2018

Checked commit d-m-u@09758aa with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@bronaghs
Copy link

bronaghs commented Mar 5, 2018

@d-m-u - both comments ( #44 (comment) and #44 (review)) are making the same point, FYI.

@bronaghs bronaghs merged commit 7e547f5 into ManageIQ:master Mar 5, 2018
@bronaghs bronaghs added this to the Sprint 81 Ending Mar 12, 2018 milestone Mar 5, 2018
simaishi pushed a commit that referenced this pull request Mar 22, 2018
Test availability_zone_to_cn overriding in google prov
(cherry picked from commit 7e547f5)
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit ffc75b2bb29ad7243053e2be5df4d5ec66082d1f
Author: Bronagh Sorota <[email protected]>
Date:   Mon Mar 5 15:16:42 2018 -0500

    Merge pull request #44 from d-m-u/add_cloud_network_test
    
    Test availability_zone_to_cn overriding in google prov
    (cherry picked from commit 7e547f5a17f35ac2f01305997c436dad6e2de1b1)

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.

5 participants