Bug #28864
closedhammer repository info commands shows "Http Proxy Policy" in products section instead of showing it in Http Proxy section.
Description
Cloned from bz:
Test Steps:
- Create Products with repositories.
- Assign Http proxy to products/repositories.
Observation:
- "hammer repository info" commands shows "Http Proxy Policy" in products
section instead of showing it in Http Proxy section.
Actual Result:
hammer> repository info --id 48
ID: 48
Name: repo1
Label: repo1
Organization: Default Organization
Red Hat Repository: no
Content Type: yum
Mirror on Sync: yes
URL: https://oijdofs
Publish Via HTTP: yes
Published At: http://hostname.example.com/pulp/repos/Default_Organization/Library/custom/pro1/repo1/
Relative Path: Default_Organization/Library/custom/pro1/repo1
Download Policy: on_demand
Http Proxy:
ID: 5
Name: proxy5
Product:
ID: 62
Name: pro1
Http Proxy Policy: use_selected_http_proxy
GPG Key:
Sync:
Status: Not Synced
Created: 2020/01/21 05:20:13
Updated: 2020/01/21 06:33:29
Content Counts:
Packages: 0
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0
Expected result:
hammer> repository info --id 48
ID: 48
Name: repo1
Label: repo1
Organization: Default Organization
Red Hat Repository: no
Content Type: yum
Mirror on Sync: yes
URL: https://oijdofs
Publish Via HTTP: yes
Published At: http://hostname.example.com/pulp/repos/Default_Organization/Library/custom/pro1/repo1/
Relative Path: Default_Organization/Library/custom/pro1/repo1
Download Policy: on_demand
Http Proxy:
ID: 5
Name: proxy5
Http Proxy Policy: use_selected_http_proxy
Product:
ID: 62
Name: pro1
GPG Key:
Sync:
Status: Not Synced
Created: 2020/01/21 05:20:13
Updated: 2020/01/21 06:33:29
Content Counts:
Packages: 0
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0
Additional info:
- When repository uses global proxy then Http Proxy's Id is not shown in repository info command.
hammer> repository info --id 55
ID: 55
Name: Repo1_Proxy
Label: Repo1_Proxy
Organization: Default Organization
Red Hat Repository: no
Content Type: yum
Mirror on Sync: yes
URL:
Publish Via HTTP: yes
Published At: http://hostname.example.com/pulp/repos/Default_Organization/Library/custom/Prod_proxy1/Repo1_Proxy/
Relative Path: Default_Organization/Library/custom/Prod_proxy1/Repo1_Proxy
Download Policy: on_demand
Http Proxy:
Name: proxy1
Product:
ID: 65
Name: Prod_proxy1
Http Proxy Policy: global_default_http_proxy
GPG Key:
Sync:
Status: Not Synced
Created: 2020/01/21 07:16:13
Updated: 2020/01/21 07:16:14
Content Counts:
Packages: 0
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0
Updated by The Foreman Bot almost 5 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/hammer-cli-katello/pull/719 added
Updated by Chris Roberts almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset hammer-cli-katello|cfc48b751da3d0e425fcc37be6ef6e7c21af7b8f.