Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-19006

satellite 6.11 API Content View Lists same Environment Name and Label despite name changes

XMLWordPrintable

    • Phoenix - Content
    • 0
    • False
    • Low
    • Sprint 119, Sprint 120
    • None
    • None
    • None
    • None

      Description of problem:

      satellite 6.11 API Content View Lists same Environment Name and Label despite Environment name changes.

      How reproducible:

      100%

      Steps to Reproduce:
      1. create new Environment
      2. change the Environment name.
      3. promote content-view to the Environment
      4. check content view information using API.

      Actual results:

      1. curl -X GET -s -k -u admin:redhat https://satellite.example.com/katello/api/content_views/2 | json_reformat
        {
        "content_host_count": 0,
        "composite": false,
        "component_ids": [

      ],
      "default": false,
      "version_count": 1,
      "latest_version": "1.0",
      "latest_version_id": 2,
      "auto_publish": false,
      "solve_dependencies": false,
      "import_only": false,
      "generated_for": "none",
      "related_cv_count": 0,
      "related_composite_cvs": [

      ],
      "repository_ids": [
      2,
      3,
      7
      ],
      "id": 2,
      "name": "rhel8",
      "label": "rhel8",
      "description": "",
      "organization_id": 1,
      "organization":

      { "name": "RedHat", "label": "RedHat", "id": 1 }

      ,
      "created_at": "2023-06-15 15:27:02 UTC",
      "updated_at": "2023-06-15 15:27:28 UTC",
      "last_task":

      { "id": "3e827cfb-fe05-41b7-a9ee-ecea309a9ddb", "started_at": "2023-06-26 14:03:45 UTC", "result": "success", "last_sync_words": "about 2 hours" }

      ,
      "latest_version_environments": [

      { "id": 1, "name": "Library", "label": "Library" }

      ,

      { "id": 2, "name": "Ansible Test", <<<<<<<<<<<<<<<<<< "label": "ansible-test" }

      ],
      "repositories": [

      { "id": 2, "name": "Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs 8", "label": "Red_Hat_Enterprise_Linux_8_for_x86_64_-_BaseOS_RPMs_8", "content_type": "yum" }

      ,

      { "id": 3, "name": "Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8", "label": "Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_RPMs_8", "content_type": "yum" }

      ,

      { "id": 7, "name": "Red Hat Satellite Client 6 for RHEL 8 x86_64 RPMs", "label": "Red_Hat_Satellite_Client_6_for_RHEL_8_x86_64_RPMs", "content_type": "yum" }

      ],
      "versions": [

      { "id": 2, "version": "1.0", "published": "2023-06-15 15:27:28 UTC", "environment_ids": [ 1, 2 ] }

      ],
      "components": [

      ],
      "content_view_components": [

      ],
      "activation_keys": [

      ],
      "hosts": [

      ],
      "next_version": "2.0",
      "last_published": "2023-06-15 15:27:28 UTC",
      "environments": [
      {
      "id": 1,
      "label": "Library",
      "name": "Library",
      "activation_keys": [

      ],
      "hosts": [

      ],
      "permissions":

      { "readable": true }

      },
      {
      "id": 2,
      "label": "ansible-test",
      "name": "ansible-test", <<<<<<<<<<<<<<<<<
      "activation_keys": [

      ],
      "hosts": [

      ],
      "permissions":

      { "readable": true }

      }
      ],
      "duplicate_repositories_to_publish": [

      ],
      "errors": null
      }

      Expected results:

      latest_version_environments and environments should not show different information related to the environment name and label.

      environments should return the latest updated name.

              jira-bugzilla-migration RH Bugzilla Integration
              jira-bugzilla-migration RH Bugzilla Integration
              Cole Higgins Cole Higgins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: