-
Notifications
You must be signed in to change notification settings - Fork 114
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 CRUDs for missing fields for API Hosts entity #4118
Conversation
1 similar comment
@@ -22,7 +22,11 @@ | |||
from fauxfactory import gen_integer, gen_ipaddr, gen_mac, gen_string | |||
from nailgun import client, entities | |||
from requests.exceptions import HTTPError | |||
from six.moves import http_client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you move it there? Put it back and remove redundant empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't six
a third-party module?
And according to http://robottelo.readthedocs.io/en/latest/code_standards.html#recommended
third-party
should be placed before application-specific
and separated with a blank line between groups of imports
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you and most of times I refactored my code to put them all together. I knew pep8 state about importing but never realized robottello doc itself mention the exactly same format. Maybe it's worth a email or issue discussion about it so everyone get aware of this. I would be happier once Pycharm follow pep 8 as well ;)
super(HostTestCase, cls).setUpClass() | ||
cls.org = entities.Organization().create() | ||
cls.loc = entities.Location(organization=[cls.org]).create() | ||
# Content View and repository reloated entities |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reloated
?
query={'search': u'content_view="{0}"'.format(cls.cv.name)} | ||
)[0].read() | ||
cls.lce = entities.LifecycleEnvironment().search(query={ | ||
'search': 'name=Library and organization_id={0}'.format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name=ENVIRONMENT
@@ -383,6 +437,95 @@ def test_positive_create_with_compute_profile(self): | |||
self.assertEqual(host.compute_profile.read().name, profile.name) | |||
|
|||
@run_only_on('sat') | |||
@tier2 | |||
def test_positive_create_with_content_view(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically, covered in https://github.com/SatelliteQE/robottelo/blob/master/tests/foreman/api/test_contentview.py#L94
But probably, that one is more basic
ACK pending nitpicks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
* Add CRUDs for missing fields for API Hosts entity (#4118) * Add CRUDs for missing fields for API Hosts entity * Changes according to review comments. * Changes specific for 6.2
Part of #3270, depends on SatelliteQE/nailgun#346 and SatelliteQE/nailgun#347.
test_positive_update_provision_method
was not added as "Provision method can't be updated after host is provisioned".