-
Notifications
You must be signed in to change notification settings - Fork 83
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
ActivationKey: implement copying of AKs #517
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oshtaier
approved these changes
Aug 1, 2018
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.
Looks good, pending test results or console output for one copy operation
@oshtaier like this? >>> ak = entities.ActivationKey(server, name='ak1', organization=3)
>>> ak = ak.search()[0]
>>> print ak
nailgun.entities.ActivationKey(host_collection=[], max_hosts=None, content_view=nailgun.entities.ContentView(id=5), description=None, unlimited_hosts=True, environment=nailgun.entities.LifecycleEnvironment(id=10), auto_attach=True, organization=nailgun.entities.Organization(id=3), id=69, name=u'ak1')
>>> ak_new = ak.copy(data={'new_name':'ak1_new'})
>>> print ak_new
{u'content_view_id': 5, u'service_level': None, u'user_id': 37, u'description': None, u'max_hosts': None, u'products': [{u'id': 13, u'name': u'Red Hat Satellite 6.2 Composes'}, {u'id': 14, u'name': u'Red Hat Capsule 6.2 Composes'}, {u'id': 15, u'name': u'Red Hat Satellite Tools 6.2 Composes'}, {u'id': 16, u'name': u'
Red Hat Satellite 6.1 Composes'}, {u'id': 17, u'name': u'Red Hat Capsule 6.1 Composes'}, {u'id': 21, u'name': u'Vagrant Boxes'}, {u'id': 22, u'name': u'Downstream Scratch Builds'}, {u'id': 24, u'name': u'Puppet'}, {u'id': 2, u'name': u'Red Hat Satellite Capsule Beta'}, {u'id': 4, u'name': u'Red Hat Satellite Capsule'
}, {u'id': 5, u'name': u'Red Hat Satellite with Embedded Oracle'}, {u'id': 6, u'name': u'Red Hat Satellite Beta'}, {u'id': 7, u'name': u'Red Hat Satellite 6 Beta'}, {u'id': 8, u'name': u'Red Hat Enterprise Linux High Availability for RHEL Server'}, {u'id': 10, u'name': u'Red Hat Satellite'}, {u'id': 11, u'name': u'Re
d Hat Software Collections Beta for RHEL Server'}, {u'id': 12, u'name': u'Red Hat Enterprise Linux Load Balancer for RHEL Server'}, {u'id': 1, u'name': u'Red Hat Beta'}, {u'id': 3, u'name': u'Red Hat Software Collections for RHEL Server'}, {u'id': 9, u'name': u'Red Hat Enterprise Linux Server'}, {u'id': 228, u'name':
u'Red Hat Satellite Proxy - Extended Life Cycle Support'}, {u'id': 229, u'name': u'Red Hat Satellite 5 Proxy Beta'}, {u'id': 230, u'name': u'Red Hat Satellite - Extended Life Cycle Support'}, {u'id': 231, u'name': u'Red Hat Satellite Proxy'}, {u'id': 232, u'name': u'Red Hat Satellite 5 Managed DB Beta'}, {u'id': 233
, u'name': u'Red Hat Satellite 5 Managed DB'}, {u'id': 234, u'name': u'Red Hat Satellite 5 Managed DB - Extended Life Cycle Support'}, {u'id': 171, u'name': u'Qpid'}, {u'id': 172, u'name': u'Source Files'}, {u'id': 173, u'name': u'Satellite 6.3 Composes'}, {u'id': 174, u'name': u'Satellite Capsule 6.3 Composes'}, {u'
id': 175, u'name': u'Satellite Tools 6.3 Composes'}, {u'id': 178, u'name': u'Satellite Nightly'}], u'content_view': {u'id': 5, u'name': u'Satellite 6.2 RHEL6'}, u'created_at': u'2018-08-01 14:10:42 UTC', u'content_overrides': [], u'updated_at': u'2018-08-01 14:10:42 UTC', u'unlimited_hosts': True, u'environment': {u'
name': u'QA', u'id': 10}, u'release_version': None, u'environment_id': 10, u'auto_attach': True, u'usage_count': 0, u'organization': {u'id': 3, u'name': u'Sat6-CI', u'label': u'Sat6-CI'}, u'permissions': {u'view_activation_keys': True, u'destroy_activation_keys': True, u'edit_activation_keys': True}, u'host_collectio
ns': [], u'id': 96, u'name': u'ak1_new'} |
san7ket
approved these changes
Aug 2, 2018
abalakh
approved these changes
Aug 2, 2018
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
san7ket
added a commit
to san7ket/nailgun
that referenced
this pull request
Aug 17, 2018
Shortlog of commits since last release: Bernhard Suttner (1): Adding locked state to ptable (SatelliteQE#503) Evgeni Golov (1): ActivationKey: implement copying of AKs (SatelliteQE#517) Jitendra Yejare (2): Merge pull request SatelliteQE#523 from san7ket/update_pypi_maintainer Merge pull request SatelliteQE#524 from SatelliteQE/revert-521-master Lukas Hellebrandt (1): RHEV APIv4 feature: Add checkbox to select between API v4 and v3. Manuel Bonk (1): Fix docstring in read_raw (SatelliteQE#492) Nikhil Kathole (4): Revert "added ignorable_content for Repository" Merge pull request SatelliteQE#502 from SatelliteQE/revert-498-ignorable_content-repo-entity Merge pull request SatelliteQE#510 from jyejare/fix_smartparams Merge pull request SatelliteQE#509 from pondrejk/resubmit-ignorable-content Oleksandr Shtaier (1): Change password type for better support for UI tests (SatelliteQE#507) Peter Ondrejka (3): added ignorable_content for Repository added ignorable_content for Repository Revert "added ignorable_content for Repository" Sanket Jagtap (8): Merge pull request SatelliteQE#494 from jyejare/verify_ssl_repository Merge pull request SatelliteQE#504 from sean797/cv-filter-search Merge pull request SatelliteQE#506 from sean797/cv-filter-rule-errata Merge pull request SatelliteQE#521 from san7ket/master Revert "Release version 0.31.0" Merge pull request SatelliteQE#525 from san7ket/master Revert "Release version 0.31.0" Merge pull request SatelliteQE#526 from SatelliteQE/revert-525-master Sean O'Keeffe (4): allow searching Content View filters create, search & update ContentViewFilterRule should send errata_id not DB ID add PackageGroup Entity (SatelliteQE#508) add arch param to CV Filter Rule (SatelliteQE#505) jyejare (3): SSL verification option in Repository entity New Entities TemplateImport and TemplateExport Fix Override Value data syntax for smart class parameter and smart variable san7ket (3): Release version 0.31.0 Updates the Pypi user for travis-ci Release version 0.31.0 sghai (2): Merge pull request SatelliteQE#499 from jyejare/import_export_entity reverted locked state to ptable
rochacbruno
pushed a commit
that referenced
this pull request
Aug 17, 2018
Shortlog of commits since last release: Bernhard Suttner (1): Adding locked state to ptable (#503) Evgeni Golov (1): ActivationKey: implement copying of AKs (#517) Jitendra Yejare (2): Merge pull request #523 from san7ket/update_pypi_maintainer Merge pull request #524 from SatelliteQE/revert-521-master Lukas Hellebrandt (1): RHEV APIv4 feature: Add checkbox to select between API v4 and v3. Manuel Bonk (1): Fix docstring in read_raw (#492) Nikhil Kathole (4): Revert "added ignorable_content for Repository" Merge pull request #502 from SatelliteQE/revert-498-ignorable_content-repo-entity Merge pull request #510 from jyejare/fix_smartparams Merge pull request #509 from pondrejk/resubmit-ignorable-content Oleksandr Shtaier (1): Change password type for better support for UI tests (#507) Peter Ondrejka (3): added ignorable_content for Repository added ignorable_content for Repository Revert "added ignorable_content for Repository" Sanket Jagtap (8): Merge pull request #494 from jyejare/verify_ssl_repository Merge pull request #504 from sean797/cv-filter-search Merge pull request #506 from sean797/cv-filter-rule-errata Merge pull request #521 from san7ket/master Revert "Release version 0.31.0" Merge pull request #525 from san7ket/master Revert "Release version 0.31.0" Merge pull request #526 from SatelliteQE/revert-525-master Sean O'Keeffe (4): allow searching Content View filters create, search & update ContentViewFilterRule should send errata_id not DB ID add PackageGroup Entity (#508) add arch param to CV Filter Rule (#505) jyejare (3): SSL verification option in Repository entity New Entities TemplateImport and TemplateExport Fix Override Value data syntax for smart class parameter and smart variable san7ket (3): Release version 0.31.0 Updates the Pypi user for travis-ci Release version 0.31.0 sghai (2): Merge pull request #499 from jyejare/import_export_entity reverted locked state to ptable
lpramuk
pushed a commit
to lpramuk/nailgun
that referenced
this pull request
Sep 26, 2023
lpramuk
pushed a commit
to lpramuk/nailgun
that referenced
this pull request
Sep 26, 2023
Shortlog of commits since last release: Bernhard Suttner (1): Adding locked state to ptable (SatelliteQE#503) Evgeni Golov (1): ActivationKey: implement copying of AKs (SatelliteQE#517) Lukas Hellebrandt (1): RHEV APIv4 feature: Add checkbox to select between API v4 and v3. Manuel Bonk (1): Fix docstring in read_raw (SatelliteQE#492) Nikhil Kathole (4): Revert "added ignorable_content for Repository" Merge pull request SatelliteQE#502 from SatelliteQE/revert-498-ignorable_content-repo-entity Merge pull request SatelliteQE#510 from jyejare/fix_smartparams Merge pull request SatelliteQE#509 from pondrejk/resubmit-ignorable-content Oleksandr Shtaier (1): Change password type for better support for UI tests (SatelliteQE#507) Peter Ondrejka (3): added ignorable_content for Repository added ignorable_content for Repository Revert "added ignorable_content for Repository" Sanket Jagtap (3): Merge pull request SatelliteQE#494 from jyejare/verify_ssl_repository Merge pull request SatelliteQE#504 from sean797/cv-filter-search Merge pull request SatelliteQE#506 from sean797/cv-filter-rule-errata Sean O'Keeffe (4): allow searching Content View filters create, search & update ContentViewFilterRule should send errata_id not DB ID add PackageGroup Entity (SatelliteQE#508) add arch param to CV Filter Rule (SatelliteQE#505) jyejare (3): SSL verification option in Repository entity New Entities TemplateImport and TemplateExport Fix Override Value data syntax for smart class parameter and smart variable sghai (2): Merge pull request SatelliteQE#499 from jyejare/import_export_entity reverted locked state to ptable
lpramuk
pushed a commit
to lpramuk/nailgun
that referenced
this pull request
Sep 26, 2023
Shortlog of commits since last release: Bernhard Suttner (1): Adding locked state to ptable (SatelliteQE#503) Evgeni Golov (1): ActivationKey: implement copying of AKs (SatelliteQE#517) Jitendra Yejare (2): Merge pull request SatelliteQE#523 from san7ket/update_pypi_maintainer Merge pull request SatelliteQE#524 from SatelliteQE/revert-521-master Lukas Hellebrandt (1): RHEV APIv4 feature: Add checkbox to select between API v4 and v3. Manuel Bonk (1): Fix docstring in read_raw (SatelliteQE#492) Nikhil Kathole (4): Revert "added ignorable_content for Repository" Merge pull request SatelliteQE#502 from SatelliteQE/revert-498-ignorable_content-repo-entity Merge pull request SatelliteQE#510 from jyejare/fix_smartparams Merge pull request SatelliteQE#509 from pondrejk/resubmit-ignorable-content Oleksandr Shtaier (1): Change password type for better support for UI tests (SatelliteQE#507) Peter Ondrejka (3): added ignorable_content for Repository added ignorable_content for Repository Revert "added ignorable_content for Repository" Sanket Jagtap (5): Merge pull request SatelliteQE#494 from jyejare/verify_ssl_repository Merge pull request SatelliteQE#504 from sean797/cv-filter-search Merge pull request SatelliteQE#506 from sean797/cv-filter-rule-errata Merge pull request SatelliteQE#521 from san7ket/master Revert "Release version 0.31.0" Sean O'Keeffe (4): allow searching Content View filters create, search & update ContentViewFilterRule should send errata_id not DB ID add PackageGroup Entity (SatelliteQE#508) add arch param to CV Filter Rule (SatelliteQE#505) jyejare (3): SSL verification option in Repository entity New Entities TemplateImport and TemplateExport Fix Override Value data syntax for smart class parameter and smart variable san7ket (2): Release version 0.31.0 Updates the Pypi user for travis-ci sghai (2): Merge pull request SatelliteQE#499 from jyejare/import_export_entity reverted locked state to ptable
lpramuk
pushed a commit
to lpramuk/nailgun
that referenced
this pull request
Sep 26, 2023
Shortlog of commits since last release: Bernhard Suttner (1): Adding locked state to ptable (SatelliteQE#503) Evgeni Golov (1): ActivationKey: implement copying of AKs (SatelliteQE#517) Jitendra Yejare (2): Merge pull request SatelliteQE#523 from san7ket/update_pypi_maintainer Merge pull request SatelliteQE#524 from SatelliteQE/revert-521-master Lukas Hellebrandt (1): RHEV APIv4 feature: Add checkbox to select between API v4 and v3. Manuel Bonk (1): Fix docstring in read_raw (SatelliteQE#492) Nikhil Kathole (4): Revert "added ignorable_content for Repository" Merge pull request SatelliteQE#502 from SatelliteQE/revert-498-ignorable_content-repo-entity Merge pull request SatelliteQE#510 from jyejare/fix_smartparams Merge pull request SatelliteQE#509 from pondrejk/resubmit-ignorable-content Oleksandr Shtaier (1): Change password type for better support for UI tests (SatelliteQE#507) Peter Ondrejka (3): added ignorable_content for Repository added ignorable_content for Repository Revert "added ignorable_content for Repository" Sanket Jagtap (8): Merge pull request SatelliteQE#494 from jyejare/verify_ssl_repository Merge pull request SatelliteQE#504 from sean797/cv-filter-search Merge pull request SatelliteQE#506 from sean797/cv-filter-rule-errata Merge pull request SatelliteQE#521 from san7ket/master Revert "Release version 0.31.0" Merge pull request SatelliteQE#525 from san7ket/master Revert "Release version 0.31.0" Merge pull request SatelliteQE#526 from SatelliteQE/revert-525-master Sean O'Keeffe (4): allow searching Content View filters create, search & update ContentViewFilterRule should send errata_id not DB ID add PackageGroup Entity (SatelliteQE#508) add arch param to CV Filter Rule (SatelliteQE#505) jyejare (3): SSL verification option in Repository entity New Entities TemplateImport and TemplateExport Fix Override Value data syntax for smart class parameter and smart variable san7ket (3): Release version 0.31.0 Updates the Pypi user for travis-ci Release version 0.31.0 sghai (2): Merge pull request SatelliteQE#499 from jyejare/import_export_entity reverted locked state to ptable
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.