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 entities.PartitionTable.update() #132

Merged
merged 1 commit into from
Jul 1, 2015

Conversation

abalakh
Copy link
Contributor

@abalakh abalakh commented Jul 1, 2015

Added entities.PartitionTable.update(), as it's needed for SatelliteQE/robottelo#2502.
Part of #111.

@@ -2774,6 +2778,17 @@ def __init__(self, server_config=None, **kwargs):
self._meta = {'api_path': 'api/v2/ptables', 'server_modes': ('sat')}
super(PartitionTable, self).__init__(server_config, **kwargs)

def update(self, fields=None):
"""Fetch a complete set of attributes for this entity."""
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a bugzilla bug stating what's wrong? If not, can we make one? And if so, can we link to it?

My goal is to make sure that every single work-around in NailGun is associated with a bug, even when that means filing trivial bugs or bugs against old versions of Satellite. I'm tracking progress in #115. Feel free to add this method to that list. (Some examples of bugs)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, my bad. Double checked - everything works just fine without any workarounds.
API has confusing behavior sometimes - some entities require extra dict, some - don't, and some are working ok both with and without it.
I'll remove update() and update_payload(). @Ichimonji10 , should i remove the tests as well? I can't see any tests for entities-with-no-workarounds.

Copy link
Contributor

Choose a reason for hiding this comment

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

API has confusing behavior sometimes - some entities require extra dict, some - don't, and some are working ok both with and without it.

Yeah. It's a real bugger.

Yes, please do remove the tests from test_entities.py as well.

Added ```entities.PartitionTable.update()```, as it's needed for SatelliteQE/robottelo#2502.
Part of SatelliteQE#111.
@Ichimonji10
Copy link
Contributor

ACK

1 similar comment
@oshtaier
Copy link
Contributor

oshtaier commented Jul 1, 2015

ACK

oshtaier added a commit that referenced this pull request Jul 1, 2015
Add entities.PartitionTable.update()
@oshtaier oshtaier merged commit 54848aa into SatelliteQE:master Jul 1, 2015
@abalakh abalakh deleted the ptable_update branch July 1, 2015 14:30
@elyezer
Copy link
Contributor

elyezer commented Jul 4, 2015

👍

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

Successfully merging this pull request may close these issues.

4 participants