Project

General

Profile

Bug #28864

hammer repository info commands shows "Http Proxy Policy" in products section instead of showing it in Http Proxy section.

Added by Chris Roberts 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
trivial
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

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

Associated revisions

Revision cfc48b75 (diff)
Added by Chris Roberts 2 months ago

Fixes #28864 - Add policy to repo proxy info (#719)

History

#1 Updated by The Foreman Bot 2 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/719 added

#2 Updated by Chris Roberts 2 months ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Ian Ballou about 2 months ago

  • Triaged changed from No to Yes

Also available in: Atom PDF