Bug #36598
closedContent View API lists same Environment Name and Label despite name changes
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2217942
Description of problem:
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:
- 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": [ {
"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.
Updated by The Foreman Bot about 1 year ago
- Status changed from New to Ready For Testing
- Assignee set to Samir Jha
- Pull request https://github.com/Katello/katello/pull/10653 added
Updated by The Foreman Bot about 1 year ago
- Fixed in Releases Katello 4.10.0 added
Updated by Samir Jha about 1 year ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|31d434adec82cb228f9e872c838f742a08f8f632.
Updated by Ian Ballou about 1 year ago
- Subject changed from Content View API lists same Environment Name and Label despite name changes to Content View API lists same Environment Name and Label despite name changes
- Target version set to Katello 4.10.0