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

Add Container Template Spec #37

Merged
merged 1 commit into from
Sep 27, 2017
Merged

Conversation

zakiva
Copy link
Contributor

@zakiva zakiva commented Jul 18, 2017

Adding test for template instantiation with object labels and parameters.
Depends on ManageIQ/manageiq#15406, ManageIQ/manageiq#15587

@zakiva
Copy link
Contributor Author

zakiva commented Jul 18, 2017

@miq-bot add_label test

:port => "443"},
:authentication => {:role => :hawkular,
:auth_key => token,
:userid => "_"}}]
Copy link
Contributor

Choose a reason for hiding this comment

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

we spell out these provider connection_configurations all over the place.
can you check if they are actually the same, and make a factory that includes them?

Choose a reason for hiding this comment

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

We actually have a factory for this provider. I think it might be more convenient this way in case you need to rerecord the changes (and change the hostname, password etc.)

Copy link

@moolitayer moolitayer left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@moolitayer moolitayer closed this Jul 23, 2017
@moolitayer moolitayer reopened this Jul 23, 2017
template = FactoryGirl.create(:container_template,
:ems_id => ems.id,
:objects => [object],
:object_labels => object_labels).tap do |temp|

Choose a reason for hiding this comment

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

@zakiva travis is complaining about this line:
undefined method object_labels=' for #ContainerTemplate:0xXXX`

Copy link
Contributor Author

@zakiva zakiva Jul 23, 2017

Choose a reason for hiding this comment

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

yeah, this PR depends on ManageIQ/manageiq#15406, ManageIQ/manageiq#15587 (it's also mentioned in the PR description)

@moolitayer
Copy link

@moolitayer moolitayer closed this Aug 3, 2017
@moolitayer moolitayer reopened this Aug 3, 2017
@moolitayer
Copy link

ahh that won't fix anything here. well ¯_(ツ)_/¯

@Fryguy
Copy link
Member

Fryguy commented Sep 6, 2017

I believe all dependent PRs are merged.

@zakiva zakiva force-pushed the add_template_tests branch 2 times, most recently from 94122d3 to e47a4e4 Compare September 24, 2017 10:07
@zakiva zakiva force-pushed the add_template_tests branch 2 times, most recently from 123d598 to 330ead5 Compare September 27, 2017 09:44
@miq-bot
Copy link
Member

miq-bot commented Sep 27, 2017

Checked commit zakiva@330ead5 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

@zakiva
Copy link
Contributor Author

zakiva commented Sep 27, 2017

@moolitayer Added the factory here, PTAL

Copy link

@moolitayer moolitayer left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@moolitayer moolitayer merged commit 6b2202e into ManageIQ:master Sep 27, 2017
@moolitayer moolitayer added this to the Sprint 70 Ending Oct 2, 2017 milestone Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants