-
Bug
-
Resolution: Done
-
Minor
-
None
-
6.11.4
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:
- 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":
,
"created_at": "2023-06-15 15:27:02 UTC",
"updated_at": "2023-06-15 15:27:28 UTC",
"last_task":
,
"latest_version_environments": [
,
{ "id": 2, "name": "Ansible Test", <<<<<<<<<<<<<<<<<< "label": "ansible-test" } ],
"repositories": [
,
,
{ "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": [
],
"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":
},
{
"id": 2,
"label": "ansible-test",
"name": "ansible-test", <<<<<<<<<<<<<<<<<
"activation_keys": [
],
"hosts": [
],
"permissions":
}
],
"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.