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

ActivationKey: implement copying of AKs #517

Merged
merged 1 commit into from
Aug 2, 2018

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Aug 1, 2018

No description provided.

@rplevka rplevka added the review label Aug 1, 2018
@coveralls
Copy link

coveralls commented Aug 1, 2018

Coverage Status

Coverage decreased (-0.3%) to 97.601% when pulling 1b736a8 on evgeni:ak-copy into b0cb925 on SatelliteQE:master.

Copy link
Contributor

@oshtaier oshtaier left a 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

@evgeni
Copy link
Member Author

evgeni commented Aug 1, 2018

@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'}

Copy link
Contributor

@abalakh abalakh left a comment

Choose a reason for hiding this comment

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

ACK

@abalakh abalakh merged commit e0b6406 into SatelliteQE:master Aug 2, 2018
@rplevka rplevka removed the review label Aug 2, 2018
@evgeni evgeni deleted the ak-copy branch August 2, 2018 10:14
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants